How do I enable custom php.ini settings for all folders in a suPHP enabled server?

Updated by Josselyn Rodriguez

If you are setting up custom PHP settings, the custom php.ini file will be required in a folder where the PHP script needs to execute. Or, you can place the php.ini file in the public_html folder and have this directive in public_html/.htaccess.

suPHP_ConfigPath /home/username/public_html

Where username is your account username. It will pick the php.ini from the public_html folder wherever the PHP script is executed.

To set change PHP settings, values and version on cPanel servers, please refer : Changing PHP values/settings : custom php.ini

Having trouble? Contact us and our team will be happy to help.


How did we do?