Просмотр исходного кода

Remove port 9000 sockets and change over to unix sockets

Jaap Marcus 1 год назад
Родитель
Сommit
2bc116445f

+ 2 - 2
install/deb/php-fpm/dummy.conf

@@ -3,12 +3,12 @@
 [wwww]
 [wwww]
 listen = /run/php/php%backend_version%-fpm.dummy.sock
 listen = /run/php/php%backend_version%-fpm.dummy.sock
 listen.owner = hestiamail
 listen.owner = hestiamail
-listen.group = www-data
+listen.group = hestiamail
 listen.mode = 0660
 listen.mode = 0660
 
 
 ;"hestiamail" user created to prevent users from abusing this config
 ;"hestiamail" user created to prevent users from abusing this config
 user = hestiamail
 user = hestiamail
-group = www-data
+group = hestiamail
 
 
 pm = ondemand
 pm = ondemand
 pm.max_children = 4
 pm.max_children = 4

+ 2 - 2
install/deb/php-fpm/www.conf

@@ -1,12 +1,12 @@
 ; origin-src: deb/php-fpm/www.conf
 ; origin-src: deb/php-fpm/www.conf
 
 
 [www]
 [www]
-listen = 127.0.0.1:9000
+listen = /run/php/www.sock;
 listen.allowed_clients = 127.0.0.1
 listen.allowed_clients = 127.0.0.1
 
 
 ;"hestiamail" user created to prevent users from abusing this config
 ;"hestiamail" user created to prevent users from abusing this config
 user = hestiamail
 user = hestiamail
-group = www-data
+group = hestiamail
 
 
 pm = ondemand
 pm = ondemand
 pm.max_children = 4
 pm.max_children = 4

+ 2 - 2
install/deb/templates/mail/nginx/snappymail.stpl

@@ -43,9 +43,9 @@ server {
 
 
 			fastcgi_index index.php;
 			fastcgi_index index.php;
 			fastcgi_param HTTP_EARLY_DATA $rfc_early_data if_not_empty;
 			fastcgi_param HTTP_EARLY_DATA $rfc_early_data if_not_empty;
-			fastcgi_param SCRIPT_FILENAME $request_filename;
+			fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
 
 
-			fastcgi_pass  127.0.0.1:9000;
+			fastcgi_pass unix:/run/php/www.sock;
 		}
 		}
 	}
 	}
 
 

+ 2 - 2
install/deb/templates/mail/nginx/snappymail.tpl

@@ -35,9 +35,9 @@ server {
 			include /etc/nginx/fastcgi_params;
 			include /etc/nginx/fastcgi_params;
 
 
 			fastcgi_index index.php;
 			fastcgi_index index.php;
-			fastcgi_param SCRIPT_FILENAME $request_filename;
+			fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
 
 
-			fastcgi_pass  127.0.0.1:9000;
+			fastcgi_pass unix:/run/php/www.sock;
 		}
 		}
 	}
 	}
 
 

+ 2 - 2
install/deb/templates/mail/nginx/web_system.stpl

@@ -38,9 +38,9 @@ server {
 
 
 			fastcgi_index index.php;
 			fastcgi_index index.php;
 			fastcgi_param HTTP_EARLY_DATA $rfc_early_data if_not_empty;
 			fastcgi_param HTTP_EARLY_DATA $rfc_early_data if_not_empty;
-			fastcgi_param SCRIPT_FILENAME $request_filename;
+			fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
 
 
-			fastcgi_pass  127.0.0.1:9000;
+			fastcgi_pass unix:/run/php/www.sock;
 		}
 		}
 	}
 	}
 
 

+ 2 - 2
install/deb/templates/mail/nginx/web_system.tpl

@@ -30,9 +30,9 @@ server {
 			include /etc/nginx/fastcgi_params;
 			include /etc/nginx/fastcgi_params;
 
 
 			fastcgi_index index.php;
 			fastcgi_index index.php;
-			fastcgi_param SCRIPT_FILENAME $request_filename;
+			fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
 
 
-			fastcgi_pass  127.0.0.1:9000;
+			fastcgi_pass unix:/run/php/www.sock;
 		}
 		}
 	}
 	}