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