I have a generic install of RH7 with Apache and PHP. Apache seems to work OK (serves pages, processes CGI) and PHP works OK for command line scripting.
However, the most generic imbedded <? command ?> does not work. It gets served up as if it were a part of the HTML code.
The (similar) problem most people seem to be having is with the AddType direcive in Apache, however mine seems to be OK.
Is there a way to fix this without installing everything from source?
FROM http.conf
<IfModule mod_php4.c>
AddType application/x-httpd-php .php4 .php3 .phtml .php
AddType application/x-httpd-php-source .phps
</IfModule>
The following is for PHP3:
<IfModule mod_php3.c>
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3-source .phps
</IfModule>
The following is for PHP/FI (PHP2):
<IfModule mod_php.c>
AddType application/x-httpd-php .phtml
</IfModule>
RPMS INSTALLED
$ rpm -qa|grep apach
apache-manual-1.3.12-25
apache-devel-1.3.12-25
apache-1.3.12-25
$ rpm -qa|grep php
php-mysql-4.0.1pl2-9
php-4.0.1pl2-9