Focus on cloud service provider activities
Notes on website operation and maintenance

Process record of upgrading VestaCP panel PHP version to PHP 7.0 (CentOS6)

If you want to count more than ten or twenty foreign Linux Web panels, many of them have not been upgraded or updated. Among many panels, VestaCP There are many panel users, because they are often introduced in many overseas operation and maintenance blogs VestaCP Related articles and application skills.

Of course, among domestic netizens, VestaCP is also widely used. For example, some netizens will use their email function. Some time ago, a netizen asked Lao Zuo how to upgrade the PHP version of VestaCP panel to PHP 7.0. Here Lao Zuo installs the current official VestaCP version in the test machine, and sees that the PHP version is 5.6.30. Here I am going to try to upgrade the current VestaCP panel PHP to 7.0 to see if it is feasible.

First, preparations for upgrading the PHP version of VestaCP panel

1. If we are in the existing production environment, we must remember to back up the data, because I use a test machine here, and there is no website data, so don't worry.

2. Install the VestaCP panel in the current Linux host. Here you can refer to“ Free VPS host management panel VestaCP installation demonstration and free post office function building ". Lao Zuo (laozuo. org) uses CentOS 6 environment in the test machine.

3. View the current PHP version (php - v)

 View the current PHP version (php - v)

Second, execute the process of upgrading VestaCP panel to PHP7.0

1. Install repo PHP 7 dependency extension

rpm -Uvh remi-release-6.rpm epel-release-latest-6.noarch.rpm

Paste SSH to execute.

2. Updates and upgrades

yum --enablerepo=remi update remi-release

Enter y if Y/N is required.

 Install repo PHP 7 dependency extension

3. Pause apache and uninstall php

service httpd stop
yum -y remove php

 Pause apache and uninstall php

4. Install PHP7.0 prerequisite software support

yum --enablerepo=remi-php70 install php70-php php70-php-pear php70-php-bcmath php70-php-pecl-jsond-devel php70-php-mysqlnd php70-php-gd php70-php-common php70-php-fpm php70-php-intl php70-php-cli php70-php php70-php-xml php70-php-opcache php70-php-pecl-apcu php70-php-pecl-jsond php70-php-pdo php70-php-gmp php70-php-process php70-php-pecl-imagick p hp70-php-devel php70-php-mbstring

You need to enter once during installation.

 Install PHP7.0 prerequisite software support

5. Start new PHP

service php-fpm stop
service php70-php-fpm start

6. Set Soft Links

rm /usr/bin/php
ln -s /usr/bin/php70 /usr/bin/php

 Set Soft Links

7. Commencement

service httpd restart

 Start PHP7 to take effect

8. View PHP version

php -v

Here we can see that the current PHP version of VestaCP panel has been upgraded to 7.0.

To sum up, after the upgrade, everything is normal when Lao Zuo logs into the VestaCP panel background. It seems that this method can upgrade to PHP 7.0. If our users want to upgrade, we must see clearly in which environment, for example, centos7 is different from centos6. At first, I thought that in centos7, in fact, my test machine installed centos6, Wasted a long time troubleshooting.

Domain name host preferential information push QQ group: six hundred and twenty-seven million seven hundred and seventy-five thousand four hundred and seventy-seven Get preferential promotion from merchants.
Like( zero )
Do not reprint without permission: Lao Zuo's Notes » Process record of upgrading VestaCP panel PHP version to PHP 7.0 (CentOS6)

Scan the code to follow the official account

Get more news about webmaster circle!
Entrepreneurship, operation and new knowledge