Please refer to this article for current details: http://blog.arvixe.com/php-version-on-linuxcpanel-hosting/
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!
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,
Tord
Yes, you can set different version for sub directory. Just select the sub directory and desired version and click submit to work.
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.
Hello,
That is odd. Can you please reach out to our support team so they can investigate this issue for you?
Thank you.
When I click on ntPHPSelector I get a 404 page…any ideas?
Hi, please e-mail support@arvixe.com with your username and they will be able to assist you further.
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.
Hello,
Can you please reach out to our support team (support @ arvixe.com). They should be able to assist you with this.
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.
Hello,
I recommend you reach out to our support team (support @ arvixe.com). They should be able to help you with this.
-Alex.