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

ViralVPS: $4.59/month/1 core/256M/15G SSD/750G/Xen PV/HVM

ViralVPS是荷蘭一家主機商,僅提供了1年主機服務,現在推出一款優惠主機,帶寬為10Gbps,...

Webtropia: €1/month/2GB RAM/75GB storage/unlimited data/300Mbps/OpenVZ/Germany

Webtropia, owned by myLoc, has previously introdu...

StableVM: €3.65/month/4GB RAM/15GB SSD space/unlimited traffic/OpenVZ/France

StableVM, a newly established hosting provider, p...

24Shells: $130/month/32GB memory/1TB hard drive/100TB traffic/5 IP/New York

24Shells, a long-established American hosting com...

CloudCone: $3.2/month/1GB memory/10GB SSD space/1TB traffic/DDOS/KVM/Los Angeles

CloudCone, a relatively active hosting provider, ...

10g.biz 512MB RAM 10Mbps Unlimited Bandwidth Los Angeles CN2 GIA KVM VPS Review

Details : 10g.biz: $2.36/month/512MB RAM/30GB SSD...

How to use Paypal to dispute and get a refund

One of the benefits of using Paypal is that you c...

OneProvider 512MB RAM Los Angeles KVM VPS Review

Details: OneProvider: $2.5/month/512MB memory/20G...

NFPHosting: $12/year/1GB memory/40GB space/2TB traffic/OpenVZ/Los Angeles

NFPHosting, which claims to have been established...