Custom php.ini configuration values

Custom PHP settings which override the server values are handled through a custom php.ini. In cPanel, there is no facility to custom-edit sitewide settings for PHP. Instead, we have enabled suExec in the cPanel environment, and customer settings are done a bit differently. You should be able to create your own php.ini file within a given directory wherever the custom settings are needed.

You will need to create a new php.ini file and assign it 644 permissions. Ownership should be cpanelusername:cpanelusername.

As an example, assume your cpanel username is “joesmith”.

Create a file and place it in the directory where the custom settings are needed. Using your FTP program or File Manager, you should see these settings for the file:

-rw-r–r– 1 joesmith joesmith 01 Jun 2008 09:34 php.ini

With 644 permissions set, you should now be able to edit it and insert the necessary/custom php.ini configuration values.

Please note, you will need to place a copy of the custom php.ini file within every directory that the override values are needed, as the settings in the cPanel environment are not global, unless you upload a .htaccess file to your Web site root that contains this line of code:

suPHP_ConfigPath /home/(your site username)/public_html