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

prometeus: 10 GB FTP-Speicherplatz für VPS-Benutzer

Der VPS von Prometeus ist ziemlich gut und wurde ...

Typecho-Navigationsthema: Automatische Erfassung, Stapelüberprüfung

Themenfunktionen : Bei der automatischen Übermitt...

Directnic: .com-Domänenname 1,99 USD für das erste Jahr

Directnic, ein ausländischer Händler, bietet vers...

HiFormance: 25 % Rabatt auf alle VPS, einschließlich Sonderpakete

HiFormance, ein amerikanisches Hosting-Unternehme...