InMotion Hosting Support Center

Whether you are looking to make some custom changes to your PHP settings or just switched PHP versions and the wrong settings are being loaded, you may need the default PHP.ini file for your current PHP version. Below we will go over why this file can be important.

What does the PHP.ini file do?

The php.ini file contains all of the current PHP configuration settings: such as the execution time, memory limit, etc. This is also how PECL modules are enabled such as memcache, APC, etc. This file allows you to override the servers default configuration settings.

Setting up a new php.ini file

Easy way to load up a copy of the PHP.INI file

The PHP Configuration option is available in shared server accounts (this includes Reseller accounts). The dedicated/VPS accounts will only have the PHP Configuration option if it has been loaded. This option provides a quick and easy way to load up a PHP.INI file without having to manually create it.

  1. Log into your cPanel account
  2. Go to the Software and Services section, then click on PHP Configuration (or MultiPHP Manager for VPS users)
  3. Make sure you're using the PHP version you want (if you're not sure, then leave it as it is), then click on the Update button.

That will create the default PHP.INI file in your PUBLIC_HTML folder.

How to Manually Create a PHP.INI file

Clicking on the button for your PHP version will open a new window containing the correct php.ini file for that version. Below are the steps for adding a php.ini file to your account.

  1. Log into your cPanel account
  2. Open your File Manager
  3. Navigate to your public_html directory
  4. Create a new file
  5. Name it php.ini
  6. Edit the php.ini file you just created.
  7. Copy and Paste the default php.ini code from the buttons above.
  8. Clcik Save Changes
Was this article helpful?

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Forum Login

You are NOT logged in. You can still browse our Support Center.

To participate within our Community Support Forum:

n/a Points
2019-03-24 3:14 pm

I changed file upload size to 1G but it didn't change

1,104 Points
2019-03-25 9:12 am
You may need to ensure the website is following that php.ini file or make it recursive. You can also check this using your phpinfo.php file.
n/a Points
2019-02-01 2:28 am

Copy and Paste the default php.ini code from the buttons above. Which button? Where's the code?

1,104 Points
2019-02-01 10:25 am
Pressing the PHP buttons at the top should open a new window with the code.
n/a Points
2017-04-22 11:04 pm

Very helpful tutorial for creating the ini file. I used it after updating the PHP version to ensure the ini file was updated as well. 

Post a Comment

Email Address:
Phone Number:

Please note: Your name and comment will be displayed, but we will not show your email address.

5 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!