How to setup a custom php.ini file?
Posted by RAJU K, Last modified by Gangadhar G on 09 January 2013 04:39 AM
|
|
What is php.ini? PHP Default settings: The server is already configured with standard settings for PHP that have been selected by our administrators to be the most optimal setting for a majority of our customers. Unless you specifically need to change one or more of the settings, there is no need to create or modify a php.ini file. If the php.ini file does not exist in your account, then your site will use the default PHP settings defined on the server. Customising php.ini file: It is best if you have a copy of the custom php.ini file in your cPanel Home directory (/home/username/) and then make changes to that file. Keep your custom php.ini file in location /home/username/php.ini and then add below code to your primary .htaccess (/home/username/public_html/.htaccess)
suPHP_ConfigPath /home/username/php.ini
Be sure to replace "username" with your actual cPanel user name and don't forget to add php.ini file path to .htaccess file. Note: You do not need multiple php.ini files in your folders. Keep only one custom php.ini file in /home/username/php.iniCommon php.ini settings for wordpress,joomla and other PHP applications: The common settings are upload directory, register global variables, display errors, log errors, max uploading size setting, maximum time to execute a script and other configurations is written in this file. upload_max_filesize = 10M
post_max_size = 10M
max_execution_time = 30
memory_limit = 64M Please check Optimal PHP Settings on our servers.
NOTE: FastWebHost cannot know why you want nor need to change these settings. You are changing this at the advice of your web designer or the developer of your script. We can only show you where and how to make the change. Please contact our support if you require further assistance. Best wishes, FastWebHost Support Team | |
|
I am not sure if this problem is related to the PHP.INI changes. I need help.
Thanks, John