• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Safe Mode Problem

J

jschoaf

Guest
I have read every post in this forum :)

I created vhost.conf

added this

<Directory /home/httpd/vhosts/domain.com/httpdocs>
<IfModule sapi_apache2.c>
php_admin_flag safe_mode off
php_admin_flag register_globals on
</IfModule>
</Directory>


ran this
./websrvmng --reconfigure-vhost --vhost-name=domain.com

and then rebooted apache

Its still not working, any help?

I dont want to turn it off in php.ini again
 
Try just add in ~/conf/vhost.conf:

php_admin_flag safe_mode "Off"
php_admin_flag register_globals "On"

# ./websrvmng -a
# service httpd restart

If not worx then try php_admin_value. I'm use it all time. :rolleyes:
 
Back
Top