SunQuest
           Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old April 18th, 2001, 03:10 PM
pkapakos pkapakos is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 pkapakos User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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?

Reply With Quote
  #2  
Old April 19th, 2001, 06:42 AM
OneChance OneChance is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Posts: 13 OneChance User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
It might be helpful to actually see your cgi script.

Reply With Quote
  #3  
Old April 19th, 2001, 08:06 AM
pkapakos pkapakos is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 pkapakos User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #4  
Old April 23rd, 2001, 02:29 AM
OneChance OneChance is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Posts: 13 OneChance User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
We've all been through that at least once.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > Internal Server Error


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway