|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
I get the dreaded Internal Server Error each time I try to run my perl/cgi scripts. The apache error log shows the following error:
[Wed Apr 18 13:52:37 2001] [error] (8)Exec format error: exec of /var/www/cgi-bin/test.cgi failed [Wed Apr 18 13:52:37 2001] [error] [client 127.0.0.1] malformed header from script. Bad header=Launching... /usr/lib/apache-s: /var/www/cgi-bin/test.cgi I'm not sure why I'm getting the "malformed header from script" error, because I have included: print "Content-type: text/html\n\n"; in my script. Can anyone help with this? Peter ps...I'm using apache-ssl but for now ssl has been disabled...does this make any difference? |
|
#2
|
|||
|
|||
|
It might be helpful to actually see your cgi script.
|
|
#3
|
|||
|
|||
|
Re:Internal Server Error
Thanks for your response OneChance, but I've solved my problem. It was actually a really silly error that I kept missing...the first line of my cgi script was:
!#/usr/bin/perl instead of #!/usr/bin/perl ...imagine how frustrated I was to discover this error after spending two hours trying to figure out what the problem was! Thanks again, Peter |
|
#4
|
|||
|
|||
|
We've all been through that at least once.
![]() |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > Internal Server Error |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|