PHP 4.1.2 as CGI with apache 2.0.39

From: Date: Mon, 24 Jun 2002 18:40:32 +0000
Subject: PHP 4.1.2 as CGI with apache 2.0.39
Groups: php.install 
Request: Send a blank email to php-install+get-7453@lists.php.net to get a copy of this message
I've installed PHP 4.1.2 as a CGI binary and apache 2.0.39. I have been running apache successfully for some time with perl CGI scripts. However, when I came to run PHP I hit the following problem: PHP Parse error: parse error in /home/wwwuser/cgi-bin/php on line 1494 What appears to be happening is that instead of the requested file "test.php" (that contains the usual "<?phpinfo();?>"), PHP is attempting to parse its own binary image, as this command yields the same error: wwwuser$ php -f /usr/pkg/bin/php PHP Parse error: parse error in /usr/pkg/bin/php on line 1494 As PHP is working okay as a binary, I think it must be something with the way I've configured apache. What I've added is this, to httpd.conf: AddHandler php-script .php Action php-script /cgi-bin/php I've also copied the php binary into the cgi-bin directory. What am I missing? Many Thanks, David.

« previous php.install (#7453) next »