PHP

From LUG
Revision as of 16:18, 4 January 2018 by Dawes001 (talk | contribs) (Created page with "In order to get php 5.6+ on RHEL7, we use the remi repo to supply this. Download the rpm for remi that contains the repo information and keys: <code># wget http://rpms.remir...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

In order to get php 5.6+ on RHEL7, we use the remi repo to supply this.

Download the rpm for remi that contains the repo information and keys:

# wget http://rpms.remirepo.net/enterprise/remi-release-7.rpm

# rpm -ivh remi-release-7.rpm

Now, edit the repo file and enable the e.g. php56 repo:

# vim /etc/yum.repos.d/remi.repo

Now you may install php from yum:

# yum install php php-mysql