Discussion Locked

Problems with CGI

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
OK i've got a polling cgi installed and it seems to work fine locally but when i try to get it to show on the web server it will not come up. My web server and cgi server are seperate. I'm really not sure what the problem is here. Hope someone can help out here..

1 reply

by stoker

You need to provide a lot more information and details than that... E.g. what kind of error are you getting?
Very common errors are often:
-Wrong permissions on the script, must be executable
-Wrong path to script parser/intepreter, eg. #!/usr/bin/perl
-The directory does not allow script execution, try to put Options ExecCGI in .htaccess or move it to webroot/cgi-bin/, if your webhoster doesn't allow executions there is nothing you can do, unless you got php or some other you can sneak it in with.
-The file has Bill Gates line endings CRLF(and not UNIX LF-only), with Perl and sometimes PHP that can make a difference. Get a real editor for windows, such as HTML-Kit or EditPlus (or winvim32 if you're a real nerd)

This discussion is closed to new replies.