I am having troubles getting Apache 1.3 and PHP 4 to work on my Debian Woody box.
I edited my httpd.conf, and added the following:
<IfModule mod_dir.c>
DirectoryIndex index.html index.htm index.shtml index.cgi index.php
</IfModule>
# And for PHP 4.x, use:
#
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
When I try to run
QDig, a PHP script that will build galleries, I get a 500 Internal Server Error.
When I check /var/log/apache/error.log, I see the following:
[Thu Apr 1 10:48:18 2004] [error] (8)Exec format error: exec of /var/www/public_html/qdig/index.php failed
[Thu Apr 1 10:48:18 2004] [error] [client 192.168.0.103] Premature end of script headers: /var/www/public_html/qdig/index.php
My script permissions are 755, and the qdig website doesn't really have any information at all besides "this is a very easy script to use, just put index.php wherever your photos are", I used their step by step guide that basically walks you through this--with no luck.
When I add the following line to httpd.conf:
LoadModule php4_module libexec/libphp4.so
I try to restart the server, but it complains that it can't find libphp4.so
I can't find any good documents that really explain installing PHP under Apache (with Debian). I have checked the search function here, and googled for it.
Any hints/suggestions, or pointers to good Debian PHP Apache docs? (I used apt-get install php4)