Re: systemctl restart changes permission.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Did you check your firewall?


----------------------------------------------
Atentamente/Best regards

Rafael Mora
Cel/Mob: +58-414-493.31.39
Cel/Mob: +57-321-755.37.69
Twitter @titanve


On Wed, Apr 29, 2020 at 11:09 PM Kaushal Shriyan <kaushalshriyan@xxxxxxxxx> wrote:
Hi,

I am running CentOS Linux release 7.8.2003 (Core) with php72u-fpm-7.2.30-1.el7.ius.x86_64 version. I am facing the below permission denied issue. I also did the below steps
#cd /run
#chown -Rc nginx.nginx php-fpm
changed ownership of ‘php-fpm/php-fpm.pid’ from root:root to nginx:nginx
changed ownership of ‘php-fpm’ from root:root to nginx:nginx
#systemctl restart php-fpm again changes it from nginx.nginx to root.root user. 

/etc/php-fpm.d/www.conf 
; Unix user/group of processes
; Note: The user is mandatory. If the group is not set, the default user's group
;       will be used.
user = nginx
group = nginx

; Set permissions for unix socket, if one is used. In Linux, read/write
; permissions must be set in order to allow connections from a web server.
; Default Values: user and group are set as the running user
;                 mode is set to 0660
listen.owner = nginx
listen.group = nginx
listen.mode = 0660

nginx error logs
2020/04/30 03:09:28 [crit] 17175#0: *154570 connect() to unix:/run/php-fpm/www.sock failed (13: Permission denied) while connecting to upstream, client: 49.207.54.161, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/www.sock:", host: "35.128.212.112"
2020/04/30 03:09:28 [error] 17175#0: *154570 open() "/var/www/drupal/web/50x.html" failed (2: No such file or directory), client: 49.207.54.161, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/www.sock", host: "35.128.212.112"
2020/04/30 03:09:35 [crit] 17176#0: *154573 connect() to unix:/run/php-fpm/www.sock failed (13: Permission denied) while connecting to upstream, client: 49.207.54.161, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/www.sock:", host: "35.128.212.112"
2020/04/30 03:09:35 [error] 17176#0: *154573 open() "/var/www/drupal/web/50x.html" failed (2: No such file or directory), client: 49.207.54.161, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/www.sock", host: "35.128.212.112"
2020/04/30 03:09:49 [crit] 17175#0: *154575 connect() to unix:/run/php-fpm/www.sock failed (13: Permission denied) while connecting to upstream, client: 14.98.153.6, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/www.sock:", host: "35.128.212.112"
2020/04/30 03:09:49 [error] 17175#0: *154575 open() "/var/www/drupal/web/50x.html" failed (2: No such file or directory), client: 14.98.153.6, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/www.sock", host: "35.128.212.112"
2020/04/30 03:09:50 [crit] 17175#0: *154575 connect() to unix:/run/php-fpm/www.sock failed (13: Permission denied) while connecting to upstream, client: 14.98.153.6, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/www.sock:", host: "35.128.212.112"
2020/04/30 03:09:50 [error] 17175#0: *154575 open() "/var/www/drupal/web/50x.html" failed (2: No such file or directory), client: 14.98.153.6, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/www.sock", host: "35.128.212.112"
2020/04/30 03:10:46 [crit] 17176#0: *154578 connect() to unix:/run/php-fpm/www.sock failed (13: Permission denied) while connecting to upstream, client: 184.22.107.148, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/www.sock:", host: "35.128.212.112"
2020/04/30 03:10:46 [error] 17176#0: *154578 open() "/var/www/drupal/web/50x.html" failed (2: No such file or directory), client: 184.22.107.148, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/www.sock", host: "35.128.212.112"

Please let me know if you need any additional information. Thanks in Advance.

Best Regards,

Kaushal

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux