Drush 3.3 reports an error associated with another php configuration file.

Executing drush with the following command: php -c /etc/drush.ini /usr/local/drush/drush.php
Drush status shows PHP configuration: /etc/drush.ini

In our php.ini file safe_mode is enabled. In the drush.ini file safe mode is disabled. When attempting to update with drush we receive the error PHP safe mode is activated. If we disable safe_mode in php.ini the error goes away and the process executes without exception.

Comments

greg.1.anderson’s picture

Category: bug » support
Status: Active » Fixed

Whenever you call drush directly via php, you also need to specify the --php arg so that drush will know which php to use if it makes a system call (exec) to itself, as update does.

alias drush php -c /etc/drush.ini /usr/local/drush/drush.php --php='php -c /etc/drush.ini'

gp177’s picture

Worked great.

Just had to escape the / in the php option. Otherwise it broke under eval.

greg.1.anderson’s picture

Yeah, I just typed that without trying it -- thanks for following up with the fix.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.