Discussions on this article:

Our newest servers give you the option to run different versions of PHP (5.2, 5.3, 5.4) on your account. This can be important when using third party applications, which require the latest stable version of PHP.The PHP version can only be changed on shared servers, biz117 and higher. This functionality will be available to all shared customers who are on servers that use PHP 5.3 by default.

If you are a VPS or Dedicated customer to take advantage of running PHP 5.4 you must be currently using PHP 5.3 and MySQL 5.1 - if you are not using these minimum requirements you must upgrade first. Please contact our support department if you are a VPS or dedicated customer and wish to use PHP 5.4.  

Please keep in mind, PHP 5.4 has it's own web server built into it. We have disabled this functionality as it conflicts with our servers configuration. 

Changing the PHP Version:

  1. Log into cPanel
  2. Click the PHP Configuration button in the Software/Services section.

    Older servers will not display this option, however you can request to be moved to a newer server that has this ability. You can submit an email to support@inmotionhosting.com requesting to be moved. Please verify your account in the email by providing your current AMP password or the last four digits of the credit card on file.
    php_1
  3. Select the version of PHP you want to use from the dropdown.php_5-4
  4. Click the Update button to save your php configuration.
  5. Check your changes by viewing your settings in a phpinfo page.

Congratulations, now you know how to adjust your PHP version from cPanel. If you need to setup your account to use multiple PHP versions, see the article on Using multiple PHP versions on one account.

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!

Like this Article?

Related Questions

Here are a few questions related to this article that our customers have asked:
Unable to install Joomla due to available version of PHP
PHP Version for software in Softaculous
Would you like to ask a question about this page? If so, click the button below!
Ask a Question
2012-12-12 10:37 am
You need to update these instructions to the newer version of C-Panel
Staff
17,014 Points
2012-12-12 10:57 am
Hello Nigel,

I have updated the article to make it a little more clear. The version of the cPanel is not what the php config icon is based on. It is the age of the server. Your server is one of the older ones and does not have this feature.

We can certainly move your account to a newer server that does have this feature. As per the article, simply send an email to support@inmotionhosting.com requesting to be moved. Be sure to verify your account in the email by providing your current AMP password or the last four digits of the credit card on file.

Best Regards,
Scott M
2013-11-12 7:23 am
Thanks for the information posted step by step using images thanks lot . For more information looking for you.

Question: When will PHP 5.5.12 be supported?

n/a Points
2014-05-08 11:16 am

When will PHP 5.5.12 be supported?  It has a bunch of security patches.

 

The maintainers of PHP have released two new versions of the scripting language that fix a number of bugs, including a pair of vulnerabilities related to OpenSSL. Versions 5.4.28 and 5.5.12 both contain that important patch, as well as fixes for more than a dozen other vulnerabilities.

The fix for the OpenSSL flaws is in both PHP 5.4.28 and 5.5.12. Both versions also include a slew of other bug fixes, one of which is for CVE-2014-0185, a privilege escalation flaw. The bug could allow an attacker to run arbitrary code in some situations.

Staff
8,065 Points
2014-05-08 11:23 am
We specifically patch all servers to ensure vulnerabilities such as this are not an issue. Rest assured at any disclosed vulnerabilities are immediately addressed across all environments.

Question: Are the changes immediate?

n/a Points
2014-05-22 1:10 am

Is there a lag time before the newly selected version takes effect? Im on a shared account, and I changed the PHP version to 5.4, but cPanel is still reporting my php version as 5.3.28 and so does my Wordpress installation.  So far it's been about a half hour since I made the change in the PHP configuration as outlined above. And when I return to the PHP Configuration Page, the dropdown is set to 5.4, but everything else seems to indicate that I'm still on 5.3

Staff
8,065 Points
2014-05-22 9:57 am
The changes will be instant. Sometimes, depending on your existing .htaccess file, the PHP version changer can fail to properly write the needed line in which you will need to add this manually. The following article will provide you with the line that you would need to add to your .htaccess file:

Using multiple PHP versions on one account

Simply place the appropriate line for your desired PHP version into the .htaccess file of your home directory and it will then take effect.
n/a Points
2014-05-23 9:14 am

That got it done.  Thanks.

Question: I followed directions, but php version not updating?

n/a Points
2014-05-29 10:35 am

Can you update the article and mention that sometimes the switcher doesn't work, and that you need to manually edit your .htaccess to get the job done? I just had to add the following to my .htaccess file because cPanel failed to do it:

 

AddHandler application/x-httpd-php55 .php

Staff
8,065 Points
2014-05-29 10:49 am
In 99% of cases, the PHP switcher will work just fine, however, depending on some account configurations, you will need to adjust it manually.
n/a Points
2014-06-26 10:43 am

This solucion exito GRACIAS POR EL APORTE!

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.

Need more Help?

Search

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: support@InMotionHosting.com
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!