Page 1 of 1

MODX - Errors in logs

Posted: Mon Nov 23, 2015 9:17 pm
by labasus
Site was started and worked perfect, but some errors in the logs, by the way - in web template misses CMS MODx profile

I've added addition include conf:

Code: Select all

location /manager {
    }
    location /assets {
    }
    location / {
    try_files       $uri $uri/ @rewrite;
    }
    location @rewrite {
    rewrite         ^/(.*)$ /index.php?q=$1;
    }
    location ~ \.php$ {
    fastcgi_param   SCRIPT_FILENAME $document_root$fastcgi_script_name;
     fastcgi_pass    127.0.0.1:9001;
            fastcgi_index   index.php;
            include         /etc/nginx/fastcgi_params;

    }
    location ~* ^.+\.(jpg|jpeg|gif|css|png|js|ico|bmp)$ {
    access_log       off;
    expires          10d;
    break;
    }
    location ~ /\.ht {
    deny all;
    }
Website errors logs:

Code: Select all

FastCGI sent in stderr: "PHP message: PHP Warning:  session_start(): open(/var/lib/php5/sessions/sess_r1t00hqhrf7dnf2uia52dlj1n4, O_RDWR) failed: Permission denied (13) in /home/sr/web/domain.lt/public_html/manager/includes/config.inc.php on line 87" while reading response header from upstream, client: 8.8.8.8, server: domain.lt, request: "GET /lt/index.html HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "domain.lt"

Re: MODX - Errors in logs

Posted: Tue Nov 24, 2015 7:04 am
by skurudo
How about this?

Code: Select all

chmod -R 1777 /var/lib/php5/sessions/

Re: MODX - Errors in logs

Posted: Tue Nov 24, 2015 5:39 pm
by labasus
Of cause this fixed the permission issue, but can be fixed in next release?