Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

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

This comment has been minimized.

Copy link

hadv commented Jun 21, 2017

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

@speller

This comment has been minimized.

Copy link

speller commented Jun 22, 2017

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

@debashishkumar

This comment has been minimized.

Copy link

debashishkumar commented Jun 23, 2017

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

@davidjeddy

This comment has been minimized.

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

This comment has been minimized.

Copy link

kennycoder commented Aug 24, 2017

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

@davidjeddy

This comment has been minimized.

Copy link

davidjeddy commented Nov 29, 2017

TY @kennycoder updated

@ihor

This comment has been minimized.

Copy link
Owner Author

ihor commented Jan 19, 2018

Thx, @davidjeddy. Updated!

@vanerleo

This comment has been minimized.

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
You can’t perform that action at this time.