Changes

Jump to: navigation, search

Package:Apache

739 bytes added, 5 years ago
m
more details
If php code is showing instead of processing server side, ensure you have emerged app-eselect/eselect-php with the apache2 useflag.
 
==== Php-fpm ====
{{warning|php-fpm is untested.}}
Apache supports php-fpm also, this is the preferred method to serve php.
 
{{file|name=/etc/portage/make.conf|lang=|desc=enable php dso module|body=
...
APACHE2_MODULES=proxy proxy_fcgi
...
}}
 
{{file|name=/etc/conf.d/apache2|lang=|desc=enable php dso module|body=
"... -D PROXY"
}}
 
{{file|name=/etc/apache2/httpd.conf|lang=|desc=enable php dso module|body=
...
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so
...
}}
 
{{file|name=/etc/apache2/vhosts.d/00_default_vhost.conf|lang=|desc=enable php dso module|body=
...
ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/path/to/your/documentroot/$1
DirectoryIndex /index.php
...
}}
=== Enabling Security Module ===
wiki-moderators
749
edits

Navigation menu