On my Linux systems (Fedora), there is a config directory
/etc/httpd/conf.d, which contains the necessary extra lines to make Apache interpret PHP instead of just serving it up as text. The relevant config lines are
Code:
LoadModule php5_module modules/libphp5.so
AddHandler php5-script .php
AddType text/html .php
DirectoryIndex .php
Your file layout may be different on your distribution, but these config lines need to be seen by Apache on startup somehow, either in the main httpd.conf file or in an included config file (on my system, this happens because partway down in the main file there is a line that says
Of course, if the PHP stuff is not installed on your system, this configuration stuff won't help, but at least then you will get a complaint from the Apache
httpd on startup, saying that it cannot find
libphp5.so, or something like that.