
This guide is very similar to our other guide on installing PHP 7 since we’re using the same method although this time, as the title suggests we’ll be using the latest stable version of PHP instead, 7.1
First let’s make sure your server is up to date.
Code:
sudo yum update
Code:
php -v
Code:
sudo yum install yum-utils
Now we can enable remi-php71
Code:
sudo yum-config-manager --enable remi-php71
Code:
sudo yum update
If you have Apache and NGINX installed, or just Apache installed run
Code:
sudo service httpd restart
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
Code:
PHP 7.1.2 (cli) (built: Aug 2 2017 12:13:05) ( NTS ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
Code:
sudo yum-config-manager --disable remi-php56 sudo yum-config-manager --disable remi-php55 sudo yum-config-manager --disable remi-php56-debuginfo sudo yum-config-manager --disable remi-php55-debuginfo sudo yum clean all sudo yum update
If you have any problems leave a comment and I’ll try to help out

No comments:
Post a Comment