mirror of
https://github.com/cytopia/devilbox.git
synced 2024-12-20 05:17:53 +00:00
Fix: Enable PHP-FPM for Apache 2.2 and Apache 2.4
This commit is contained in:
parent
d02bd65b24
commit
790b493d85
6
.devilbox/etc/apache-2.2/00-php-fpm.conf
Normal file
6
.devilbox/etc/apache-2.2/00-php-fpm.conf
Normal 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
|
17
.devilbox/etc/apache-2.4/00-php-fpm.conf
Normal file
17
.devilbox/etc/apache-2.4/00-php-fpm.conf
Normal 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>
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
||||
###
|
||||
|
Loading…
Reference in New Issue
Block a user