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 someonet help me out there,

thanx

Comments

jorrie’s picture

Same issue here so I would like to digg this thread up.

I have safe mode on for global php and have it disabled on per site basis
with as basis plesk panel to manage the server.

jorrie’s picture

This is fixed.

I have set safe mode off in php.ini safe_mode = off
It seems that if you have plesk this has no effect on the per domain configured settings.
I have tested this and validated the results to be true.

Johnnyk’s picture

Had the same problem for a couple of days, but now i got it working - and its quite simple

safe_mode was off in my /etc/php5/apache2/php.ini

but i never ever thought of editing....wait for it....

/etc/php5/cli/php.ini

set safe_mode off there and drush works fine

PS: I found that solution after: distro updrage, plesk upgrade, php update ... yeah, should have started thinking a week ago

Johnnyk’s picture

What the heck - i just found that discussion in the drush project issue queue...

http://drupal.org/node/558394

i should start thinking and reading ;)

EDIT: At lest my system is now up2date

digitalfrontiersmedia’s picture

fyi for others who might come across this:

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

--
Web: http://digitalfrontiersmedia.com
Cell: 941.773.2036
Phone: 941.677.DFM1 ( 941.677.3361 )
Skype: DigitalFrontiersMedia
Twitter: DigitalFrontier
--