[Bug 12296] Re: PHP5 or PHP4 for apache2-mpm-worker

Guillermo Pérez bisho at eurielec.etsit.upm.es
Wed Mar 19 18:37:11 GMT 2008

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
FCGIWrapper /path/to/a/php5-launch-script .php

The launch script is:
export PHPRC="/path/to/conf"

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
You received this bug notification because you are a member of Ubuntu
Server Team, which is a bug assignee.

More information about the Ubuntu-server-bugs mailing list