Hello
I've got a little problem, but it's really annoying. Everytime I run a CGI script, I get an error 500, any idea were this could come from ?
Thanks in advance
Hello
I've got a little problem, but it's really annoying. Everytime I run a CGI script, I get an error 500, any idea were this could come from ?
Thanks in advance
have u tested upon the script locally; are there any errors on this script ? and also u will need tocheck on the permissions on this script.
cPanel Certified Specialist
http://www.admin-ahead.com
https://ticketforge.com
AIM: tux image Skype: admin-ahead
Try chmod to 755 instead of 777 - worked for me.
It does that for all the scripts.
I tried chmodding, doesn't arrange.
What permissions do you have on your cgi-bin directory itself? That needs to be 755. You could also try:
/scripts/enablefileprotect
You should also be checking for errors in:
/etc/httpd/logs/error_log
/etc/httpd/logs/suexec_log
Jonathan Michaelson
Need your cPanel servers secured and tuned?
cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
http://www.configserver.com
Originally Posted by DjMiX
in your script open it and look at the very top line
make sure your path to perl is correct
#!/usr/bin/perl OR /usr/local/bin/perl
to find out what path for sure..open up ssh and type
"which perl" (without the quotes of coarse)
If you're uploading these scripts from a Windows box, make sure they are uploaded in ASCII mode, not binary. The line endings are different between Windows & Linux and will cause errors when a script is executed.