I've just set up a Slackware 10.2 box to run as a webserver. I'm trying to run the following script:
// Show all information, defaults to INFO_ALL
// Show just the module information.
// phpinfo(8) yields identical results.
Apache doesn't execute the PHP code, instead it simply displays the code as a normal text file. mod_php appears to be installed properly (how can I tell if mod_php is installed properly?) here is /etc/apache/mod_php.conf:
# mod_php - PHP Hypertext Preprocessor module
# Load the PHP module:
LoadModule php4_module libexec/apache/libphp4.so
# Tell Apache to feed all *.php files through the PHP module:
AddType application/x-httpd-php .php
# This will display PHP files in colored syntax form. Use with caution.
#AddType application/x-httpd-php-source .phps
and of course mod_php.conf contains this line that pulls in mod_php.conf:
This is pretty much a default slackware install (all packages). any idea what I'm doing wrong?
thanks in advance,