[preflight] The following restricted PHP modes have non-empty values: {open_basedir}. This configuration is incompatible with drush.

Drush Launcher Version : 10.2

Drush Version

#drush --version

 [preflight] The following restricted PHP modes have non-empty values: {open_basedir}. This configuration is incompatible with drush.  {Please check your configuration settings in /var/www/vhosts/system/site1.example/etc/php.ini.}

 

Comments

Same with Drush 13 + PHP 8.3

[preflight] The following restricted PHP modes have non-empty values: {open_basedir}. This configuration is incompatible with drush.  {Please check your configuration settings in /var/www/mywebsite/etc/php.ini.}

 

My solution in 2 steps:

 

Step 1 (~userdir/.bashrc):

alias drush='php -c ~/httpdocs/drush.ini ~/httpdocs/vendor/bin/drush.php'

Step 2 (in my_custom_shell_script.sh)

#!/bin/bash

drush='php -c /path/absolute/httpdocs/my_custom_drush.ini /path/absolute/httpdocs/vendor/bin/drush.php'

${drush} st

 

Neuen Kommentar schreiben

CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.

Suche

Neueste Kommentare