HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   How can I enable perl on apache2? (http://www.howtoforge.com/forums/showthread.php?t=33266)

HellMind 4th April 2009 05:40

How can I enable perl on apache2?
 
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

Quote:

Can Ispc serve perl pages?
sure.

Quote:

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


All times are GMT +2. The time now is 22:45.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.