PHP4/PHP5 problem

Discussion in 'Server Operation' started by sjau, Mar 21, 2008.

  1. sjau

    sjau Local Meanie Moderator

    Hiho, I'm trying to run php4 (as cgi) and php5 (as module) on my apache2 server on debian etch 64bit.

    However when I try to run a simple <? phpinfo(); ?> script with the php4-cgi I get this error:
    Code:
    Warning: Unexpected character in input: '' (ASCII=16) state=1 in /var/www/web3/html/cgi-bin/php4-cgi on line 2469
    
    Parse error: syntax error, unexpected '*' in /var/www/web3/html/cgi-bin/php4-cgi on line 2469
    
    But when I run the php4-cgi binary from the shell with the script it works fine:
    Code:
    ./cgi-bin/php4-cgi phpinfo.php
    
    I fail to see why it is running on the shell but not through the web. Any suggestions?
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Are there any errors in Apache's error log?
     

Share This Page