Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • mod_php is loaded into every httpd process all the time. Even when httpd is serving static/non php content, that memory is in use.
  • mod_php is not thread safe and forces you to stick with the prefork mpm (multi process, no threads), which is the slowest possible configuration

How to use it anyway

First, the module must be loaded:

...

# A regexp such as \.(php|php4|php5)$ can also be used to support more extensions

<FilesMatch \.php$>

{{ SetHandler application/x-httpd-php}}

</FilesMatch>

References:

Official php installation and configuration instructions

...