Last update at :2024-05-12,Edit by888u
For vestacp installation tutorial, you can refer to "VPS Beginner Tutorial: One-click Installation of Vestacp in LNMP/LAMP/LANMP Environment". The main topic here is to upgrade the PHP version to 7, and the system is Ubuntu/Debian.
First, let’s check the PHP version in your currently installed vestacp:
Enter in SS client: php -v
You will generally see: PHP 5.6.xx and Zend Engine v2.6.xx
Second, delete PHP
Input: apt-get -y purge php5
Third, install some components:
Input: apt-get install python-software-properties
Fourth: Continue to install components
add-apt-reposi"unspeakable"y ppa:ondrej/php-7.0
apt-get update
Fifth: Install php7
apt-get install -y php7.0
Sixth: Check the current php version
php -v
Generally speaking: PHP 7.0.x, Zend Engine v3.0.x
Seventh: Let’s install some PHP components for ease of use
apt-cache search php7-*
Now you can choose something you need, such as:
apt-get install php7.0-common libapache2-mod-php7.0 php7.0-cgi php7.0-cli php7.0-phpdbg php7.0-fpm libphp7.0-embed php7.0-dev php7 .0-dbg php7.0-curl php7.0-gd php7.0-imap php7.0-interbase php7.0-intl php7.0-ldap php7.0-mcrypt php7.0-readline php7.0-odbc php7 .0-pgsql php7.0-pspell php7.0-recode php7.0-tidy php7.0-xmlrpc php7.0 php7.0-json php-all-dev php7.0-sybase php7.0-modules-source php7 .0-sqlite3 php7.0-mysql php7.0-opcache php7.0-bz2
Eighth, start php-fpm
service php7.0-fpm start
Ninth: Delete the old version of symblink and create a new one
rm /usr/bin/php
ln -s /usr/bin/php7.0 /usr/bin/php
Tenth: Restart apache
service apache2 restart
Recommended site searches: foreign virtual hosts, Ministry of Industry and Information Technology registration system, high-defense IP rental, vps Hong Kong, domain name registration number query, foreign domain names, Hong Kong server rental, IP purchase, purchase of registered domain names, cloud server rental,
发表评论