Upgrade VestaCP panel PHP version to PHP7.0 process record (CentOS6)

888u

Last update at :2024-06-16,Edit by888u

If you want to count down the foreign Linux Web panels, you can definitely find more than a dozen or twenty of them, many of which were well-known in the past and have not been upgraded or updated. Among the many panels, there are still many VestaCP panel users, because articles and application tips related to VestaCP are often seen in many overseas operation and maintenance blogs.

Of course, many netizens in mainland China use VestaCP. For example, some netizens use their email function. Some time ago, some netizens asked Snail how to upgrade the PHP version of the VestaCP panel to PHP7.0. Here Snail 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 VestaCP panel PHP version

1. If we are in an existing production environment, we must remember to back up the data. Because I am using a test machine here and there is no website data, so don’t worry.

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

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

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

1. Install repo PHP7 dependency extension

wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpmwget http://rpms.famillecollet.com/enterprise/remi-release-6.rpmrpm -Uvh remi-release-6.rpm epel-release-latest-6.noarch.rpm

Paste it and execute it in SSH.

2. Update and upgrade

yum –enablerepo=remi update remi-release

If you encounter the need to enter Y/N, enter y and press Enter.

3. Pause apache and uninstall php

service httpd stopyum -y remove php

4. Install necessary software support for PHP7.0

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 php70-php-devel php70-php-mbstring

You need to press Enter once during the installation process.

5. Start new PHP

service php-fpm stopservice php70-php-fpm start

6. Set up soft links

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

7. Start to take effect

service httpd restart

8. Check the PHP version

php -v

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

To summarize, after the upgrade is completed, everything is normal when Snail logs into the VestaCP panel background. It seems that this method can be used to upgrade to PHP7.0 version. If our users want to upgrade, we must see clearly what environment it is in, such as Centos7 and centos6 are different. I always thought that they were in centos7. In fact, my test machine was installed with centos6, and I wasted a long time troubleshooting.

Recommended site searches: cloud server rental, latest free proxy IP, domain name check, Hong Kong server purchase, overseas virtual host virtual host space, high-defense server, US ASP space, private server rental, expired registered domain name query,

p>

Upgrade VestaCP panel PHP version to PHP7.0 process record (CentOS6)

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码