Skip navigation
Knowledge Base    Hosting    cPanel: Using a PHP.INI File

Using a PHP.INI File

Last Updated: Jul 31, 2017

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 on your site, please consult your web developer.

 

Can't find what you're looking for?

+1 720.249.2374

Monday-Friday   8AM to 6PM Mountain Time, Denver

Live Chat

Loading

Every day   10AM to 5PM Mountain Time, Denver