PDA

View Full Version : CGI error problem



aries458
10-12-2008, 05:01 PM
Hello!
I have been running a script for the past 5 years that is located in my cgi bin with no problems, until today, when I get a 500 error code. My script is in perl and I am very careful to upload in ascii. The script worked last night when I checked it just fine, but when I accessed it today to make changes, the 500 error was there.
Looking into my error logs, it says something about suexec but there was nothing in the suexec error logs.
Also has something about fastcgi error.
I have included a line of code into all of my script areas to let me know what errors there are, if any so I can fix them, but now I don't even get the messages.
Any perl folks around?
I even deleted the script and installed a small basic one, same error 500 code.
Thank you for any help with this.

Early Out
10-12-2008, 10:32 PM
Have you asked BH about this (via Live Chat)?

siguie
10-13-2008, 03:22 AM
You may want to check the shebang ... for some reason BH decided to change "usr" to "ramdisk" :confused: They are both supposed to work but I had a couple of scripts that only worked with "ramdisk"

Oh and try using the CPanel filemanager to "edit" the scripts ... you don't need to change anything but "save" anyways. I had another script miraculously start working this way.

Yeah I know neither of these make any sense BUT for whatever reason BH was messing with my server "some" of my scripts failed for no reason and this is what I did when the stated working again ... so that's all I got.

Oh and when I contacted BH they said they hadn't done anything and they don't support 3rd party software :rolleyes:

Good luck!

aries458
10-13-2008, 10:16 PM
Have you asked BH about this (via Live Chat)?
I called them and when they checked, they said they didn't change anything, and couldn't find anyone who knew perl who could help at the moment. Well, it all came back after a few hours, but I ended up deleting my scripts, thinking I did something wrong. I did upload them again, and they worked as they did before the unknown mishap, but I think something was done with the perl modules or the suexec end and someone found the problem and corrected it. When I looked into the general forum area, there were similar problems other users had at one time or another and it had to do with fastcgi. I never installed it, but found it in my files anyway.
Frustrating, but thank goodness I do backups. After 5 years of being with Bluehost, and only having a few glitches, it's still the best web host for the money.
Now, if I could only find a program to check scripts in perl and correct them, I would be in heaven!