Closed Gibadm closed 2 years ago
Hi,
Centos 8 Nginx 1.21.4 PHP 7.4.6
Logging: 2021/11/13 17:31:03 [error] 61460#61460: *1 FastCGI sent in stderr: "PHP message: PHP Warning: session_start(): open(/var/lib/php/session/sess_kv4oln9l3phvc9dsfsd0hee4dquup40, O_RDWR) failed: Permission denied (13) in /var/www/mydomain/paste.mydomain.com/admin/index.php on line 19PHP message: PHP Warning: session_start(): Failed to read session data: files (path: /var/lib/php/session) in /var/www/mydomain/paste.mydomain.com/admin/index.php on line 19" while reading response header from upstream, client: 109.252.29.5, server: paste.mydomain.com, request: "GET /admin/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "paste.mydomain.com", referrer: "http://paste.mydomain.com/admin/"
2021/11/13 17:31:03 [error] 61460#61460: *1 FastCGI sent in stderr: "PHP message: PHP Warning: session_start(): open(/var/lib/php/session/sess_kv4oln9l3phvc9dsfsd0hee4dquup40, O_RDWR) failed: Permission denied (13) in /var/www/mydomain/paste.mydomain.com/admin/index.php on line 19PHP message: PHP Warning: session_start(): Failed to read session data: files (path: /var/lib/php/session) in /var/www/mydomain/paste.mydomain.com/admin/index.php on line 19" while reading response header from upstream, client: 109.252.29.5, server: paste.mydomain.com, request: "GET /admin/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "paste.mydomain.com", referrer: "http://paste.mydomain.com/admin/"
SOLVED ruls for directory /var/lib/php/session root apache change to root nginx
Hi,
Centos 8 Nginx 1.21.4 PHP 7.4.6
Logging:
2021/11/13 17:31:03 [error] 61460#61460: *1 FastCGI sent in stderr: "PHP message: PHP Warning: session_start(): open(/var/lib/php/session/sess_kv4oln9l3phvc9dsfsd0hee4dquup40, O_RDWR) failed: Permission denied (13) in /var/www/mydomain/paste.mydomain.com/admin/index.php on line 19PHP message: PHP Warning: session_start(): Failed to read session data: files (path: /var/lib/php/session) in /var/www/mydomain/paste.mydomain.com/admin/index.php on line 19" while reading response header from upstream, client: 109.252.29.5, server: paste.mydomain.com, request: "GET /admin/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "paste.mydomain.com", referrer: "http://paste.mydomain.com/admin/"