Change Php Upload Limit Godaddy Reseller Account
PHP is a scripting language used primarily on the web and is available on our shared, VPS, and Dedicated servers. PHP is highly customizable and has many settings that our users can modify themselves. This commodity will propose you how to modify PHP settings in your php.ini file.
How to view your current PHP settings
To view your current PHP settings, create a PHPinfo page. If y'all're not sure how to do this, please come across How can I view my PHP settings using a PHPinfo page ?
The steps in updating the values listed in your PHP info page depend on how PHP is setup on your particular server. In general, PHP runs on our servers equally either:
- Apache module
- CGI Module
To observe out how PHP is configured on your server, create a PHP info page (via the to a higher place instructions) and look at the "Server API" value. If the "Server API" is "CGI", then PHP is running as "CGI module". If "Apache" is listed, so your server is running PHP as an "Apache module".
Server API: Apache
If your server runs PHP as an "Apache module", y'all can change your PHP settings via a .htaccess file. A .htaccess file is a configuration file you can create and use to change many server settings, including PHP settings. The bones syntax to use in your .htaccess file for updating PHP settings is:
php_value Directive value
For example, if you wanted to change the max_input_time from threescore seconds to 120 seconds, add the post-obit to your .htaccess file:
php_value max_input_time 120
After making this change, refresh your PHP info page, and you should encounter the changes. If you receive a 500 error, please double check the syntax you used equally y'all may accept made a misspelling.
If yous don't take a .htaccess file, you can but 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 certain to select the pick to Show Subconscious Files (dotfiles), otherwise you will not be able to come across your .htaccess file. If you do not see this prompt when opening your File Manager, click the, "reset all interface settings" link at the lesser of your cPanel to reset your File Director settings.
Server API: CGI
View of the php.ini in the File Manager
If your server runs PHP as a CGI module, you can alter your local php.ini file in order to make modifications to your PHP setup. php.ini is a PHP configuration file with a list of PHP directives and their values. In the above instance, we modified the max_input_time value. If you open your php.ini file and search for max_input_time, you lot should meet something similar to:
;;;;;;;;;;;;;;;;;;; ; Resource Limits ; ;;;;;;;;;;;;;;;;;;; max_execution_time = thirty max_input_time = lx memory_limit = 256M upload_max_filesize = 10M
To change the max_input_time from thirty seconds to 120, for case, merely change xxx to 120 and salve the file. Refresh your PHP info page, and you lot should see the changes.
Increasing PHP memory in the php.ini
A mutual outcome when using gratis open up source software or other PHP intensive programs is the "exhausted retentiveness" error. If you have a PHP memory fault on your site, y'all tin increase the retentivity limit PHP uses for the scripts. To learn how to modify the retentivity limit in your php.ini, please run into the following link.
Fixing the Allowed retentivity size exhausted error
Modifying the PHP.INI file
Here is a quick step-by-pace tutorial on editing the PHP.INI file.
- Login to the cPanel.
-
Find the File Manager in File department of the cPanel. Review our tutorial on using the Code Editor within the File director if you're looking on information how to use information technology.
-
Navigate to the directory where you will either save or edit the PHP.INI file and then select the file and use the Lawmaking Editor. To open up the file, y'all can click on information technology to select the file and then click on the Code Editor icon in the menu bar of the File Director. You can also right-click with your mouse and select Code Editor from the menu that appears.
- Edit the department of the PHP.INI that you wish to change.
- Click on Relieve CHANGES in the meridian right hand corner in order to save your modifications or additions to the file.
Common Problems when Updating your php.ini file
I don't accept a php.ini file!
Only users running on a server with PHP loaded equally a "CGI module" will have a php.ini file. The php.ini file past default will exist located at public_html/php.ini. If you exercise non see a file named php.ini in your public_html, please contact our Support Department and request that we create one for you.
I made changes to the php.ini file, however I do non encounter the changes!
The php.ini file is not recursive. Updating your php.ini values in public_html/php.ini volition not affect PHP files in subfolders of your public_html, such equally public_html/staff. To right this trouble, you can make your php.ini file recursive and so that information technology affects all sub folders. More help on this can exist found in How tin can I brand my php.ini file recursive?
Considering a VPS or Defended Server?
With a VPS or dedicated server, a site owner can truly customize the server to their verbal 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.
Source: https://www.inmotionhosting.com/support/website/update-local-php-settings/
0 Response to "Change Php Upload Limit Godaddy Reseller Account"
Post a Comment