Knowledgebase: PHP and Apache
Override PHP Settings
Posted by H9 Admin on 14 January 2015 02:38 PM

Sometimes, your site may require a local adjustment to the default or system-wide php.ini values. This might be to increase the maximum file size allowed to upload through a form, or some other setting.

Most of our systems run PHP with suPHP, which requires a full copy of the server's main php.ini for settings to be overridden. Our Support team can provide the appropriate file for you and make any edits you need.

In order to apply the custom php.ini part of your website, a suPHP configPath directive pointing to the directory with the php.ini needs to be present in the .htaccess file for that part of your site. The directive looks like this:

suPHP_configPath /home/username/

Note: where 'username' is your cPanel username.

If you are on a Shared server, please check in with our Support team to get a custom php.ini. If you are on a server where you have root access, like a Dedicated or VPS, we will be glad to help you with this but you may also want to reference our Use a Custom php.ini File article if you'd like to set it up yourself.


See also Use a Custom php.ini File

(0 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
Help Desk Software by Kayako fusion