PHP 7.1 VestaCP

sudo yum install yum-utils
If it’s already installed, great move on to the next step, if not then allow it to install.

Now we can enable remi-php71

Code:
sudo yum-config-manager —enable remi-php71
Now we can tell yum to update, this will upgrade our old version of PHP to 7.1

Code:

FOR FAST-CGI

 

sudo yum update
After the process has finished your server will now have PHP 7.1 installed, we need to restart our web server for it to take effect however.

If you have Apache and NGINX installed, or just Apache installed run

Code:
sudo service httpd restart
If you are running NGINX and PHP-FPM then run

sudo service php-fpm restart && sudo service nginx restart
Lastly we’ll check the PHP version like we did at the start

Code:
php -v

 

https://github.com/Niklan/Trash/blob/master/VestaCP/CentOS%20and%20PHP7.md

Добавить комментарий

Ваш адрес email не будет опубликован.

Этот сайт использует Akismet для борьбы со спамом. Узнайте, как обрабатываются ваши данные комментариев.