How to Change PHP version in CentOS Web Panel

How to Change PHP version in CentOS Web Panel (CWP)

CentOS Web Panel is a free web hosting panel with huge number of features similar to other paid web hosting panels. After installation of CentOS Web Panel CWP you will get php 5.6 as default which is so old. In this situation you have to upgrade your php version. This guide will show you how to change your php version in CentOS Web Panel CWP.

 

Requirements:

  1. CentOS Web Panel installed. Installation guide is here.
  2. root login information.
  3. An SSH client like PuTTY.

 

To change CWP php version follow the steps.

1 . Login to your CentOS Web Panel using your root details:

https://your-ip:2031

CWP Installation 5 1 How to Change PHP version in CentOS Web Panel

 

2 . Go to PHP settings.

CWP Installation 6 How to Change PHP version in CentOS Web Panel

 

3 . Check your current php version by clicking on “PHP info”

CWP Installation 7 How to Change PHP version in CentOS Web Panel CWP Installation 8 How to Change PHP version in CentOS Web Panel

 

4 . Now Click on PHP Version Switcher.

CWP Installation 9 How to Change PHP version in CentOS Web Panel

 

5 . Now select the PHP Version which you want to install. CWP Installation 10 How to Change PHP version in CentOS Web Panel

 

6. After selecting the PHP version it will ask you to select the extensions and dependencies  you want to install for your php version. Select the options you want to install and click on “Save & Build “in the bottom of the page.

CWP Installation 11 How to Change PHP version in CentOS Web Panel CWP Installation 12 How to Change PHP version in CentOS Web Panel

 

7. After you click “Save & Build”, you will get a notification under the “Save & Build” button that “PHP compiler started in Background.

To check and monitor the background process, you need to login via SSH using PuTTY with your root details ans run the following command.

tail -f /var/log/php-rebuild.log

 

CWP Installation 13 How to Change PHP version in CentOS Web Panel

 

Wait and monitor the process to be finished. Now you have successfully changed your PHP version in CentOS Web Panel CWP.

 

You may also like...

Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments