There are upcoming maintenance events which may impact our services. Learn more

How to override PHP settings with php.ini file Print

  • 0

To use a custom php.ini file with SuPHP for a website, you can define the path to the php.ini file in a .htaccess file:

suPHP_ConfigPath /home/USERNAME/public_html/

Change the 'USERNAME' with your account username, then add a php.ini file in the directory /public_html/ which may be a copy of the global php.ini were you just changed a few settings or an empty file were you add only the settings that shall be overridden in the global PHP configuration.

Please note, some security features may not be overwritten. Further, some functions may be depreceated from future versions of PHP and it won't be recommended to have them enabled.

Was this answer helpful?

« Back

Powered by WHMCompleteSolution