How to switch to a different PHP version?

Hostlantern has implemented a unique server setup that allows each customer to choose which version of PHP to use for his / her account. What is more, the customer can even use different PHP versions for different directories in one and the same hosting account.

The PHP versions currently supported are: PHP 4.4 PHP 5.0,  PHP 5.1, PHP 5.2, PHP 5.2 with Suhosin, PHP 5.3, PHP 5.4, PHP 5.5, PHP 5.6, and PHP 7.0 Beta 3.

It is really easy to change PHP versions for your website with a web hosting account with SiteGround. All you need to do is follow those step:

  1. Log in to cPanel for your account
  2. Go to 1H Software section -> PHP Version Manager
  3. Navigate to the directory you would like to change the PHP version for (note that the change will apply to sub-directories for it as well)
  4. Click on the directory name
  5. Select the desired PHP version and click Save

That is all.

You can find detailed instructions how to manually change the PHP version for your account below:

Go to cPanel, File Manager and choose "Web Root (public_html/www)". There create a new file (or edit the existing one) called .htaccess and add the following line:

To switch to PHP 7.0

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Does Hostlantern support PHP HTTP Authorization?

Hostlantern supports the PHP HTTP Authorization and in order to enable it you need to add the...

Is PHP Safe Mode turned Off on Hostlantern’s servers

PHP Safe Mode is by default turned off for all PHP versions available on Hostlantern servers....

How to enable zlib compression manually for PHP scripts

PHP Zlib module allows you to transparently read and write gzip compressed files. Thus it is used...

What is SourceGuardian and how to use it?

SourceGuardian is commercial software which allows you to securely encode, compile and encrypt...

How to install Smarty Template Engine

Follow the steps below to install Smarty Template Engine on your hosting account: Download the...