1. Home
  2. Hosting Management
  3. PHP Configuration
  4. How to Edit the php.ini File in cPanel

How to Edit the php.ini File in cPanel

There are certain scenarios when you may be asked to make changes to your PHP configuration. Specifically, you may be directed to edit a file on your server called php.ini, which usually holds a set of PHP directives.

While do not allow direct changes to PHP.ini on our servers. However, PHP configuration changes can be made from cPanel by following these steps.

The PHP Selector is not included by default in cPanel and might be missing from your account if you are hosting with a different web host. All ChemiCloud customers should see the Select PHP Version section in their hosting account’s cPanel.

1) Log into cPanel.

2) Look for the SOFTWARE section and click on Select PHP version

cPanel > Software > Select PHP Version
cPanel > Software > Select PHP Version

3) In the new window click on the Switch To PHP Options button.

cPanel PHP Options
Select PHP Version > Switch to PHP Options

4) Here you can locate the PHP directive you wish to amend and click the value. A dropdown menu or text input box will appear, allowing you to change the value as required. Check your script, plugin, or theme’s documentation (or an on-screen error message) to find the correct value.

5) Once you’ll do any change, please do a left-hand side click anywhere outside the dropdown or text input box. If the change was successful, you will see a green box with a message which will confirm that the change has been applied.

That’s all! Now you know how to edit the php.ini file in cPanel

For further questions, or if you need help, please open a support ticket from your Client Area’s Dashboard.

Updated on May 5, 2021
Was this article helpful?

Related Articles

Spring into Savings!
Up to 78% Off Hosting Plans + Free Migration!
👉 View Deals

Comments

  1. If you are macOS user, ServBay.dev is a good tool, especially for the beginners. It handles all PHP, MariaDB, PostgreSQL versions, plus Redis and Memcached. Run multiple PHP instances simultaneously and switch easily. This tool has made my PHP dev simpler. Worth a shot!

Leave a Comment