|
|||
|
Script Execution Issue
I ran into this problem yesterday. First, we do not run suexec on our servers. I know many think this is odd, but it is our preference and we have never had difficulties without it.
We have two servers that I am going to compare here. On server 1, you can run cgi scripts with either the .pl or the .cgi extension in the scgi-bin of any account without problems. On server 2, you can run cgi scripts with the .cgi extension, but the .pl extension will create a 500 internal server error every time. These are both cpanel servers, server 1 is RH 7.3 and server 2 is RH 9. I have checked permissions and ownership and all is the same. Actually, I can put a my.pl on server 2 in the scgi-bin and it will 500 error, but if I simply rename the file my.cgi, it will work perfectly. I have tried to search the httpd.conf files on each server for differences related to script aliases, etc, but can find no differences. Anybody have any suggestions as to what would cause this difference in behaviour?
__________________
Marty Hoskins TLC Web Enterprises |
|
|||
|
Quote:
Quote:
mv my.pl my.cgi and it worked fine with the cgi extension. Quote:
__________________
Marty Hoskins TLC Web Enterprises |
|
|||
|
Quote:
__________________
Marty Hoskins TLC Web Enterprises |
|
||||
|
What errors do you get in /etc/httpd/logs/error_log when you browse to it as a .pl script?
__________________
Jonathan Michaelson cPanel Forum Moderator 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 |
![]() |
| Thread Tools | |
| Display Modes | |
|
|