Announcement

#1 2017-09-02 19:03:54

Nick_Kourpan
Member
2017-09-02
1

2.9.1 + nginx +php5-fpm 5.5 problem

Hello,

I've been installed lastest Piwigo with one-click installer with default parameters and I have next errors (on screenshots).
https://yadi.sk/i/jkDCSq3F3MYfSB
https://yadi.sk/i/L-P09FC83MYfTT

If I trying to login, Piwigo shows login form again. What I need to do to use Piwigo?
Thanks!

My nginx conf:

Code:

server {
        listen 80;
        server_name www.kurpan.ru;

  access_log /var/log/nginx/kurpan.access.log;
  error_log /var/log/nginx/kurpan.error.log;

        rewrite ^ http://kurpan.ru$request_uri?;
}

server {
        client_max_body_size 512M;
  listen   80;
  server_name photo.kurpan.ru;

  access_log /var/log/nginx/kurpan.photo.access.log;
  error_log /var/log/nginx/kurpan.photo.error.log;
  index  index.htm index.php index.html;

  root   /home/kurpan/photo/;


location @rewrite {
    rewrite ^/piwigo/picture((/|$).*)$ /piwigo/picture.php$1 last;
    rewrite ^/piwigo/index((/|$).*)$ /piwigo/index.php$1 last;
    # The following is needed for batch operations which use i.php
    rewrite ^/piwigo/i((/|$).*)$ /piwigo/i.php$1 last;
}

location /piwigo {
    index index.php;
    try_files $uri $uri/ @rewrite;
}

location ~ ^(?<script_name>.+?\.php)(?<path_info>/.*)?$ {
    try_files $script_name = 404;
    fastcgi_pass   unix:/var/run/kurpan.ru-fpm.sock;
    fastcgi_param PATH_INFO $path_info;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    include fastcgi_params;
}

  location ~ \.php$ {
    try_files $uri @phpma;
  
    fastcgi_pass   unix:/var/run/kurpan.ru-fpm.sock;
    fastcgi_param  SCRIPT_FILENAME /home/kurpan/photo/$fastcgi_script_name;
    include fastcgi_params2;
  }



#  location @phpma {
#    fastcgi_pass   unix:/var/run/kurpan.ru-fpm.sock;
#    fastcgi_param  SCRIPT_FILENAME /home/kurpan/photo/phpma/index.php;
#    include fastcgi_params2;
#  }

}

Piwigo version: 2.9.1
PHP version: 5.5.9
MySQL version: 5.5
Piwigo URL: http://photo.kurpan.ru/piwigo/

Last edited by Nick_Kourpan (2017-09-02 19:08:46)

Offline

 

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2017 · Contact