#apache - Thu 1 Mar 2007 between 02:06 and 02:54

NY Lost Funds



corigothanks mega and fajita
scottie7hi, I'm having trouble getting PHP working on my RHEL4 system - I keep getting an internal server error.
PHP works fine from the command line. ie. php script.php
but not from my web browser
/var/log/httpd/error_log says: (8)Exec format error: exec of '/var/www/cgi-bin/AAOSTATS/test.php' failed
Premature end of script headers: test.php
What does "Exec format error" mean?
dan__ter... is it a PHP file?
run 'file' on it, see what it returns
scottie7test.php: HTML document text
dan__t, do I need #!/usr/bin/php?
jpegif you're using php as a cgi, you need that. if you're using mod_php, you don't.
it looks like you're using cgi, so keep it.
dan__tas a cgi, yes
jpegfajita: premature end of script headers
fajitajpeg: 'Premature end of script headers' means that the script either encountered an error, or is emitting a bogus HTTP header. Check out http://httpd.apache.org/docs/misc/FAQ.html#premature-script-headers or see suexec or see ScriptLog or see 500
scottie7Security Alert! The PHP CGI cannot be accessed directly.
*reading*
I'm confused. My PHP parser is outside the web tree ... so why am I getting this error?
D'oh! cos that's how the module was compiled ...
I don't quite understand what I need to do to get around this ...
david*meep*
Fr0zen_meep meep
;)
davidproblem is Fr0zen_, one is afraid jto ask too many questions in the unix community
people tend to get annoyed quickly
Fr0zen_ya
i hear ya
davideven worse in the linux community
Fr0zen_well do this, install apache from ports
daviddone
2.0 "safe" branch
Fr0zen_cd /usr/local/etc/apache22/
favorite editor here httpd.conf
then take a look at this.
http://httpd.apache.org/docs/2.2/vhosts/examples.html
david(ee) :P
Fr0zen_heh, same.
ee httpd.conf
davidthere

Page: 2 9 16 23 30 37 44 51 58 

IrcArchive

NY Lost Funds