I do find a lot similar problems on CentOS in this forum, and I tried to follow any suggestions mentioned in their answer, however, none solves my problem. Therefore I’m opening this question for platform specific solution.
I have downloaded httpd
, php
, php-common
, php-cli
. From some answer it seems having php
installed would be already sufficient, but the PHP file is not handled by php. I tried to search for libphp
, *php*
with yum
and dnf
command, but returned result does not have any match to httpd/apache module for php. On ubuntu server I do find similar module mentioned in other answer and php is working properly to phrase the page. I also set fileMatch
to set handler, but I think due to the missing libphp8.so
module it is not working.
From the search suggested in the comment below, I found php-embedded
is the only package that provide libphp.so
or libphp-8.0.so
. However, neither has symbol php_module
, but both are callable by php_embed_module
. So I added this in the config file, but apachectl configtest
shows it is not an apache module. The answer below has suggested php-fpm
, but from the install utility it seems to be Nginx-based.
I was wondering since Red hat and Oracle are both CentOS like, can I just add RHEL 9's repo to dnf
and check if they have a compatible module. But would that has compatibility concerns?
The HTTPD version is (httpd -v
):
Server version: Apache/2.4.53 (Oracle Linux Server)
The PHP version is:
PHP 8.0.20
and The system version is (cat /etc/os-release | grep PRETTY_NAME
):
PRETTY_NAME="Oracle Linux Server 9.1"