cancel
Showing results for 
Search instead for 
Did you mean: 
Dinusha
Cadet
Cadet
  • 4,178 Views

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
Remzi
Flight Engineer
Flight Engineer
  • 4,154 Views

Did you configure apache for php-fpm?

Could you look at:

https://access.redhat.com/solutions/4838331

 

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
URL : http://www.php.net/
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.

 

/etc/httpd/conf.modules.d/15-php.conf

# rpm -ql php-7.4.19-1.module+el8.5.0+11143+cc873159.x86_64
/etc/httpd/conf.d/php.conf
/etc/httpd/conf.modules.d/15-php.conf
/usr/lib/.build-id
/usr/lib/.build-id/77
/usr/lib/.build-id/77/97c3b01bc7a95adb41854757f27a1a9159be4e
/usr/lib64/httpd/modules/libphp7.so
/var/lib/php/opcache
/var/lib/php/session
/var/lib/php/wsdlcache

 

 

 

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