View Single Post
  #15  
Old 14th May 2007, 11:33
nightfreak nightfreak is offline
Junior Member
 
Join Date: May 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i have exactly the same problem and created a ScriptAlias called "cgi-bin" that points to "/usr/bin". this is my configuration:

Code:
ScriptAlias /cgi-bin "/usr/bin"
<Directory "/usr/bin">
        AllowOverride None
        Options +ExecCGI +FollowSymLinks
        Order allow,deny
        Allow from all
</Directory>

AddHandler php-script .php4
Action php-script /cgi-bin/php4-cgi
The 404 errors are gone now, but i still doesn't work, i get the following error now:
Code:
Warning: Unexpected character in input: '' (ASCII=8) state=1 in /usr/bin/php4-cgi on line 977

Warning: Unexpected character in input: '' (ASCII=7) state=1 in /usr/bin/php4-cgi on line 977

Warning: Unexpected character in input: ' in /usr/bin/php4-cgi on line 978

Parse error: syntax error, unexpected '?' in /usr/bin/php4-cgi on line 978
Reply With Quote