khimhong
11-28-2002, 11:11 PM
Can we turn off PHP safe mode in Plesk ?
![]() | View Full Version : Plesk & PHP Safe Mode khimhong 11-28-2002, 11:11 PM Can we turn off PHP safe mode in Plesk ? Centralized 11-28-2002, 11:20 PM Yes.. For site-specific disabling, place a file called vhost.conf in: /usr/local/psa/home/vhosts/THEDOMAIN.COM/conf Insert the following <Directory "/usr/local/psa/home/vhosts/THEDOMAIN.COM/httpdocs"> php_admin_value safe_mode 0 </Directory> Centralized 11-28-2002, 11:21 PM Oh...and be sure to restart Apache khimhong 11-28-2002, 11:26 PM Originally posted by Centralized Yes.. For site-specific disabling, place a file called vhost.conf in: /usr/local/psa/home/vhosts/THEDOMAIN.COM/conf Insert the following <Directory "/usr/local/psa/home/vhosts/THEDOMAIN.COM/httpdocs"> php_admin_value safe_mode 0 </Directory> This is to off safe mode for that particular domain only right ? Centralized 11-28-2002, 11:33 PM Correct. I have heard its not best to set it off on a server wide scale, but the above is for domain specific disabling. khimhong 11-28-2002, 11:35 PM how bout doing it 4 the whole server ? What should i do ? p1net 11-29-2002, 08:01 AM Just edit your php.ini file and turn it off. I would not recommend it as it is a security risk. BeenThereDoneThat 12-01-2004, 04:38 PM Would depend on OS: I dont have /usr/local/psa/home/vhosts/THEDOMAIN.COM/conf in REL. I have /home/httpd/vhosts/THEDOMAIN.com/conf markmg 09-17-2005, 01:17 PM I was told i had to do this, wats the diffirence? wat dos this do? <Directory "/usr/local/psa/home/vhosts/THEDOMAIN.COM/httpdocs"> <ifModule sapi_apache2.c> php_admin_flag safe_mode off </ifModule> </Directory> |