Created
November 4, 2018 18:45
-
-
Save johnsage25/6b9b71e12306c192f2d8f1d3b84e2e1d to your computer and use it in GitHub Desktop.
his 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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo yum update | |
php -v | |
sudo yum install yum-utils | |
sudo yum-config-manager --enable remi-php71 | |
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 | |
sudo service php-fpm restart && sudo service nginx restart | |
php -v | |
This isn’t required but if you would like to keep your system clean then we can now disable the older versions of PHP from our system. To do this run the following | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment