configure php-fpm and use it in lighttpd
This commit is contained in:
parent
5bdcb87e32
commit
4f8290efce
|
@ -21,9 +21,9 @@
|
|||
; Note: The user is mandatory. If the group is not set, the default user's group
|
||||
; will be used.
|
||||
; RPM: apache user chosen to provide access to the same directories as httpd
|
||||
user = apache
|
||||
user = lighttpd
|
||||
; RPM: Keep a group allowed to write in log dir.
|
||||
group = apache
|
||||
group = lighttpd
|
||||
|
||||
; The address on which to accept FastCGI requests.
|
||||
; Valid syntaxes are:
|
||||
|
@ -46,13 +46,13 @@ listen = /run/php-fpm/www.sock
|
|||
; Default Values: user and group are set as the running user
|
||||
; mode is set to 0660
|
||||
;listen.owner = nobody
|
||||
;listen.group = nobody
|
||||
;listen.group = nogroup
|
||||
;listen.mode = 0660
|
||||
|
||||
; When POSIX Access Control Lists are supported you can set them using
|
||||
; these options, value is a comma separated list of user/group names.
|
||||
; When set, listen.owner and listen.group are ignored
|
||||
listen.acl_users = apache,nginx
|
||||
listen.acl_users = apache,nginx,lighttpd
|
||||
;listen.acl_groups =
|
||||
|
||||
; List of addresses (IPv4/IPv6) of FastCGI clients which are allowed to connect.
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
cgi.fix_pathinfo = 1
|
|
@ -14,7 +14,7 @@
|
|||
## log-request-handling allows you to track the request
|
||||
## handing inside lighttpd.
|
||||
##
|
||||
#debug.log-request-handling = "enable"
|
||||
debug.log-request-handling = "enable"
|
||||
|
||||
##
|
||||
## log all request headers.
|
||||
|
@ -36,7 +36,7 @@
|
|||
##
|
||||
## log if a file wasnt found in the error log.
|
||||
##
|
||||
#debug.log-file-not-found = "enable"
|
||||
debug.log-file-not-found = "enable"
|
||||
|
||||
##
|
||||
## debug conditionals handling
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# vim: et ts=4 sw=4:
|
||||
#######################################################################
|
||||
##
|
||||
## FastCGI Module
|
||||
|
@ -130,3 +131,12 @@ server.modules += ( "mod_fastcgi" )
|
|||
|
||||
##
|
||||
#######################################################################
|
||||
|
||||
fastcgi.server = (
|
||||
".php" => (
|
||||
"localhost" => (
|
||||
"socket" => "/run/php-fpm/www.sock",
|
||||
"broken-scriptfilename" => "enable"
|
||||
)
|
||||
)
|
||||
)
|
||||
|
|
|
@ -90,7 +90,7 @@ server.port = 80
|
|||
##
|
||||
## Use IPv6?
|
||||
##
|
||||
server.use-ipv6 = "enable"
|
||||
#server.use-ipv6 = "enable"
|
||||
|
||||
##
|
||||
## bind to a specific IP
|
||||
|
@ -461,3 +461,5 @@ include conf_dir + "/conf.d/dirlisting.conf"
|
|||
#include conf_dir + "/vhosts.d/*.conf"
|
||||
##
|
||||
#######################################################################
|
||||
|
||||
include conf_dir + "/conf.d/fastcgi.conf"
|
||||
|
|
Loading…
Reference in New Issue