Dedicated php-fpm process

Addition of base commands to manage a dedicated php-fpm process very easily
Standard empty app is not modified or changed.
This commit is contained in:
polytan02
2015-10-10 21:28:09 +02:00
parent 177c7a8886
commit cfcb62cd97
7 changed files with 319 additions and 1 deletions
+11
View File
@@ -5,10 +5,21 @@ location YNH_WWW_PATH {
# Example PHP configuration
index index.php;
# Common parameter to increase upload size limit in conjuction with dedicated php-fpm file
#client_max_body_size 50M;
try_files $uri $uri/ index.php;
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
# Filename to be changed if dedicated php-fpm process is required
# This is too be uised INSTEAD of line above
# Don't forget to adjust scripts install/upgrade/remove/backup accordingly
#
#fastcgi_pass unix:/var/run/php5-fpm-YNH_WWW_APP.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param REMOTE_USER $remote_user;