InMotion Hosting Support Center

In this article we'll discuss how you can upgrade your server's version of PHP using the EasyApache script in WHM (Web Host Manager). If you happen to have read our previous article on how to upgrade Apache using EasyApache you'll notice we skipped over the PHP menu, in this article we'll go more in-depth into the available PHP settings you can set within EasyApache.

If you came here from our article on how to pass PCI compliance scans, outdated versions of PHP are a common thing that can cause your website to fail a PCI scan. So understanding how to update PHP on your own using EasyApache in WHM is great knowledge to have in order to help keep your website PCI compliant.

This process would require having root access on your VPS or dedicated server, most users would never need to change this on their own, but the option is available for advanced users.

  1. Log into WHM.
  2. In the Find box at the top-left, type in Easy, then click on EasyApache.
  3. Leave the Previously Saved Config (** DEFAULT **) option selected, and click on Start customizing based on profile.
  4. In most cases you'll be keeping the same version of Apache, so simply click Next Step on the Apache Version page.

  5. In this example we have PHP 5.2.17 installed already, so you'll want to click on PHP 5.3.18, and then click on Next Step.
  6. On the Short Options List page you can set what options PHP will be compiled with. In this guide we are just talking about upgrading PHP, so you can simply scroll to the bottom of the page and click on Save and Build.
  7. Confirm Action window will pop-up asking if you'd like to Recompile Apache and PHP now? go ahead and click Yes.
  8. Next a Please ackowledge window will pop-up letting you know if the Apache build process is interrupted (you close your web-browser for instance), this could result in data loss. An Apache rebuild in some cases can take upwards of 45 minutes, so it's important to make sure that you'll have access to WHM for the entire duration. Once you understand these implications then click on I Understand.
  9. You should briefly see a build page that lists any errors if they were encountered, then after about 5 seconds it should automatically start the rebuild process and show you the status screen of this happening. The Apache rebuild can take upwards of 45 minutes so please be patient and be sure not to close your web-browser during the process.
  10. After Apache and PHP are compiled a Configure Suexec and PHP window will pop-up, in this case we are simply going to leave the current configuration with our Default PHP Version (.php files) being set to 5, the PHP 5 Handler being set to suphp, and Apache suEXEC being set to on. So you can simply click on Close.
  11. PHP should now be upgraded on your server, the easiest way to confirm this update is by creating a phpinfo(); info page to see PHP settings.
  12. When you view your phpinfo(); page you should now notice the PHP version is stating 5.3.18 which is what we selected to upgrade to, and your build date should reflect today's date.

You should now understand how to upgrade your PHP version on your server utilizing EasyApache within WHM.

Continued Education in Course Web Host Manager
You are viewing Section 10: 302: Upgrade PHP using EasyApache
Section 9: 301: Upgrade Apache using EasyApache
Section 11: 303: Install and configure ClamAV plugin for cPanel

Support Center Login

Social Media Login

Social Login Joomla

Related Questions

Here are a few questions related to this article that our customers have asked:
I can't update my php on a dedicated server
Easy Apache - How to install?
How to recompile php/mysql in a website?
Would you like to ask a question about this page? If so, click the button below!
Ask a Question
n/a Points
2015-02-04 7:02 pm

Could we get this upgraded for the latest version of WHM? These instructions don't appear to be valid on my VPS.

38,984 Points
2015-02-04 7:15 pm
Hello ElAdmin,

Thanks for noting this. Yes, we will update these directions soon. It just takes time to update our documentation on the servers. In general though, if you want to use to use EasyApache on WHM (regardless of the version), you simply have to type "EasyApache" in the Search field, and you'll see it come up. When you enter it, it will guide you through most of the process as per the article above.

Apologies again for the older version of this article, it will be updated soon.

Arnel C.
n/a Points
2015-08-17 3:48 pm

This easyapache is not in whm today. this article must be out of date.

43,758 Points
2015-08-17 4:13 pm
Hello Jeannie,

I just checked my own server that is running the latest versions and it is indeed in the WHM. As the article states, though, you must be logged in as root in order to have access to that feature. Give that a try and you should be fine.

Note that if you want to customize the 'Default' build, there is no customize button any longer (it needs to be updated). To do so, click on the small gear icon to the right. That will take you to the customizer. The rest of the article should be more accurate.

Kindest Regards,
Scott M

Post a Comment

Email Address:
Phone Number:

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

4 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!