Skip to content

Commit b491adf

Browse files
committed
- FPM socket permissions need to be 660 also under Apache, otherwise you get the following error:
[Sun Jun 01 18:52:24 2014] [error] [client 146.52.61.243] (13)Permission denied: FastCGI: failed to connect to server "/var/www/clients/client1/web2/cgi-bin/php5-fcgi-1.2.3.4-80-example.de": connect() failed [Sun Jun 01 18:52:24 2014] [error] [client 146.52.61.243] FastCGI: incomplete headers (0 bytes) received from server "/var/www/clients/client1/web2/cgi-bin/php5-fcgi-1.2.3.4-80-example.de"
1 parent bcd725d commit b491adf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/plugins-available/apache2_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2654,7 +2654,7 @@ private function php_fpm_pool_update ($data, $web_config, $pool_dir, $pool_name,
26542654

26552655
$fpm_socket = $socket_dir.$pool_name.'.sock';
26562656
$tpl->setVar('fpm_socket', $fpm_socket);
2657-
$tpl->setVar('fpm_listen_mode', '0600');
2657+
$tpl->setVar('fpm_listen_mode', '0660');
26582658

26592659
$tpl->setVar('fpm_pool', $pool_name);
26602660
$tpl->setVar('fpm_port', $web_config['php_fpm_start_port'] + $data['new']['domain_id'] - 1);

0 commit comments

Comments
 (0)