Skip to content

Instantly share code, notes, and snippets.

@ihor
Last active April 25, 2021 16:47
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ihor/581d169886c29e7e17d01b0041167b01 to your computer and use it in GitHub Desktop.
Save ihor/581d169886c29e7e17d01b0041167b01 to your computer and use it in GitHub Desktop.
Install PHP 7.1 on Amazon Linux
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
@beyerz
Copy link

beyerz commented May 30, 2017

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

@hadv
Copy link

hadv commented Jun 21, 2017

install php7.1 successfully but when checking php version, it still output as 7.0.16

@speller
Copy link

speller commented Jun 22, 2017

Not working. Run all of these commands and got No package php71 available

@debashishkumar
Copy link

Not working. Run all of these commands and got No package php71 available

@davidjeddy
Copy link

davidjeddy commented Aug 6, 2017

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

@kennycoder
Copy link

@davijeddy
you a missing an enter
sudo rpm -Uvh remi-release-6*.rpm
yum-config-manager --enable remi-php71

@davidjeddy
Copy link

TY @kennycoder updated

@ihor
Copy link
Author

ihor commented Jan 19, 2018

Thx, @davidjeddy. Updated!

@vanerleo
Copy link

vanerleo commented Oct 4, 2018

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