Yeah, right now I'm using that, but is a pain to configure for novices
compared to just install libapache-php5. At least some sample config
could be provided in a "libapache-mod-php5-fastcgi" package or similar
(that will have fastcgi dependance included)

Now I have to create a /etc/apache2/mods-available/php5-fcgid.conf:

AddHandler fcgid-script .php
<Files ~ "\.php$">
Options ExecCGI
</Files>
FCGIWrapper /path/to/a/php5-launch-script .php

The launch script is:
#!/bin/bash
export PHPRC="/path/to/conf"
export PHP_FCGI_CHILDREN=20
export PHP_FCGI_MAX_REQUEST=5000

exec /usr/bin/php5-cgi

This is much more flexible than just mod_php5 (I could have different
launch scripts with different limits, conf directories... for each
virtualhost, plus the SuexecUserGroup directive). But as I said Ubuntu
should help a little bit more. People expects installing php5 and
apache2-mpm-worker to work. And not only it doesn't, but just through
unprocessed PHP code to anyone, and thats' is really dangerous.

-- 
PHP5 or PHP4 for apache2-mpm-worker
https://bugs.launchpad.net/bugs/12296
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to