Last update at :2024-05-27,Edit by888u
VestaCP is a very stable web panel that supports multiple users. It has recently added the function of one-click application installation, which is very practical. Details: VestaCP: WEB management, supports PHP5.6, Nginx, Apache, DNS, Mail, etc. VPS panel. 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-release2. Stop httpd and delete the default version of php
service php-fpm stop service httpd stop yum -y remove php3. Install PHP 7.0 or PHP 7.1a, 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 -yb. 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-mbstring4. Install memcache and opcache for PHP 7.0
yum -y --enablerepo=remi-php70 install php-opcache php-memcacheApplies to PHP 7.1
yum -y --enablerepo=remi-php71 install php-opcache php-memcache5. Restart php-fpm or httpd
Start httpd (Apache)
service httpd startStart php-fpm (Nginx)
service php-fpm startvia: http://www.wangjunwei.com/website/vestacp/635.html, https://sadsu.com/?p=22
Recommended site searches: IP segment query, host discount code, US website server, 1g US virtual host, asp.net space, local IP address query, php host space, online IP check, website virtual host space, free domain name ,
发表评论