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

Updated 2 months ago 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 cPanel account username. It will pick the php.ini from the public_html folder wherever the PHP script is executed.

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


How did we do?