fastcgi with perl, php, etc
"Gustavo A. Baratto" <[email protected]>
| Newsgroups | gmane.comp.web.fastcgi.devel |
|---|---|
| Message-ID | <078d01c485cf$77192e80$6400a8c0@chivas> |
Greetings all... we wanted to have all sorts of cgi (php, perl, python, tcl) running under fastcgi. One requirement is that they must run with apache2 suexec'ed under hundreds of different virtualhosts, with system wide php, perl, etc.... I have followed some of the intructions in the FAQ, and managed to have PHP working with one little hack in suexec (created a 'trusted directory'), so all php scripts are now running suexec'ed, with just one definition of FastCgiServer in httpd.conf... no need to set it for all virtualhosts that runs under a different UID... and the same pool of php processes running as www handles suexec'ed php scripts for all virtualhosts, without having to spawn different pool of php processes for each different UID. If anybody is interested let me know... My problem is perl though... Basically, I want to do the same thing I did php to the other scripting languages. I want to pre-fork a few perl, python or tcl processes, and redirect the cgi requests to these pre-forked processes to improve speed. All the examples and docs I have seen over the net dont treat the script defined by FastCgiServer as a general 'perl server' as it is for php. I need 'FastCgiServer /usr/bin/perl' to be the pre-forked interpreter for all .pl files. Can I do this? thanks :) ___________________________________ fastcgi-developers mailing list http://fastcgi.com/fastcgi-developers/