Fix: Enable PHP-FPM for Apache 2.2 and Apache 2.4

This commit is contained in:
cytopia 2016-10-25 01:57:53 +02:00
parent d02bd65b24
commit 790b493d85
No known key found for this signature in database
GPG Key ID: 6D56EDB8695128A2
5 changed files with 32 additions and 5 deletions

View File

@ -0,0 +1,6 @@
#### PHP-FPM config ####
AddType application/x-httpd-fastphp5 .php
Action application/x-httpd-fastphp5 /php5-fcgi
Alias /php5-fcgi /usr/local/bin/php-fcgi
FastCgiExternalServer /usr/local/bin/php-fcgi -host 172.16.238.11:9000 -pass-header Authorization

View File

@ -0,0 +1,17 @@
#### PHP-FPM config ####
# enablereuse
# Defining a worker will improve performance
# And in this case, re-use the worker (dependent on support from the fcgi application)
# If you have enough idle workers, this would only improve the performance marginally
#
# enablereuse requires Apache 2.4.11 or later
#<Proxy "fcgi://172.16.238.11:9000/" enablereuse=on max=10></Proxy>
<FilesMatch "\.php$">
Require all granted
# Pick one of the following approaches
# Use the standard TCP socket
SetHandler "proxy:fcgi://172.16.238.11:9000"
# If your version of httpd is 2.4.9 or newer (or has the back-ported feature), you can use the unix domain socket
#SetHandler "proxy:unix:/path/to/app.sock|fcgi://localhost/:9000"
</FilesMatch>

View File

@ -14,7 +14,7 @@
* This is needed for cookie based authentication to encrypt password in
* cookie. Needs to be 32 chars long.
*/
$cfg['blowfish_secret'] = 'GOgot69FCjkfuDU%^8p_h'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
$cfg['blowfish_secret'] = 'GObO60^(04#^5637%fdUGo(*6$%6#dy40)_hgD>mbX6$%got69FCjkfuDU%^8p_h'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
/**
* Servers configuration

View File

@ -95,8 +95,6 @@ services:
links:
# ---- Format: ----
# SERVICE [ : ALIAS]
- "db:database"
- "php:php-fpm"
@ -178,6 +176,12 @@ services:
- ${HOST_PATH_TO_WWW_DOCROOTS}:/shared/httpd
links:
# ---- Format: ----
# SERVICE [ : ALIAS]
- "db:database"
# ----------------------------------------
# DATABASE

View File

@ -47,8 +47,8 @@ HTTPD_SERVER=nginx-stable
###
MYSQL_SERVER=mysql-5.5
MYSQL_SERVER=mysql-5.6
MYSQL_SERVER=mysql-5.7
#MYSQL_SERVER=mysql-5.6
#MYSQL_SERVER=mysql-5.7
###