Hi,
I have the same problem as this post before (https://www.zabbix.com/forum/zabbix-...ep?view=thread). Their solution did not solve my problem. Already checked the permissions to the sessions folder.. I have the same problem with Zabbix 3.4, nginx/1.14.2 and php-fpm 5.6.39. The webserver seems to be working fine. There are no errors in PHP or nginx errors.
I tried a lot of things. Let me post the configs:
server {
server_name zabbix;
return 301 https://zabbix$request_uri;
}
server {
listen 443;
server_name zabbix;
access_log /var/log/nginx/zabbix/zabbix-access.log main;
error_log /var/log/nginx/zabbix/zabbix-error.log;
# SSL Options
ssl_protocols TLSv1.2; # Disable 1.0 & 1.1
ssl_certificate /etc/ssl/certs/zabbix.crt;
ssl_certificate_key /etc/ssl/private/zabbix.key;
root /usr/share/zabbix;
index index.php index.html;
client_max_body_size 5m;
client_body_buffer_size 128k;
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
#fastcgi_pass unix:/var/run/zabbix.socket;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
}
location ~* \.(jpg|jpeg|png|gif|css|js|ico)$ {
expires max;
log_not_found off;
}
location ~ /\.ht {
deny all;
}
location ~ /\. {
deny all;
}
location ~* \.(jpg|jpeg|png|gif|css|js|ico)$ {
expires max;
log_not_found off;
}
location ~ /\.ht {
deny all;
}
location ~ /\. {
deny all;
}
}
This config is on a test server. nginx and php-fpm both run as the user nginx:
# ps aux |grep nginx
nginx 12052 0.0 0.0 536308 15480 ? S 04:38 0:00 php-fpm: pool www
(...)
nginx 12061 0.0 0.0 534768 7316 ? S 04:38 0:00 php-fpm: pool www
root 12081 0.0 0.0 63492 1316 ? Ss 04:38 0:00 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf
nginx 12082 0.0 0.0 63496 3052 ? S 04:38 0:00 nginx: worker process
(...)
nginx 12083 0.0 0.0 63800 3384 ? S 04:38 0:00 nginx: worker process
root 12133 0.0 0.0 103316 884 pts/1 S+ 05:11 0:00 grep nginx
Then the permissions:
# ll /var/lib/php
total 208
drwx------. 2 nginx nginx 204800 2018-12-13 04:48 session
drwxrwx---. 2 nginx nginx 4096 2018-12-05 14:41 wsdlcache
# ll /var/lib/php/session/
(...)
-rwx------. 1 nginx nginx 0 2018-12-12 09:01 sess_zvMAvAJdkhIDyB0BcCj7kNu-NCKlpfK-iE26fWqJHheGAE9ezSPXII6kfIza3IaCUZNOh52zQNqmE3huA0 ShF2
-rwx------. 1 nginx nginx 0 2018-12-13 04:37 sess_ZxbRpSjSakKocYwVxgckLe6NlGS6vvYQ1v9UYKwz8ldnz Dszsf3C3fmoClUdiPFaDRKR7nAMz81TADmHH6Csw2
-rwx------. 1 nginx nginx 0 2018-12-12 08:28 sess_ZXDhiR4zwYFPXFoWxp0LYuIO3Y8R-qUsq2Mf53u9xJJ0QNhE,exgpis7jGQ4tZzmXPnq3nuqTkKbTBg 8Y,6MJ3
-rwx------. 1 nginx nginx 0 2018-12-13 04:27 sess_zxP5Ksr0ZSruxzHmji9LL8UTHtjDvgxS9GtPxz1Wls4Xv vXO-gwsWXpEUu4ZGoyBVdOnt-3Eyo,ETCvN4mx,Y0
-rwx------. 1 nginx nginx 0 2018-12-13 04:27 sess_ZYkVVTUUXv4ogS,AhzW7J6U-WfmN7nTO,NVuGoROv51oMJtG63TMjEC3JHgxMb3qbzDQEBMwme hc2chDd40D10
-rwx------. 1 nginx nginx 24 2018-12-12 08:25 sess_zYl6LEHA7ghO,ymQPKd7PhtCe5J7WUevSIR6LB2pot8L-DwqKD,Krh8EctMveeGvWSEszGZ9VYP-D8IVXnfoX3
(...)
The PHP fpm modules recognized are the following:
# php-fpm -m
[PHP Modules]
# I put them all in the same line to make it shorter, thei apear in a single column:
bcmath bz2 calendar cgi-fcgi Core ctype curl date dom ereg exif fileinfo filter ftp gd gettext gmp hash iconv json libxml mbstring mcrypt memcache mhash mysql mysqli mysqlnd openssl pcre PDO pdo_mysql pdo_sqlite Phar posix Reflection session shmop SimpleXML sockets SPL sqlite3
standard sysvmsg sysvsem sysvshm tokenizer wddx xml xmlreader xmlwriter xsl yaml Zend OPcache zip zlib
[Zend Modules]
Zend OPcache
I do not know what else to do or check?
Regards
I have the same problem as this post before (https://www.zabbix.com/forum/zabbix-...ep?view=thread). Their solution did not solve my problem. Already checked the permissions to the sessions folder.. I have the same problem with Zabbix 3.4, nginx/1.14.2 and php-fpm 5.6.39. The webserver seems to be working fine. There are no errors in PHP or nginx errors.
I tried a lot of things. Let me post the configs:
server {
server_name zabbix;
return 301 https://zabbix$request_uri;
}
server {
listen 443;
server_name zabbix;
access_log /var/log/nginx/zabbix/zabbix-access.log main;
error_log /var/log/nginx/zabbix/zabbix-error.log;
# SSL Options
ssl_protocols TLSv1.2; # Disable 1.0 & 1.1
ssl_certificate /etc/ssl/certs/zabbix.crt;
ssl_certificate_key /etc/ssl/private/zabbix.key;
root /usr/share/zabbix;
index index.php index.html;
client_max_body_size 5m;
client_body_buffer_size 128k;
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
#fastcgi_pass unix:/var/run/zabbix.socket;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
}
location ~* \.(jpg|jpeg|png|gif|css|js|ico)$ {
expires max;
log_not_found off;
}
location ~ /\.ht {
deny all;
}
location ~ /\. {
deny all;
}
location ~* \.(jpg|jpeg|png|gif|css|js|ico)$ {
expires max;
log_not_found off;
}
location ~ /\.ht {
deny all;
}
location ~ /\. {
deny all;
}
}
This config is on a test server. nginx and php-fpm both run as the user nginx:
# ps aux |grep nginx
nginx 12052 0.0 0.0 536308 15480 ? S 04:38 0:00 php-fpm: pool www
(...)
nginx 12061 0.0 0.0 534768 7316 ? S 04:38 0:00 php-fpm: pool www
root 12081 0.0 0.0 63492 1316 ? Ss 04:38 0:00 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf
nginx 12082 0.0 0.0 63496 3052 ? S 04:38 0:00 nginx: worker process
(...)
nginx 12083 0.0 0.0 63800 3384 ? S 04:38 0:00 nginx: worker process
root 12133 0.0 0.0 103316 884 pts/1 S+ 05:11 0:00 grep nginx
Then the permissions:
# ll /var/lib/php
total 208
drwx------. 2 nginx nginx 204800 2018-12-13 04:48 session
drwxrwx---. 2 nginx nginx 4096 2018-12-05 14:41 wsdlcache
# ll /var/lib/php/session/
(...)
-rwx------. 1 nginx nginx 0 2018-12-12 09:01 sess_zvMAvAJdkhIDyB0BcCj7kNu-NCKlpfK-iE26fWqJHheGAE9ezSPXII6kfIza3IaCUZNOh52zQNqmE3huA0 ShF2
-rwx------. 1 nginx nginx 0 2018-12-13 04:37 sess_ZxbRpSjSakKocYwVxgckLe6NlGS6vvYQ1v9UYKwz8ldnz Dszsf3C3fmoClUdiPFaDRKR7nAMz81TADmHH6Csw2
-rwx------. 1 nginx nginx 0 2018-12-12 08:28 sess_ZXDhiR4zwYFPXFoWxp0LYuIO3Y8R-qUsq2Mf53u9xJJ0QNhE,exgpis7jGQ4tZzmXPnq3nuqTkKbTBg 8Y,6MJ3
-rwx------. 1 nginx nginx 0 2018-12-13 04:27 sess_zxP5Ksr0ZSruxzHmji9LL8UTHtjDvgxS9GtPxz1Wls4Xv vXO-gwsWXpEUu4ZGoyBVdOnt-3Eyo,ETCvN4mx,Y0
-rwx------. 1 nginx nginx 0 2018-12-13 04:27 sess_ZYkVVTUUXv4ogS,AhzW7J6U-WfmN7nTO,NVuGoROv51oMJtG63TMjEC3JHgxMb3qbzDQEBMwme hc2chDd40D10
-rwx------. 1 nginx nginx 24 2018-12-12 08:25 sess_zYl6LEHA7ghO,ymQPKd7PhtCe5J7WUevSIR6LB2pot8L-DwqKD,Krh8EctMveeGvWSEszGZ9VYP-D8IVXnfoX3
(...)
The PHP fpm modules recognized are the following:
# php-fpm -m
[PHP Modules]
# I put them all in the same line to make it shorter, thei apear in a single column:
bcmath bz2 calendar cgi-fcgi Core ctype curl date dom ereg exif fileinfo filter ftp gd gettext gmp hash iconv json libxml mbstring mcrypt memcache mhash mysql mysqli mysqlnd openssl pcre PDO pdo_mysql pdo_sqlite Phar posix Reflection session shmop SimpleXML sockets SPL sqlite3
standard sysvmsg sysvsem sysvshm tokenizer wddx xml xmlreader xmlwriter xsl yaml Zend OPcache zip zlib
[Zend Modules]
Zend OPcache
I do not know what else to do or check?
Regards