[cgiwrap-users] Cgiwrap and PHP?
Brought to you by:
nneul
From: Paul T. <pa...@cu...> - 2000-12-01 04:02:28
|
Hi, I have compiled a PHP binary for my Linux/Apache webserver. I also have a cgiwrap-3.5 (I know I should upgrade, sorry) I have installed the PHP binary at: /usr/local/bin/php and put php pages in cgi-bin with: #!/usr/local/bin/php as the first line of the php pages. This works fine without cgiwrap if I invoke the a php page as such: http://www.server.com/cgi-bin/test.php But, if I enable cgiwrap and try: http://www.server.com/cgi-bin/cgiwrap/paul/test.php I get these errors: Warning: Unexpected character in input: ' in /usr/local/etc/httpd/cgi-bin/cgiwrap on line 1 Warning: Unexpected character in input: ' (ASCII=8) state=1 in /usr/local/etc/httpd/cgi-bin/cgiwrap on line 1 Warning: Unexpected character in input: ' in /usr/local/etc/httpd/cgi-bin/cgiwrap on line 1 Warning: Unexpected character in input: ' in /usr/local/etc/httpd/cgi-bin/cgiwrap on line 1 Warning: Unexpected character in input: ' in /usr/local/etc/httpd/cgi-bin/cgiwrap on line 1 Warning: Unexpected character in input: ' in /usr/local/etc/httpd/cgi-bin/cgiwrap on line 1 Warning: Unexpected character in input: ' in /usr/local/etc/httpd/cgi-bin/cgiwrap on line 1 Warning: Unexpected character in input: ' in /usr/local/etc/httpd/cgi-bin/cgiwrap on line 1 Warning: Unexpected character in input: ' in /usr/local/etc/httpd/cgi-bin/cgiwrap on line 1 Parse error: parse error in /usr/local/etc/httpd/cgi-bin/cgiwrap on line 1 It looks like cgiwrap does not like: #!/usr/local/bin/php perhaps? Has anyone set this up or have any comments? Thanks! --Paul T. -- Douglas Adams: "There is a theory which states that if ever anybody discovers exactly what the Universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarre and inexplicable. There is another theory which states that this has already happened." |