Install PHP 7 on CentOS VestaCP
To install PHP 7. you need to first enable epel and remi repo.
1 2 |
yum install -y epel-release rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-7.rpm |
Remove existing PHP
1 |
yum -y remove php |
Install PHP 7.3
1 |
yum --enablerepo=remi-php73 install php73-php php73-php-mbstring php73-php-mysqlnd php73-php-gd php73-php-fpm php73-php-intl php73-php-cli php73-php-xml php73-php-opcache php73-php-pdo php73-php-gmp php73-php-process php73-php-pecl-imagick php73-php-devel |
start php-fpm
1 2 |
service php-fpm stop service php73-php-fpm start |
Set php 7.3 as default PHP for cli
1 2 |
rm /usr/bin/php ln -s /usr/bin/php73 /usr/bin/php |
Restart apache
1 |
service httpd restart |