500 error..HELP!!
Hi,
I have been trying to install some cgi scripts on my server. I installed them and set all the permissions right and they worked fine. All of a sudden, I have started getting a 500 error every time I try to run them. I have tried uploading the scripts again (in ASCII mode) and CHMODing to 755 (I am on UNIX) can someone please assist me with possible causes of this error?
Thanks in advance.
m0dulus posted this at 15:01 — 31st July 2001.
They have: 84 posts
Joined: Jun 2001
500 error.. internal server error hmm... you probably set up the paths wrong (if it was a premade script) or if you coded it by hand, you probably forgot something like the script headers.
Tyler Cruz
mizzy posted this at 15:36 — 31st July 2001.
They have: 47 posts
Joined: Jun 2001
the thing is, it was running fine. I managed to run the script but all of a sudden I just started getting the 500 error. hmmm
Andrew posted this at 15:53 — 31st July 2001.
They have: 16 posts
Joined: Jan 2000
What are your error logs telling you?
Is the CGI written in perl? If so are you using -w? (This will print more detailed error and warnings to you logs.)
Also the CGI::CARP module can print fatal errors right to your browser:
use CGI::Carp qw(carpout fatalsToBrowser);
mizzy posted this at 11:10 — 1st August 2001.
They have: 47 posts
Joined: Jun 2001
I have found what the problem was. I had two versions of perl running on my server and I happened to point to the wrong version for the script.
Thanks all
m0dulus posted this at 15:56 — 1st August 2001.
They have: 84 posts
Joined: Jun 2001
Just out of curiosity, why would a server have 2 versions of perl? Why not just use the new version??
mizzy posted this at 18:21 — 1st August 2001.
They have: 47 posts
Joined: Jun 2001
No special reason except that I find that If I use an old cgi script it tends to operate more smoothly with an older version of perl. Kind of like running a program for windows 95 on windows 2000.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.