Last active
April 25, 2021 16:47
-
-
Save ihor/581d169886c29e7e17d01b0041167b01 to your computer and use it in GitHub Desktop.
Install PHP 7.1 on Amazon Linux
This file contains hidden or 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 su | |
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm | |
sudo rpm -Uvh remi-release-6*.rpm | |
yum-config-manager --enable remi-php71 | |
wget ftp://195.220.108.108/linux/epel/6/x86_64/scl-utils-20120229-1.el6.x86_64.rpm | |
rpm -Uvh scl-utils-20120229-1.el6.x86_64.rpm | |
yum install php71 -y |
install php7.1 successfully but when checking php version, it still output as 7.0.16
Not working. Run all of these commands and got No package php71 available
Not working. Run all of these commands and got No package php71 available
Updated for anyone who finds this:
sudo su
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
sudo rpm -Uvh remi-release-6*.rpm
yum-config-manager --enable remi-php71
wget ftp://195.220.108.108/linux/epel/6/x86_64/scl-utils-20120229-1.el6.x86_64.rpm
rpm -Uvh scl-utils-20120229-1.el6.x86_64.rpm
yum install php71 -y
@davijeddy
you a missing an enter
sudo rpm -Uvh remi-release-6*.rpm
yum-config-manager --enable remi-php71
TY @kennycoder updated
Thx, @davidjeddy. Updated!
need to run
yum -y install scl-utils
before php install
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I dont think I can do a pull request of any sort on a gist, however you are missing an rpm that should be on the first line:
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm