Unable to install Drupal 11 (latest) using Quick Install App

Hi All, Drupal 11 (which is the latest) requires php8.3, I used the command:
sed -i ‘/^\t"php-8.2",/a \t"php-8.3",’ /usr/local/hestia/web/edit/server/index.php
and made php8.3 the default version of the system, then I replaced both of “BaseSetup.php” and “DrupalSetup.php” (in Installers directory) in order to make the 8.3 option of php appear in drupal’s quick install options. However, I am stuck with this error now:
Error: Cli command not enabled

Thank you in advance!

Hi @Ahmad_R,

Edit this script /usr/local/hestia/bin/v-run-cli-cmd and add this line to allowed commands:

        "$basecmd" != 'php8.3' -a \

The new line in context:

        "$basecmd" != 'php8.2' -a \
        "$basecmd" != 'php8.3' -a \
        "$basecmd" != 'php' -a \

Save the file, remove all dirs and files inside your public_html dir and try to install Drupal again using php 8.3 as the php version.

1 Like

Could you elaborate more on the process you took to install Drupal 11? I am attempting to install it as well.

Use these commands as root and you will be able to install Drupal 11.

sed -Ei 's/supported" => \["8.1", "8.2"\],/supported" => \["8.3"\],/' /usr/local/hestia/web/src/app/WebApp/Installers/Drupal/DrupalSetup.php
sed -Ei '/php8.2'\'' -a /a \\t"$basecmd" != '\''php8.3'\'' -a \\' /usr/local/hestia/bin/v-run-cli-cmd

Note 1: PHP 8.3 must be installed on your server (v-add-web-php 8.3).
Note 2: Dir /home/YourUser/web/YourDomain/public_html/ must be empty.

2 Likes

Yes, this just worked for me.

1 Like

But now, I make changes to settings.php and they are not saving properly.
I’m gonna try to do it with putty instead of file manager

Yeah. Making changes via Putty worked just fine. I’ll try to do some more testing with the FileManager and see if I can make changes to OTHER sites, or if it’s just this one Drupal site I just made.

I had the same problem trying to make changes using file manager and got and error.
I remoted in and made changes.

Are you by any chance encountered this issue?

Redirects to external URLs are not allowed by default, use \Drupal\Core\Routing\TrustedRedirectResponse for it.

I tried this fix and pasted my subdirectory in it and it didn’t work.

https://www.drupal.org/project/drupal/issues/2612160#comment-13999983

Hello,
This is how I fixed the redirect issue:
In the .htaccess file inside public_html I removed following lines:

<IfModule mod_rewrite.c>
		RewriteEngine On
		RewriteRule ^(.*)$ web/$1 [L]
</IfModule>

then edited my web domain in Hestia web UI:
Under the advanced options: enabled (Custom document root), and wrote “web” in the Directory field.

That worked! Thank you!

Are you by any chance using or planning to use composer to install modules, themes, etc.? I see it on Drupal’s install instruction

Nevermind I figured it out. I installed Composer in root.

Then, I use php composer.phar to open composer then add the command I want to run plus where the composer.json file is located after (–working dir=)

php composer.phar update "drupal/core-*" --with-all-dependencies  --working-dir=