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

**URL:** <https://forum.hestiacp.com/t/unable-to-install-drupal-11-latest-using-quick-install-app/15506>\
**Category:** Web\
**Created:** [August 14, 2024, 10:43pm UTC](https://forum.hestiacp.com/t/unable-to-install-drupal-11-latest-using-quick-install-app/15506 "2024-08-14T22:43:55Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ahmad\_R](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/a/e36b37/32.png) [@Ahmad\_R](https://forum.hestiacp.com/u/Ahmad_R)\
**Post date:** [August 14, 2024, 10:43pm UTC](https://forum.hestiacp.com/t/unable-to-install-drupal-11-latest-using-quick-install-app/15506/1 "2024-08-14T22:43:55Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![sahsanu](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/sahsanu/32/9318_2.png) [@sahsanu](https://forum.hestiacp.com/u/sahsanu)\
**Post date:** [August 15, 2024, 12:02am UTC](https://forum.hestiacp.com/t/unable-to-install-drupal-11-latest-using-quick-install-app/15506/2 "2024-08-15T00:02:03Z")

</div>

Hi @Ahmad_R,

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

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

```

The new line in context:

```auto
        "$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.

---

<div class="post-metadata">

**Author:** ![b\_superman1](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/b/db5fbb/32.png) [@b\_superman1](https://forum.hestiacp.com/u/b_superman1)\
**Post date:** [September 5, 2024, 5:40am UTC](https://forum.hestiacp.com/t/unable-to-install-drupal-11-latest-using-quick-install-app/15506/3 "2024-09-05T05:40:32Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![sahsanu](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/sahsanu/32/9318_2.png) [@sahsanu](https://forum.hestiacp.com/u/sahsanu)\
**Post date:** [September 5, 2024, 9:34am UTC](https://forum.hestiacp.com/t/unable-to-install-drupal-11-latest-using-quick-install-app/15506/4 "2024-09-05T09:34:31Z")

</div>

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

```t
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.

---

<div class="post-metadata">

**Author:** ![aaronkempf](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/aaronkempf/32/384_2.png) [@aaronkempf](https://forum.hestiacp.com/u/aaronkempf)\
**Post date:** [September 13, 2024, 7:18am UTC](https://forum.hestiacp.com/t/unable-to-install-drupal-11-latest-using-quick-install-app/15506/5 "2024-09-13T07:18:19Z")

</div>

Yes, this just worked for me.

---

<div class="post-metadata">

**Author:** ![aaronkempf](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/aaronkempf/32/384_2.png) [@aaronkempf](https://forum.hestiacp.com/u/aaronkempf)\
**Post date:** [September 13, 2024, 7:50am UTC](https://forum.hestiacp.com/t/unable-to-install-drupal-11-latest-using-quick-install-app/15506/6 "2024-09-13T07:50:23Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![b\_superman1](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/b/db5fbb/32.png) [@b\_superman1](https://forum.hestiacp.com/u/b_superman1)\
**Post date:** [September 16, 2024, 3:30am UTC](https://forum.hestiacp.com/t/unable-to-install-drupal-11-latest-using-quick-install-app/15506/7 "2024-09-16T03:30:51Z")

</div>

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?

```auto
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](https://www.drupal.org/project/drupal/issues/2612160#comment-13999983)

---

<div class="post-metadata">

**Author:** ![Ahmad\_R](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/a/e36b37/32.png) [@Ahmad\_R](https://forum.hestiacp.com/u/Ahmad_R)\
**Post date:** [September 16, 2024, 6:52am UTC](https://forum.hestiacp.com/t/unable-to-install-drupal-11-latest-using-quick-install-app/15506/8 "2024-09-16T06:52:20Z")

</div>

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

```auto
<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.

---

<div class="post-metadata">

**Author:** ![b\_superman1](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/b/db5fbb/32.png) [@b\_superman1](https://forum.hestiacp.com/u/b_superman1)\
**Post date:** [September 17, 2024, 2:40am UTC](https://forum.hestiacp.com/t/unable-to-install-drupal-11-latest-using-quick-install-app/15506/9 "2024-09-17T02:40:46Z")

</div>

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=)

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

```
