cgi-bin/php has a parse error?!
| From: | S Beam | Date: | Wed, 29 Aug 2001 12:01:17 +0000 |
| Subject: | cgi-bin/php has a parse error?! | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-4111@lists.php.net to get a copy of this message | ||
Dear People of PHP land:
When I try to install php4.0.6 as a CGI program under Apache I get
"
Parse error: parse error in /usr/local/httpd/cgi-bin/php on line 3238
"
on any php page. I compiled with -enable-force-cgi-redirect and copied the
resulting binary from /usr/local/bin/php to the cgi-bin, and added the
following to httpd.conf:
Action php-script /cgi-bin/php
AddHandler php-script .php
I also made sure anything else dealing with php is commented out.
This has happened on two systems, one custom Apache with mod_php3 as a
DSO on RedHat, another SuSE 7.2 with the stock Apache and no mod_php. I
know I am doing something really dumb, but please help me figure it out.
-S