I had the same problem with PHP 4.0.4 and Apache 1.3.22
I solved it by adding the folling two lines to /etc/httpd/conf/httpd.conf (Red Hat Linux), all other lines have been included by Apache-installation before:
ScriptAlias /php/ "/var/www/php/"
Action application/x-httpd-php "/php/php"
Additional I set a link from /var/www/php/php to /usr/bin/php using the Linux-commands:
cd /var/www/php
ln -fs /usr/bin/php php
Then I restarted Apache:
apachectl stop
apachectl start
Then it worked!
Ryan Hansen wrote:
Carol,
Is your web server set up to parse .php files with the php interpreter, or does it have ot use .php3 or some other extension? I've had that problem before because my web server only used the php interpreter on .php3 and .html files. If you're using apache, you'll need to modify the httpd.conf file and look for a line that says:
AddType application/x-httpd-php3
At the end of this line there should be some extensions listed (i.e. .php3, .phtml, etc.). If .php is not one of the extensions listed, add it and then restart apache. That should do it. If it doesn't work, or that isn't the problem, then I don't know what's up.
Give it a try. Good luck!
NOTE: Some apache setups use an include file for the line above. On my setup (Caldera OpenLinux eDesktop 2.4) the line is actually found in a file located at /etc/httpd/conf/modules/mod_php3.conf