Home Linux & Systems Cybersecurity Cloud & DevOps Networks & Infrastructure SIEM & Monitoring DFIR & Threat Intel Development & Other All categories Projects About Tools

Install PHP 5.6 on Red Hat 7

Leer en espanol
Install PHP 5.6 on Red Hat 7

Table of contents

textyum-config-manager –enable rhel-server-rhscl-7-rpms What is RHSCL? The goal of Red Hat Software Collections (RHSCL) is to provide Red Hat En customers with ===

We activate the RHSCL repositories

text
yum-config-manager –enable rhel-server-rhscl-7-rpms

What is RHSCL?

The goal of Red Hat Software Collections (RHSCL) is to provide Red Hat Enterprise Linux customers with the latest and most stable versions of open source database and dynamic languages ​​so that users can create modern applications that can be confidentially deployed in production. These fast-moving collections are expected to be updated frequently and have a shorter lifecycle and support terms than Red Hat Enterprise Linux.

We install the SCL tools

Bash
yum install scl-utils

We install PHP 5.6

Bash
yum install rh-php56 rh-php56-php

We make the following symbolic links:

text
ln -s /opt/rh/rh-php56/enable /etc/profile.d/rh-php56.sh

ln -s /opt/rh/httpd24/root/etc/httpd/conf.d/rh-php56-php.conf /etc/httpd/conf.d/

ln -s /opt/rh/httpd24/root/etc/httpd/conf.modules.d/10-rh-php56-php.conf /etc/httpd/conf.modules.d/

ln -s /opt/rh/httpd24/root/etc/httpd/modules/librh-php56-php5.so /etc/httpd/modules/

We activate PHP 5.6

Bash
source /etc/profile.d/rh-php56.sh

All the best

:wq!

Comments