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

whois.com .net domain name discount $3.88/first year

Address: http://shop.whois.com/domains/net It dep...

OpenVZ VPS collection and recommendation with annual payment below 10 USD

The ranking is in no particular order, just colle...

apnscp: A paid WEB host management system (based on Apache)

apnscp is a paid WEB host management system, with...

FtpIt: $1.99/month/1GB RAM/15GB SSD space/1TB traffic/OpenVZ/Los Angeles

FtpIt, introduced in early 2014, is a stable merc...

Eleven2 latest discount code

Hosting details: http://www.eleven2.com/shared-ho...

Nogics: $20/year/1GB memory/15GB SSD space/1TB traffic/KVM/German Hetzner

Nogics, posted several times, should be the same ...

Site5 Host Purchase Tutorial

I searched around on the Internet but couldn'...

Synhosting commercial hosting free for half a year

Synhosting is a hosting provider that claims to h...

nationserver: $7/year/128MB/10GB space/250GB bandwidth/OpenVZ

Nationserver is a foreign hosting provider that s...

How to apply for a BurstNET Reseller account

Step 1: Become a Burst user. You must purchase an...

Anonius: $10/month/1GB RAM/20GB SSD space/500GB bandwidth/KVM/Taiwan

Anonius is a newly established Chinese hosting pr...