This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Script Question

Old posts that have not been replied to for several years.
Locked
S
Sky

Post by Sky »

I have my own server. It has a scgi-bin and a cgi-bin. I have a regular irc bot that I know the script (works) when I used it on another server, but is not running right on mine.

I have been trouble shooting this for a while now and can't fix my problem, I am new to this.

I came across a cgi trouble shooting page and this IS the error message that I am getting, but I don't know how to print out the html to even look for what I am supposed to be seeing that they talk about to correct it, AND how to proerly correct it.

Here's the message and can anyone help?

You get the message "Server Error" when you try to run your cgi program.
Solution: The "Server Error" message almost always means there is a problem with your script.(I know the script is fine) If you have checked all of the above, and you are still getting this error, it may be that the VERY first thing your script is printing is not "Content-type: text/htmlnn" or in other words, "Content-type: text/html" and 2 carriage returns. In order for the server and a web browser to work together to display the results of your script, the script must tell the browser what sort of information it is receiving. If your script will print out an HTML message, make sure that it prints the "Content-type" message before anything else.

*I think this IS my problem, can anyone help?*


<font size=-1>[ This Message was edited by: Sky on 2002-05-11 22:33 ]</font>
R
Roze

Post by Roze »

This is actually not the right forum to talk about :smile:
But at first what httpd server do you run?
If apache then have you added ScriptAlias in conf to the dir you are running your CGIs from?
S
Sky

Post by Sky »

Sorry about posting here then, my apologies. I'm new to all this. (lol)..

Thanks for posting back, I will try the resolve this either by canceling or strictly going the eggdrop ircbot route, which I downloaded and have my SecureCRT already.

Thanks,
Sky
Locked