PDA

View Full Version : How can I enable perl on apache2?


HellMind
4th April 2009, 05:40
Can Ispc serve perl pages?

HellMind
4th April 2009, 06:25
with suexec:
suexec policy violation: see suexec log for more details
Premature end of script headers: test.pl

without
(13)Permission denied: exec of '/var/clients/client2/web19/cgi-bin/test.pl' failed
Premature end of script headers: test.pl


where is the suexec log :S

till
4th April 2009, 10:27
Can Ispc serve perl pages?

sure.

with suexec:
suexec policy violation: see suexec log for more details
Premature end of script headers: test.pl

without
(13)Permission denied: exec of '/var/clients/client2/web19/cgi-bin/test.pl' failed
Premature end of script headers: test.pl

The problem is that you can not use suexec in directories outside of /var/www. Thats why we changed the directory path for the clients directory from /var/clients to /var/www/clients in ispconfig starting from C 2 if I remember correctly.

There is no easy fix as suexec has the path /var/www compiled into its binary. Either you use the cgi scripts without perl or you have to move the /var/clients directory to /var/www/clients and then update in ispconfig the directory path and symlink paths in the server settings and afterwards you will have to modify every site, ftp user and shell user. This should work but I did not tried it yet.

HellMind
4th April 2009, 21:53
I moved just 1 site and create the symbolic links
It works, but I hope ispconfig will handle that correctly