Changes

Jump to: navigation, search

Package:Apache

5 bytes removed, 5 years ago
m
more details
==== Php-fpm ====
{{warning|php-fpm is untested.}}
Apache supports php-fpm also, this is the preferred method to serve php.
}}
{{file|name=/etc/apache2/httpdvhosts.d/00_default_vhost.conf|lang=|desc=enable proxy & fcgi modulesconfigure php-fpm vhosts.|body=
...
LoadModule proxy_module modules<VirtualHost *:80> ServerName localhost Include /etc/apache2/vhosts.d/default_vhost.include ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://mod_proxy127.so0.0.1:9000/var/www/localhost/htdocs/$1LoadModule proxy_fcgi_module modules DirectoryIndex /mod_proxy_fcgiindex.sophp
...
}}
Do not forget to start php-fpm:{{fileconsole|namebody=/etc/apache2/vhosts.d/00_default_vhost.conf|lang=|desc=configure ###i## rc-update add php-fpm vhosts.|body=...ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/path/to/your/documentroot/$1DirectoryIndex /index.php...defaultrc}}
=== Enabling Security Module ===
== Service ==
To start Apache immediatelytemporarily:
<console>
###i## rc-service apache2 start
</console>
To start Apache upon immediately, and every boot:
<console>
###i## rc-update add apache2default###i## rc
</console>
wiki-moderators
749
edits

Navigation menu