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.


-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to