Disable Use Of Custom PHP.INI files On WHM/cPanel Server


When compiling Apache using cPanel’s EasyApache application, you have the option of installing ‘Mod suPHP’, which is just one of many options that make your php installation more secure when hosting multiple sites on the same server; e.g. shared hosting server.

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. To do this:
1. Login to your server as root via SSH
2. Open the following file:

nano /opt/suphp/etc/suphp.conf

3. Search for [phprc_paths] and then uncomment (remove the ; from the front) the following lines:


Save the file, exit the editor, and then restart Apache

Leave A Reply

Please enter your comment!
Please enter your name here