Stop Microsoft
Operating Systems => Linux and UNIX => Topic started by: fuckoffmicrosoft on 3 October 2002, 01:56
-
Ok i keep gettin 500 internal server error in the web cgi-bin but when i put a script anywhere else i can use it ive tried everything ive found on the web but to noavail.
redhat 7.3
-
is this your own webserver?
apache?
the scripts work if there anywhere else but the cgi-bin?
Then dont use the cgi-bin
-
yeah apache
what i mean is for example i tested out accmanager and it made its own folder on my os that wasnt even where my web folder is (i deleted for that didnt seem right) but anyway it worked. But if i run a script in the web folder i get the 500 error cgi-bin or not
-
ok scratch that when i place qtest in the html folder it wants me to download
-
Sounds like you are trying to run a CGI program. By default, CGI programs are only allowed to run in /var/www/cgi-bin. There is a problem with the CGI program which is why you are getting a 500 error. You can see the real error message by looking at the Apache error log. Look at the last entries in the /etc/httpd/logs/error_log to see the error messages. If you want to get CGI programs to run in other directories other than "cgi-bin" there are a few changes you need to make (only about 2 or 3) in the /etc/httpd/conf/httpd.conf configuration file. m0r, could you point him to the thread(s) on this forum where we went through this? It will hopefully save us having to repeat...
-
i will do a search for that DUH :rolleyes:
-
heres what i got
[Wed Oct 2 05:18:33 2002] [error] [client 216.255.5.87] malformed header from script. Bad header=Trying and...: /var/www/cgi-bin/qtest
syntax error: Expected a word or a quoted phrase at the end
syntax error: Expected a word or a quoted phrase at the end
syntax error: Expected '(', '"', or a word at the end
syntax error: Expected '(', '"', or a word at the end
-
http://jeujeu.ath.cx/cgi-bin/perl_test.cgi (http://jeujeu.ath.cx/cgi-bin/perl_test.cgi)
this says perl is working
but this says 500
http://jeujeu.ath.cx/cgi-bin/qtest (http://jeujeu.ath.cx/cgi-bin/qtest)
-
There is an error in your "qtest" script. This is a Perl programming issue, not an Apache issue. You need to debug your Perl script.
If you would like me to help you debug it could you point me to where I can get a copy of what you are trying to get running? Then I can help you debug the Perl code.
-
that qtest thing was already in the cgi bin im not really worried about it unless i need it
-
I don't believe "qtest" would have installed by RedHat. What is "accmanager"? Is it related?
-
it was a webhosting controlpanel