Whether you are looking to make some changes to your PHP settings or you just changed the PHP version for your cPanel account and the wrong settings are being loaded, you may need the default php.ini file for your current PHP version.

What is the purpose of the php.ini file?

The php.ini file contains all of the current PHP configuration settings: such as the execution time, memory limit, etc. There is a php.ini file the server will fall back onto if you do not have one in your public_html folder. Creating a php.ini file will override any soft limit settings placed by the server.

Create a php.ini file

The Quick and Easy way to Create a PHP.INI file

Web Hosting Hub actually provides a way to create a PHP.INI file if you don't have one in your account. Just follow these steps:

  1. Log into your cPanel account
  2. Go to the Software and Services section, then click on PHP Configuration
  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.

The Manual Way to create a PHP.INI file

The steps below will explain how to create a new php.ini file for your cPanel 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. Save the name as php.ini
  6. Edit the new php.ini file you just created.
  7. Paste the contents from the popup from the button at the beginning of the article.
  8. Save the file
Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Did you find this article helpful?

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

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

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!

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

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

Not a Customer?

Get web hosting from a company that is here to help.