cgi web app gives "premature end of script headers" but it's there

This is a discussion on cgi web app gives "premature end of script headers" but it's there within the Apache Web Server forums, part of the Web Server and Related Forums category; drhowarddrfine wrote: > On Apr 22, 5:46 pm, Felix Saphir <dasr060-use...@yahoo.de> wrote: >> ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #11 (permalink)  
Old 04-23-2008
Felix Saphir
 
Posts: n/a
Default Re: cgi web app gives "premature end of script headers" but it's there

drhowarddrfine wrote:
> On Apr 22, 5:46 pm, Felix Saphir <dasr060-use...@yahoo.de> wrote:
>> drhowarddrfine wrote:
>>> [small C program as cgi, chmod 0755, gives error 500]

>> [permissions okay? chmod 0777?]

>
> Changing it to 777 didn't do anything. I should say that I'm on a
> shared host system and not my own. That's a question I have about
> ownership. The static html files are accessed, though. Were uploaded
> the same way.
>
> I compiled this little program on FreeBSD but it's a Linux platform.
> Could that have anything to do with it? All it is is a series of
> printfs to stdout.


Sorry, I'm not an expert with C across different platforms, but it might
help to link the libraries statically (heard that somewhere :) ). Is
the architecture on both systems the same (like x86)?

Felix

  #12 (permalink)  
Old 04-23-2008
drhowarddrfine
 
Posts: n/a
Default Re: cgi web app gives "premature end of script headers" but it'sthere

On Apr 23, 3:31 am, Felix Saphir <dasr060-use...@yahoo.de> wrote:
> drhowarddrfine wrote:
> > On Apr 22, 5:46 pm, Felix Saphir <dasr060-use...@yahoo.de> wrote:
> >> drhowarddrfine wrote:
> >>> [small C program as cgi, chmod 0755, gives error 500]
> >> [permissions okay? chmod 0777?]

>
> > Changing it to 777 didn't do anything. I should say that I'm on a
> > shared host system and not my own. That's a question I have about
> > ownership. The static html files are accessed, though. Were uploaded
> > the same way.

>
> > I compiled this little program on FreeBSD but it's a Linux platform.
> > Could that have anything to do with it? All it is is a series of
> > printfs to stdout.

>
> Sorry, I'm not an expert with C across different platforms, but it might
> help to link the libraries statically (heard that somewhere :) ). Is
> the architecture on both systems the same (like x86)?
>
> Felix


Yes, they're both x86. I briefly attempted static linking before I
went to bed. Uploaded it and it still failed but I may not have
compiled it correctly. I have to wake up and dig around on this.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:08 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0