Posted on Leave a comment

CentOS: how to execute a php file with different php version than the php version of OS

To execute a php file with different php version than the version installed on the main php of your Server follow this:

You should know that where is that php version located so that you can add the path.

In my case I want to use PHP 7 that is installed in the plesk hosting panel folder so I’ll run following command:

 /opt/plesk/php/7.0/bin/php server.php

In above code server.php is the file which we want to execute. Just enter above command in the ssh terminal and it will execute successfully.

If your php is located in some other location then get that path and run in the same manner as I did above.

Testing Environment:

OS: CentOS 6.7 x 64

Posted on Leave a comment

How to install Plesk on Linux CentOS?

Download the autoinstaller from our website:


Add execute permissions to the autoinstaller:

chmod +x plesk-installer

Launch the autoinstaller:


If upgrading Plesk from a lower version:
Command line:

/usr/local/psa/admin/sbin/autoinstaller --all-versions

GUI (Graphical user interface):

/usr/local/psa/admin/sbin/autoinstaller --all-versions --web-interface

For more information, please refer to Plesk Installation guide.

Tested on CentOS 6.7 x64