Anyone with good RHEL knowledge?

Soldato
Joined
26 Aug 2012
Posts
4,350
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.
 
Soldato
Joined
10 Oct 2005
Posts
8,706
Location
Nottingham
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:

SMN

SMN

Soldato
Joined
2 Nov 2008
Posts
2,502
Location
The ether
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)?
 
Soldato
Joined
25 Jun 2011
Posts
5,468
Location
Yorkshire and proud of it!
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