Anyone with good RHEL knowledge?

Soldato
Joined
26 Aug 2012
Posts
4,431
Location
North West
I am working with a customer using RHEL 7.

They have httpd24 and rh-php71 installed. However, I cannot get the apache instance to process PHP files.

I've checked PHP is installed correctly.
 
Given that the httpd24 package is part of Software Collections rather than the default RHEL7 package have you followed the instructions at https://access.redhat.com/solutions/1322993

I'll also throw in https://access.redhat.com/solutions/2662201 for reference too.

edit: Because you are using the software collections version of Apache you cannot just use things like mod_php from the main repository as its compiled for the standard httpd package in that repository too. Hence the need to follow the instructions given.
 
Last edited:
Silly question, you have installed the mod_php/apache package (i dont know the name off the top of my head), and done an 'a2enmod mod_php' (IIRC)?
 
You're using mod_php or FPM? Because it will be different for both.

One possibility just because it's not been mentioned by others yet, do you need a handler specified in the apache config? E.g.:
AddType application/x-httpd-php .php

I recall I needed to add that manually once when I was installing PHP7 from remi repositories.

Personally I use Debian whenever it's my free choice, FWIW.
 
Back
Top Bottom