MilesWeb Hosting Forum

Web Hosting Technical Support => How To's => Topic started by: Dipak Bhoi on September 01, 2014, 11:53:05 AM

Title: How can I disable user Custom PHP.INI files ?
Post by: Dipak Bhoi on September 01, 2014, 11:53:05 AM
Hello guys,

If you would like to disable user unwanted custom php.ini file in your cpanel server then you can do this with the help of suPHP.

suPHP is a module that enhances overall server security. When you have Mod suPHP installed, you can configure your server to force the use of the main server wide php.ini file and disable the use of custom php.ini files to adjust certain php settings. Below are the steps.

1. Login to your server as root via SSH

2. Open the following file:

Quotevi /opt/suphp/etc/suphp.conf
3. Search for [phprc_paths] and then uncomment the following lines:

Quote;application/x-httpd-php=/usr/local/lib/
;application/x-httpd-php4=/usr/local/php4/lib/
;application/x-httpd-php5=/usr/local/lib/

4.Save the file and  restart Apache

Quote#service httpd restart

Enjoy !!!