I just installed apache and php on my Redhat 7.1. Both worked independently.
In fact, I can feed a test.php file on my URL and it will display properly:
http://localhost/test.php
However, My little apache does not parse php code embeded in HTML correctly.
I saw on the web that it I need to enable the PHP module on the apache by
feeding the arguement on the command line as I start apache:
httpd start -DHAVE_PHP
However, when I done that, I have encounter the following error message:
usr/sbin/> httpd restart -DHAVE_PHP
Syntax error on line 254 of /etc/httpd/conf/httpd.conf:
Cannot load /etc/httpd/modules/mod_php.so into server: /etc/httpd/modules/mod_php.so: cannot open shared object file: No such file or directory
and line 254 is the following:
253: <IfDefine HAVE_PHP>
254: LoadModule php_module modules/mod_php.so
255: </IfDefine>
and no, I don't have mod_php.so on my computer.
Is this the reason why my PHP is not working? am I suppose to find mod_php.so somewhere(which I have tried very hard and having no result)
Thanks in advance
Harvey H. King