How to change PHP version

phpcgiphp7.2php7.0php5.6fcgiphp-fpmsitesapplications

Introduction


The FASTPANEL® control panel allows you to use alternative PHP versions for each site individually. You may install and use any PHP version starting from 5.2 .

PHP version change through the example of PHP 5.4


The whole process consists of three steps:

  1. Go to “Settings” -> “Applications” in the side menu
  2. Find php54 application, click “Install” and wait until the installation is complete
  3. In the site settings select FCGI as PHP mode


When «PHP Verison» will become active you may choose required PHP verison, php54 in this particular
case.

 

NB: Do not forget to click “Save”


You may check if the correct PHP version is applied by creating info.php file in the root directory of your site with the following content:


<?php phpinfo(); ?>


Access the file via Internet browser by following the alike link http://yourwebsite.com/info.php 

 

If everything is done correctly you will see a page showing php 5.4 

This site uses cookie to collect data about IP-address and geolocation in order to provide the most accurate data regarding your request. By continuing to use this web-site you automatically agree with using these technologies.