Professional Documents
Culture Documents
Change PHP Settings in Your Hosting Account - InMotion Hosting
Change PHP Settings in Your Hosting Account - InMotion Hosting
Views: 57,103
Comments: 15
PHP is a scripting language used primarily on the web. PHP is highly customizable and has many settings that our users can
modify themselves. This article will advise you how to change PHP settings in your php.ini file/
For example, if you wanted to change the max_input_time from 60 seconds to 120 seconds, add the following to your .htaccess
file:
php_value max_input_time 120
After making this change, refresh your PHP info page, and you should see the changes. If you receive a 500 error, please double
check the syntax you used as you may have made a misspelling.
If you don't have a .htaccess file, you can simply create a new file named .htaccess. As the .htaccess file begins with a dot (.), it is
considered a hidden file. If you are using the cPanel's File Manager, please be sure to select the option to Show Hidden Files
(dotfiles) , otherwise you will not be able to see your .htaccess file. If you do not see this prompt when opening your File Manager,
click the, "reset all interface settings" link at the bottom of your cPanel to reset your File Manager settings.
1 of 3
File Manager
max_execution_time = 30
max_input_time = 60
memory_limit = 256M
upload_max_filesize = 10M
To change the max_input_time from 30 seconds to 120, for example, simply change 30 to 120 and save the file. Refresh your PHP
info page, and you should see the changes.
Step 2.
Find the File Manager in File section of the Cpanel. Review our tutorial on using
the Code Editor within the File manager if you're looking on information how to
use it.
Step 3. Navigate to the directory where you will either save or edit the PHP.INI file and
then select the file and use the Code Editor. To open the file, you can click on it
to select the file and then click on the Code Editor icon in the menu bar of the
File Manager. You can also right-click with your mouse and select Code Editor from the menu that appears.
Step 4. Edit the section of the PHP.INI that you wish to change.
Step 5. Click on SAVE CHANGES in the top right hand corner in order to save your modifications or additions to the file.
I made changes to the php.ini file, however I do not see the changes!
The php.ini file is not recursive. Updating your php.ini values in public_html/php.ini will not affect PHP files in subfolders of your
public_html, such as public_html/staff. To correct this problem, you can make your php.ini file recursive so that it affects all sub
folders. More help on this can be found in How can I make my php.ini file recursive?
With a VPS or dedicated server, a site owner can truly customize the server to their exact specification. If you are on a Shared
Hosting account, and are thinking about upgrading from to a VPS or dedicated server, click here to read more about a VPS vs
dedicated server.
3 of 3