Aktualisieren Sie die PHP-Version von VestaCP auf PHP 7.0 oder PHP 7.1 in CentOS 7

Aktualisieren Sie die PHP-Version von VestaCP auf PHP 7.0 oder PHP 7.1 in CentOS 7

VestaCP ist ein sehr stabiles Webpanel, das mehrere Benutzer unterstützt. Vor kurzem wurde die Funktion hinzugefügt, Anwendungen mit einem Klick zu installieren, was sehr praktisch ist. Details: VestaCP: VPS-Panel mit WEB-Verwaltung, Unterstützung für PHP5.6, Nginx, Apache, DNS, Mail usw. Im Folgenden wird die PHP-Version auf PHP 7.0 oder PHP 7.1 aktualisiert.

1. Quelle aktualisieren

 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. Stoppen Sie httpd und löschen Sie die Standardversion von PHP

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

3. Installieren Sie PHP 7.0 oder PHP 7.1
a. Installieren Sie 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. Installieren Sie 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. Installieren Sie Memcache und Opcache
Für PHP 7.0

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

Für PHP 7.1

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

5. Starten Sie php-fpm oder httpd neu

Starten Sie httpd (Apache).

 service httpd start

Starten Sie php-fpm (Nginx)

 service php-fpm start

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

<<:  Installieren des Plex Media Systems unter CentOS 7

>>:  RFCHost 768 MB RAM Hongkong Leaseweb KVM VPS-Bewertung

Artikel empfehlen

QuadraNet: Black Friday-Angebote für dedizierte Server

QuadraNet, das beste und größte Rechenzentrum in ...

TropiHost: 5,5 $/Monat/4 GB RAM/100 GB Speicher/1 TB Bandbreite/OpenVZ

TropiHost, das wir bereits vorgestellt haben, bie...

MyFilez bietet 100 GB kostenlosen Speicherplatz

MyFilez.US, im Besitz von sentris, bietet 5 GB ko...

Crissic Simple Bewertung

Die Rabatte bei Crissic waren riesig und da es si...

FtpIt: 5 $/Jahr/128 MB RAM/5 GB Speicher/600 GB Bandbreite/OpenVZ

FtpIt ist ein amerikanisches Hosting-Unternehmen....