How to Change PHP Version in cPanel

Please refer to this article for current details:

This quick article will teach you how to change your PHP Version in cPanel!

First, click on ntPHPSelector under Software/Services


Then, select the directory that you would like to change the PHP Version of


Select the PHP Version you prefer from the drop down menu


And click Submit


That’s it! Your new PHP Version will now be set!


Looking for quality web hosting? Look no further than Arvixe Web Hosting!

Tags: , , , , , , , , , , , | Posted under cPanel/Linux Hosting, Internet | RSS 2.0

Author Spotlight

Arian Jahansouz

Hello, I am Arian! I have been writing for Arvixe since 2009 and now head the Arvixe Blog. Feel free to contact me at any time with questions or comments!

10 Comments on How to Change PHP Version in cPanel

  1. Tord Dellsén says:

    Hi and thank you for this,
    is it possible to set the php version for a subdirectory of public_html? For example as is given in one of the examples public_html/wp or in my case for one of my subdomains?
    Kind Regards,

  2. Steve says:

    Yes, you can set different version for sub directory. Just select the sub directory and desired version and click submit to work.

  3. Christian says:

    When I change the php version this way, I get PDO errors. Where do I change/update the PDO information to keep the following error from happening?

    Fatal error: Class ‘PDO’ not found in /home/username/public_html/subdirectory/

    This error does not occur if I do not change the php version, but some of my addon software require a more current version of php.

  4. Sergio Corrales says:

    When I click on ntPHPSelector I get a 404 page…any ideas?

  5. tyrus says:

    I have changed the Version of PHP from 5.3 to 5.5 but it did not updated the extensions and so getting error for one of the extension as:
    PHP Core Warning – yii\base\ErrorException
    PHP Startup: SourceGuardian: Unable to initialize module
    Module compiled with module API=20090626
    PHP compiled with module API=20100525
    These options need to match
    Can someone help on this please.

    • Alex says:


      Can you please reach out to our support team (support @ They should be able to assist you with this.

  6. Jesse says:

    Hi! I can’t change my PHP version using this method.
    Going through these steps works perfectly fine, but the PHP version does not change.

    • Alex says:

      I recommend you reach out to our support team (support @ They should be able to help you with this.

Leave a Reply to Tord Dellsén Cancel reply

Your email address will not be published. Required fields are marked *