Pigeon

Registered
Oct 20, 2012
2
0
1
cPanel Access Level
Website Owner
Hi Guys

My server has incorporated suphp restrictions on the server side without notice.

My site has worked with no issue for 5 years, but now it is coming up with Internal 500 error.

I got this from support:
You are trying to access the perl script uploaded in cgi-bin folder of
onlinepigeonauctions.com.au in browser, but because of suphp
restrictions it is not possible to access scripts present in cgi-bin in
browser.

You need to modify the way your script works and adjust them to work
with suphp.


Currently my index.html is:
<html>
<head>
<META HTTP-EQUIV="Refresh" CONTENT="1; URL=http://www.onlinepigeonauctions.com.au/cgi-bin/auction.pl">
</head>
</body>
</html>

Which as mentioned has been fine for 5 years, but now I need to change to run the perl script.

Any Clues?

Thanks
 

Escobar

Member
Aug 11, 2012
24
0
1
cPanel Access Level
Root Administrator
The SuPHP environment requires for folders to be set to 755 and files to be set to 644. However, files inside the /cgi-bin/ folder must be set to 755 as well. To correct this, just set your auction.pl file to 755.
 

Pigeon

Registered
Oct 20, 2012
2
0
1
cPanel Access Level
Website Owner
Thanks for the reply Escobar.

The permissions for auction.pl is and always has been 755.

I am still offline and struggling to understand why.
 

JaredR.

Well-Known Member
Feb 25, 2010
1,834
27
143
Houston, TX
cPanel Access Level
Root Administrator
Anytime you see an internal server error on a Web site, look in the Apache error log, /usr/local/apache/logs/error_log. It will normally tell you the exact cause of the problem. Use tail -f to watch the log file while you load the page that causes the error.

If you do not see the error there, look at the suexec log, /usr/local/apache/logs/suexec_log. The actual error that is reported as an internal server error is going to be in one of those two log files. Looking at the actual error in the log is much more effective than guessing.