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

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




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

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

php -v

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

Ваш адрес email не будет опубликован. Обязательные поля помечены *

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