Unable to disable PHP safe_mode?

I cannot upload images to Drupal 7 since I moved it to a new server: php safe mode is enabled. So in php.ini I installed safe_mode = Off(via ssh, I have CentOS).

phpinfo()indicates that safe_mode is disabled for master, but on local. I have a Plesk panel, so I checked there: it safe_modewas enabled for the domain. I turned it off.

My problem: it safe_modestill turns on locally according to phpinfo(). What other ways do you know to disable safe_mode? What could be wrong?

Thanks in advance.

+3
source share
2 answers

Check the httpd.conf and vhost files for ...

php_admin_flag safe_mode on

php.ini. ...

php_admin_flag safe_mode off

... apache.

EDIT: /etc/httpd/conf.d/zz_psa_httpd.conf.

0

php.ini, php.ini .

/etc/php.ini

safe_mode.

-. safe_mode , php.ini.

, .

+2

All Articles