PDA

View Full Version : How to get perl pages to work


DantePasquale
21st October 2009, 05:29
Hi Guys,

I'm being really brain dead tonight, but I'm trying to install sql-ledger in a customers website for them. It's ISPConfig 3 on Ubuntu 9.04. When I go to their site and load sql-ledger/admin.pl to do the configuration, I get a 500 error and the error log shows:

[Tue Oct 20 22:23:40 2009] [error] [client 74.1.46.173] suexec policy violation: see suexec log for more details
[Tue Oct 20 22:23:40 2009] [error] [client 74.1.46.173] Premature end of script headers: login.pl

Dumb question, do I just need to add mod-perl to apache config? Is cgi-bin related to this? Do I really need su-exec for their website?

Thanks, Dante

till
21st October 2009, 10:20
Please make sure that the CGI files are owned by the user and group of the website and that they are not group writable. For details, please look into the suexec log file.

Do I really need su-exec for their website?


Its highly recommended for security reasons.

DantePasquale
21st October 2009, 15:44
Thanks for the tip! On ISPConfig2 I had owner:group of www-data on the .pl files for sql-ledger. I changed those to web1:client1 for the entire directory and the perl stuff runs! Now, to fix postgres :)