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: >> ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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. |