jordansamuel / PASTE

Paste is a project that started from the files pastebin.com used before it was bought.
https://phpaste.sourceforge.io/
GNU General Public License v3.0
295 stars 105 forks source link

Not work autorization on nginx #185

Closed Gibadm closed 2 years ago

Gibadm commented 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/"

Gibadm commented 2 years ago

SOLVED ruls for directory /var/lib/php/session root apache change to root nginx