How to configure Apache httpd to use PHP from RHSCL

Solution Verified - Updated -

Issue

  • How can we connect mod_php7 (libphp7) from Red Hat Software Collections (RHSCL) rh-php70-php to httpd?
  • How can we connect mod_php5 (libphp5) from RHSCL rh-php56-php to httpd?
  • How can we connect mod_php5 (libphp5) from RHSCL php55-php to httpd?
  • How can we connect mod_php5 (libphp5) from RHSCL php54-php to httpd?
  • I would like to know what I need to install and how to configure it so that httpd24 is being used with php56 (or greater) and my .php files are being processed by the Apache Web Server.
  • How to install and configure Apache httpd and PHP 5.6 from RHSCL?

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 6
  • Red Hat Software Collections (RHSCL)
  • Apache Web Server (HTTPD)
  • PHP
    • rh-php73-php
    • rh-php72-php
    • rh-php71-php
    • rh-php70-php
    • rh-php56-php
    • php55-php
    • php54-php

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content