Added support for php-fpm with mod_proxy_fcgi (required for apache 2.4).
Note: The mod_proxy_fcgi that ships with CentOS and Ubuntu does not support sockets yet, so all php-fpm connections are done by IP.
| | |
| | | FastCgiExternalServer {tmpl_var name='document_root'}/cgi-bin/php5-fcgi-{tmpl_var name='ip_address'}-{tmpl_var name='port'}-{tmpl_var name='domain'} -idle-timeout 300 -socket <tmpl_var name='fpm_socket'> -pass-header Authorization |
| | | </tmpl_if> |
| | | </IfModule> |
| | | <IfModule mod_proxy_fcgi.c> |
| | | ProxyPassMatch ^/(.*\.php[345]?(/.*)?)$ fcgi://127.0.0.1:<tmpl_var name='fpm_port'><tmpl_var name='web_document_root'>/$1 |
| | | </IfModule> |
| | | </tmpl_if> |
| | | |
| | | <tmpl_if name="rewrite_enabled"> |
| | |
| | | $socket_dir = escapeshellcmd($web_config['php_fpm_socket_dir']); |
| | | if(substr($socket_dir, -1) != '/') $socket_dir .= '/'; |
| | | |
| | | if($data['new']['php_fpm_use_socket'] == 'y'){ |
| | | // User sockets, but not with apache 2.4 as socket support is buggy in that version |
| | | if($data['new']['php_fpm_use_socket'] == 'y' && $app->system->getapacheversion() < 2.4){ |
| | | $use_tcp = 0; |
| | | $use_socket = 1; |
| | | } else { |