Skip to content

Commit 6db0362

Browse files
author
Till Brehm
committed
Fixed a Bug in Centos 7 were php-fpm uses sockets while mod_proxy_fcgi in centos 7 does not support that yet.
1 parent 8348c81 commit 6db0362

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/plugins-available/apache2_plugin.inc.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2664,7 +2664,8 @@ private function php_fpm_pool_update ($data, $web_config, $pool_dir, $pool_name,
26642664
$tpl->newTemplate('php_fpm_pool.conf.master');
26652665
$tpl->setVar('apache_version', $app->system->getapacheversion());
26662666

2667-
if($data['new']['php_fpm_use_socket'] == 'y'){
2667+
// Use sockets, but not with apache 2.4 on centos (mod_proxy_fcgi) as socket support is buggy in that version
2668+
if($data['new']['php_fpm_use_socket'] == 'y' && in_array('fastcgi_module',$apache_modules)){
26682669
$use_tcp = 0;
26692670
$use_socket = 1;
26702671
if(!is_dir($socket_dir)) $app->system->mkdirpath($socket_dir);

0 commit comments

Comments
 (0)