When trying to run Drush (drush,v 1.6 2009/05/24 16:10:36) on my server

PHP Version 5.2.0-8+etch15
System Linux lv2529 2.6.18-028stab062.3-ent #1 SMP Thu Mar 26 15:12:05 MSK 2009 i686
Build Date May 1 2009 10:13:14
Server API Apache 2.0 Handler
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/php5/apache2/php.ini

I receive the following error

PHP safe mode is activated. Drush requires that safe mode is [error]
disabled.
Drush could not execute.

although safe_mode is turned off in the php.ini

safe_mode Off Off
safe_mode_exec_dir no value no value
safe_mode_gid Off Off
safe_mode_include_dir no value no value

This must be a newbie problem, could someone help me out there,

thanx

Comments

jonhattan’s picture

Status: Active » Fixed

cybernomad: The Configuration File (php.ini) Path for the php command line is /etc/php5/cli/php.ini. It is not the same as the one for apache. So you disable safe mode there. You can also check if your php executable has safe mode on "in hot":

$ php -i |grep safe_mode
safe_mode => Off => Off
safe_mode_exec_dir => no value => no value
safe_mode_gid => Off => Off
safe_mode_include_dir => no value => no value
sql.safe_mode => Off => Off
safe_mode_allowed_env_vars => PHP_ => PHP_
safe_mode_protected_env_vars => LD_LIBRARY_PATH => LD_LIBRARY_PATH

I'll mark the issue as fixed. Feel free to reopen if the problem persist.

cybernomad’s picture

Hi jonhattan,

great thanx a lot for this insight

Status: Fixed » Closed (fixed)

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

digitalfrontiersmedia’s picture

some systems may have this setting in /etc/php.ini instead of /etc/php5/apache2/php.ini