Showing results for 
Search instead for 
Did you mean: 

php code not execute in rhel8

i have installed RHEL 8.5 and installed httpd 2.4.37 and php 7.2.24. after starting the httpd it shows Drip-in php-fpm and not executing php scripts. how can i solve this issue?

1 Reply
Flight Engineer
Flight Engineer

Did you configure apache for php-fpm?

Could you look at:


My advice is easyway using httpd with mod_php to you,

[root@adminlinux ~]# yum info php-7.4.19-1.module+el8.5.0+11143+cc873159.x86_64

Installed Packages
Name : php
Version : 7.4.19
Release : 1.module+el8.5.0+11143+cc873159
Architecture : x86_64
Size : 4.5 M
Source : php-7.4.19-1.module+el8.5.0+11143+cc873159.src.rpm
Repository : @System
From repo : example_Red_Hat_Enterprise_Linux_8_Red_Hat_Enterprise_Linux_8_for_x86_64_-_AppStream_RPMs_8_5
Summary : PHP scripting language for creating dynamic web sites
License : PHP and Zend and BSD and MIT and ASL 1.0 and NCSA
Description : PHP is an HTML-embedded scripting language. PHP attempts to make it
: easy for developers to write dynamically generated web pages. PHP also
: offers built-in database integration for several commercial and
: non-commercial database management systems, so writing a
: database-enabled webpage with PHP is fairly simple. The most common
: use of PHP coding is probably as a replacement for CGI scripts.
: The php package contains the module (often referred to as mod_php)
: which adds support for the PHP language to Apache HTTP Server when
: running in prefork mode.



# rpm -ql php-7.4.19-1.module+el8.5.0+11143+cc873159.x86_64




0 Kudos
Join the discussion
You must log in to join this conversation.