Changeset - a99958de73d9
[Not reviewed]
0 2 0
Branko Majic (branko) - 4 years ago 2020-05-07 16:09:17
branko@majic.rs
MAR-152: Updated the php_website role to use new socket location.
2 files changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
roles/php_website/templates/fpm_site.conf.j2
Show inline comments
 
@@ -6,7 +6,7 @@ user = {{ user }}
 
group = {{ user }}
 

	
 
; Listen on a dedicated UNIX socket.
 
listen = /var/run/{{ php_fpm_service_name }}/{{ fqdn }}.sock
 
listen = /run/php/{{ fqdn }}.sock
 

	
 
; Set-up UNIX socket permissions (allow web server to connect).
 
listen.owner = www-data
roles/php_website/templates/nginx_site.j2
Show inline comments
 
@@ -56,7 +56,7 @@ server {
 
    # Interpret PHP files via FastCGI.
 
    location ~ {{ php_file_regex }} {
 
        include snippets/fastcgi-php.conf;
 
        fastcgi_pass unix:/var/run/{{ php_fpm_service_name }}/{{ fqdn }}.sock;
 
        fastcgi_pass unix:/run/php/{{ fqdn }}.sock;
 
    }
 

	
 
    # Serve the files.
0 comments (0 inline, 0 general)