What the difference between the php5 module (libapache2-mod-php5) and the php5 filter module (libapache2-mod-php5filter) for apache2? Which one should I use in which environment?

link|improve this question

50% accept rate
feedback

2 Answers

up vote 1 down vote accepted

libapache2-mod-php5filter doesn't pass all http request methods through to your PHP application - for example, PUT and OPTIONS requests are answered directly by Apache, rather than your PHP application.

I assume that it's limiting the methods that get processed by PHP as a security measure.

libapache2-mod-php5, on the other hand, passes all requests through for processing by PHP.

From https://launchpad.net/ubuntu/+source/php5/5.3.3-7ubuntu1, this message:

"Unless you specifically need filter-module support, you most likely should instead install libapache2-mod-php5"

link|improve this answer
feedback

For ease of deployment and configuration, use libapache2-mod-php5.

It really is a lot easier, but causes higher memory usage (as PHP is loaded for each request)

For scalability, use mod_fcgi and php-fpm.

Because it runs a pool of PHP Listeners, then uses FastCGI protocol to communicate between Apache and the Pool of PHPs.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.