500 error when running perl

xav0989

Community Public Relation
Community Support
Messages
4,467
Reaction score
95
Points
0
I am trying to run google sitemap generator (in perl) from the cgi-bin directory. However, I get a 500 error. If have a shebang line, so I don't see any other obvious problem.
Is there a way I could have access to apache error log? (the one in cPanel doesn't show those kind of error.
 

vol7ron

New Member
Messages
434
Reaction score
0
Points
0
post ur code. most likely it's a permission issue, make sure everyone has atleast execute
 

vol7ron

New Member
Messages
434
Reaction score
0
Points
0
You're right, that is long. Debugging it would take a lot of time, but it was very useful for you posting that. Thank you.

You'll need to open a Support Ticket, but see if you can somehow manage to redirect the warnings/errors before it's encountered:
http://www.nntp.perl.org/group/perl.beginners/2007/03/msg90416.html

A posibility is to have a script call your script and have that pop out the error. Another thing you could do is set up your own server and run Eclipse to debug your Perl.

But still... make sure the file permissions are acceptable.
 

xav0989

Community Public Relation
Community Support
Messages
4,467
Reaction score
95
Points
0
I'm going to try to redirect all error message, if I don't find any error, I'm going to open a support ticket. BTW, I have 644 permission on this file.
 

woiwky

New Member
Messages
390
Reaction score
0
Points
0
Perl scripts need execution permissions, so chmod it to 755. If there's still a problem, then you probably have an error in your code as well. However that link you posted no longer shows your code, so I couldn't check that out.
 
Top