CentOS system, upgrade VestaCP's PHP to PHP 7

CentOS system, upgrade VestaCP's PHP to PHP 7

VestaCP, the default PHP version is PHP 5.4.x, the following upgrade is successful on CENTOS 7.

Under SSH:

1. Install VestaCP
Installation details: VestaCP: Free, graphical VPS panel for Russia

2. Check PHP version

 php -v

It should show PHP 5.4.45

3. Install remi repo

 wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm wget http://rpms.remirepo.net/enterprise/remi-release-7.rpm rpm -Uvh remi-release-7.rpm epel-release-latest-7.noarch.rpm

4. Upgrade and enable remi repo

 yum --enablerepo=remi update remi-release

5. Stop Apache and delete PHP

 service httpd stop yum -y remove php

For all the options that appear, select Y.
6. Install the modules required by PHP 7.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

7. Stop PHP-fpm and install PHP70-fpm

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

8. Delete the old php symblink and create a new php symblink

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

9. Start the httpd service

 service httpd restart

10. Check PHP version

 php -v

via: http://www.servermom.org/upgrade-vestacp-to-php-7-centos/2974/

<<:  SpeedyKVM: $24/year/256MB memory/12GB space/10TB traffic/KVM/Dallas

>>:  ServerTurbo: $29/month/4GB RAM/500GB hard drive/unlimited traffic/Latvia/free Windows

Recommend

Uninstall MinerGate mining program in Windows and Ubuntu

Previous article: MinerGate: Mining Station for W...

PacHosting: $81/month/D-1518/16GB RAM/2TB HDD/Unlimited traffic/Hong Kong

PacHosting (Pacificnet Hosting Limited), a long-e...

Server Complete: $20/month/4GB memory/80GB space/5TB traffic/5 IP/Jacksonville

Server Complete, an American hosting provider, ha...

DMIT 1.5GB RAM 1Gbps Port Japan International Line KVM VPS Review

Details : DMIT: $8.72/month/1.5GB memory/20GB SSD...

BurstNet Contact

If you encounter any problems, you can contact Bu...

$36.95/month/1GB/20G space/100Mbps cloud hosting - oplink

Oplink is an American hosting company founded in ...