You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2020-01-20 17:46:28

phpmyadmin
Member
Registered: 2020-01-20
Posts: 2

Problems with api

Hello! I have problem with api.
When i send curl request, i see in nginx log:
10.10.10.95 - - [20/Jan/2020:14:32:06 +0300] "GET /apirest.php/initSession HTTP/1.1" 502 182 "-" "-"

What am I doing wrong?





Config:
ubuntu 16.04.5
Glpi 9.4.2
php7.0
nginx 1.10.3 (redirect to https)

Offline

#2 2020-01-20 22:20:18

ben2249
Member
From: FRANCE
Registered: 2019-12-03
Posts: 35

Re: Problems with api

You should see this log each time you log to get your session token I think. I got the same.

Offline

#3 2020-01-22 16:27:30

phpmyadmin
Member
Registered: 2020-01-20
Posts: 2

Re: Problems with api

I solved the problem, it was necessary to change in /etc/php/7.0/fpm/pool.d/www.conf:
listen = /run/php/php7.0-fpm.sock
listen.owner = www-data
listen.group = www-data

And change config nginx in the php section:
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
# fastcgi_pass 127.0.0.1:9000;

Offline

Board footer

Powered by FluxBB