Create php user

This commit is contained in:
coolneng 2019-11-17 21:41:31 +01:00
parent efa53dc335
commit 9b1d410eeb
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 6 additions and 1 deletions

View File

@ -71,8 +71,8 @@
tryFiles = "try_files $uri /app.php$is_args$args"; tryFiles = "try_files $uri /app.php$is_args$args";
extraConfig = '' extraConfig = ''
location ~ ^/app\.php(/|$) { location ~ ^/app\.php(/|$) {
fastcgi_pass unix:/var/run/php-fpm.sock;
fastcgi_split_path_info ^(.+\.php)(/.*)$; fastcgi_split_path_info ^(.+\.php)(/.*)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $realpath_root; fastcgi_param DOCUMENT_ROOT $realpath_root;
internal; internal;
@ -155,4 +155,9 @@
}; };
}; };
# Create php user
users.users.php = {
group = "php";
};
} }