cgi binary with apache under linux :)

From: Date: Sat, 09 Mar 2002 02:12:05 +0000
Subject: cgi binary with apache under linux :)
Groups: php.install 
Request: Send a blank email to php-install+get-6295@lists.php.net to get a copy of this message
lo guys, i ve got a quite few annoying problem configuring apache and php that i have compiled. IT CAN'T MAKE IT WORK !! i ve compiled php as a cgi binary and have installed it in /usr/local/php/ i ve tried to test what i compiled by typing /usr/local/php/bin/php phpinfo.php and that works, it returns correct html code. after that i tried to bind .php script requested on my apache webserver by adding this in commonhttpd.conf : ScriptAlias /php/ /usr/local/php/bin/ AddType application/x-httpd-php .php Action application/x-httpd-php /php/php when i call a php script like a simple phpinfo it mess up and it returns that on my web browser : Warning: Unexpected character in input: ' in /usr/local/php/bin/php on line 821 Warning: Unexpected character in input: ' in /usr/local/php/bin/php on line 821 Warning: Unexpected character in input: '' (ASCII=7) state=1 in /usr/local/php/bin/php on line 821 Warning: Unexpected character in input: '' (ASCII=8) state=1 in /usr/local/php/bin/php on line 821 Parse error: parse error in /usr/local/php/bin/php on line 821 i'm loosing my mind trying to understand how it works for few days so please help me :-) thx a lot for your help !

« previous php.install (#6295) next »