Assuming you installed both Apache and PHP from RPM packages, you need to uncomment or add some or all of the following lines in your httpd.conf file:

# Extra Modules
AddModule mod_php.c
AddModule mod_perl.c

# Extra Modules
LoadModule php_module         modules/
LoadModule php5_module        modules/
LoadModule perl_module        modules/

And add:

AddType application/x-httpd-php .php

… to the global properties, or to the properties of the VirtualDomain you want to have PHP support added to.

Posted in: PHP

Related FAQ's

Marius Ion ANGEL HOT SOFT LLC (800) 316-7677