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

5 $/Monat/256 M/20 G Speicherplatz/500 G Datenverkehr VPS —— DaringHost

DaringHost bietet seit April 2010 Hosting-Dienste...

GreenValueHost: 12 $/Jahr/2 CPU/1024 MB/50 GB/1 TB/2 IP/OpenVZ

Die September-Aktion von GreenValueHost ist wiede...

12 $/Jahr/750 M Speicherplatz/virtueller Host für 5G-Verkehr – HOSTINGCOVE

HOSTINGCOVE ist ein 2009 gegründetes amerikanisch...

alpnames bietet kostenlose .science-Domains an

Es gibt so viele neue Domänennamensuffixe. Der vo...

CloudsVM: 12 $/Monat/512 MB Speicher/12 GB SSD/1 TB Bandbreite/KVM/Hongkong

CloudsVM, ein im Juli 2015 gegründetes chinesisch...