Ad Widget

Collapse

Issue with Zabbix 3+ on Centos 7 - setup.php

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • misant
    Junior Member
    • Jun 2015
    • 4

    #1

    Issue with Zabbix 3+ on Centos 7 - setup.php

    Hi!

    I installed Zabbix 3.2 (mysql version) on Centos System and met an issue - fronted initial setup was not working, when on http://somehost/setup.php click on "Next Step" nothinh happens.

    Server description:
    1. Centos 7
    2. Nginx + php-fpm
    3. mysql

    What I tried to change:
    1. PHP versions - 5.4, 5.6, 7.1, 7.1 not supported so it showed an error, nothing happens with 5.4, 5.6 on click "Next step"
    2. mariadb5.5, mysql5.7
    3. Zabbix versions 3.0, 3.2 with same result

    Also I installed new server from scratch and got same issue:


    No any errors on nginx, php-fpm or zabbix logs.

    SOLVED:
    Ownership change was needed:
    Code:
    chown -R nginx:nginx /var/lib/php/session/
    Last edited by misant; 25-05-2017, 11:16. Reason: SOLVED
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    Which users did you want nginx and php-fpm to work on?

    If you made it work with nginx users, you need to change the permissions of the various files.
    For example, the following files and directories.

    Code:
    $ ls -ld /var/lib/php/session/
    drwxrwx--- 2 root apache 44  5月 23 18:28 /var/lib/php/session/
    $ ls -ld /etc/zabbix/web/
    drwxr-x--- 2 apache apache 54  4月 27 11:00 /etc/zabbix/web/
    $

    Comment

    • misant
      Junior Member
      • Jun 2015
      • 4

      #3
      Originally posted by Atsushi
      Which users did you want nginx and php-fpm to work on?
      Both nginx and php-fpm are started with "nginx" user

      Comment

      • misant
        Junior Member
        • Jun 2015
        • 4

        #4
        That helped!
        Thank you a lot, with no errors in logs I spent a lot of time to fix it without success. I changed ownership of /etc/zabbix/web, zabbix frontend dir but never met that session folder mentions.

        Code:
        chown -R nginx:nginx /var/lib/php/session/

        Comment

        • Atsushi
          Senior Member
          • Aug 2013
          • 2028

          #5
          If you are running as an nginx user, please check whether the nginx user can access PHP session management directory.
          Similarly, you need to check the permissions of the /etc/zabbix/web/ directory.

          Comment

          Working...