Upgrade VestaCP's PHP version to PHP 7.0 or PHP 7.1 in CentOS 7

Upgrade VestaCP's PHP version to PHP 7.0 or PHP 7.1 in CentOS 7

VestaCP is a very stable web panel that supports multiple users. It has recently added the function of installing applications with one click, which is very practical. Details: VestaCP: VPS panel with WEB management, support for PHP5.6, Nginx, Apache, DNS, Mail, etc. The following is to upgrade the PHP version to PHP 7.0 or PHP 7.1.

1. Update source

 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 yum --enablerepo=remi update remi-release

2. Stop httpd and delete the default version of php

 service php-fpm stop service httpd stop yum -y remove php

3. Install PHP 7.0 or PHP 7.1
a. Install 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 php70-php-pecl-zip php70-php-snmp -y

b. Install PHP 7.1

 yum -y --enablerepo=remi-php71 install php php-pear php-bcmath php-mysqlnd php-gd php-common php-fpm php-intl php-cli php-xml php-pecl-apcu php-pdo php-gmp php-process php-pecl-imagick php-devel php-mbstring

4. Install memcache and opcache
For PHP 7.0

 yum -y --enablerepo=remi-php70 install php-opcache php-memcache

For PHP 7.1

 yum -y --enablerepo=remi-php71 install php-opcache php-memcache

5. Restart php-fpm or httpd

Start httpd (Apache)

 service httpd start

Start php-fpm (Nginx)

 service php-fpm start

via: http://www.wangjunwei.com/website/vestacp/635.html, https://sadsu.com/?p=22

<<:  RFCHost 768MB RAM Hong Kong Leaseweb KVM VPS Review

>>:  SunnyVision Dual L5420 4GB memory 10Mbps bandwidth Hong Kong independent server review

Recommend

CrownCloud: $25/half year/512MB memory/500GB space/3TB traffic/KVM/Germany

CrownCloud, a US hosting provider, has been opera...

Keenweb: £7.49/year/100GB SSD space/unlimited traffic/unlimited domain names/UK

Keenweb, a British hosting provider, was establis...

.eu domain name, 10 years payment total 11 euros

If you need information such as European addresse...

WeLoveServers: $8/year/256MB/10GB space/250GB traffic/OpenVZ

WeLoveServers has recently updated its version an...

Hostire: $29/month/Dual L5420/16GB memory/2TB hard disk/100TB traffic/Kansas

Hostire, an Indian hosting provider, provides vps...

Google Adsense launches Optimization Lab and one-stop optimizer

Optimization Lab: http://www.google.com/support/a...

GigsGigsCloud: $30/year/512MB memory/20GB SSD space/500GB traffic/KVM/Singapore

GigsGigs is a Hong Kong registered vps host, prov...

Dracula Servers: $5/month/2GB RAM/15GB SSD space/500GB bandwidth/KVM/Chicago

Dracula Servers is a foreign hosting company esta...