Skip navigation
Knowledge Base    Hosting    cPanel: Adjusting PHP.INI File to Increase Size Limit

Adjusting PHP.INI File to Increase Size Limit

Last Updated: Jan 07, 2022

The php.ini file is the configuration file for running applications that require PHP. You can use this file in your hosting to change your file upload size limit, memory limit, and other variables. You can use the MultiPHP INI Editor tool in your cPanel to create the php.ini file and set its values.

 

How to Create a php.ini File:

1. In your cPanel, choose MultiPHP INI Editor under the Software section

     Screen_Shot_2017-07-31_at_12.49.58_PM.png

 

2. Select the location you would like to create this file in. You will initially want to create this file in the Home Directory. Once you have selected the directory it will show you all of the values that you can change with this file

     Screen_Shot_2017-07-31_at_12.53.29_PM.png

 

3. Once you have set the values that you want, click the apply button at the bottom to create the file

 

4. Once the file has been created you will want to go back to your cPanel and access your File Manager to copy this file into any additional locations that you need to. You will want to copy this file to your public_html directory, or the directory for the domain you want this file to apply to as well. 

 

Note: You may need to copy the php.ini file into additional locations for it to function. For example, many WordPress sites need this file copied to the WP-Admin and WP-Content folders as well to function. If you are unsure of where to place this file for your site configuration, please consult your web developer.

 


Can't find what you're looking for? Contact our support team now
Open a Support Ticket
Submit a request

Anytime 24/7

Live Chat

Live agent:  12am - 5pm MST every day
Live virtual bot:  5pm - 12am MST every day
Mountain Time, Denver, USA