How can I setup custom PHP configuration settings on my account?
Posted by Alissa C. on 17 October 2011 09:44 AM
The php.ini file is a special file for suPHP (pronounced sue-p-h-p).
The php.ini file is where you declare changes to your PHP settings. You can edit the existing php.ini, or create a new text file and name it php.ini.
If you need a php.ini file for your account, please contact us via phone or live chat. We are glad to create a complete file for you.
Instead of having us create and setup the php.ini file for you, you can place your php.ini file in your Home Directory (
<IfModule mod_suphp.c> suPHP_ConfigPath /home/username <Files php.ini> order allow,deny deny from all </Files> </IfModule>
Some common changes that you must make when moving from non-secure php environment to suPHP:
For example, if your site had these settings in a
php_flag upload_max_filesize 10M php_value post_max_size 10M php_value max_execution_time 30
SuExec users must put them in a
upload_max_filesize = 10M post_max_size = 10M max_execution_time = 30