PHP4/CGI installation trouble

From: Date: Sun, 07 Oct 2001 09:22:45 +0000
Subject: PHP4/CGI installation trouble
Groups: php.install 
Request: Send a blank email to php-install+get-4536@lists.php.net to get a copy of this message
Hi everyone. I'm trying to install PHP4/CGI on a web server (it must be CGI because I intend to use SuEXEC behaviour later on, tho it is currently disabled). Anyway, whenever I fire up a PHP script, I get this error: --snipsnipsnip-- Parse error: parse error in /usr/local/apache/cgi-bin/php on line 3054 --snipsnipsnip-- It think it invokes the PHP binary, which in turn tries to parse the binary itself as a PHP script. I have no idea why this is... my httpd.conf file has these lines --snipsnipsnip-- AddHandler php-script .php Action php-script /cgi-bin/php --snipsnipsnip-- I run Apache 1.3.20 on a FreeBSD 4.4-RELEASE box, along with PHP 4.0.6. Any support would be greatly appreciated! Thanks, --Rink

« previous php.install (#4536) next »