Ad Widget

Collapse

PHP issues with Zabbix GIU

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Robin34
    Junior Member
    • May 2018
    • 3

    #1

    PHP issues with Zabbix GIU

    Hello everyone I just signed up and I'm new to Zabbix.

    I installed Zabbix on Ubuntu Xenial in a virtualbox machine with a fixed IP address (don't know if it's needed but i prefer). I followed this tutorial https://tecadmin.net/install-zabbix-on-ubuntu/

    But when I try http://192.168.1.28/zabbix/setup.php the server returns nothing but an error. It says there is no content at all.

    Indeed when i check files in the DocumentRoot of Apache there is just index.php in /var/www/html so I copy /usr/share/zabbix in /var/www/html and i get all files in the correct folder.
    So I try again but I can't have php running (from my laptop with firefox) or form the server itself it doesn't work.

    Basically, I can run phpinfo() form the server by executing the file directly in the console but not from my host computer or as a client in a browser.
    It sounds weird

    I would like to add screen but there is no option.

    In the meantime, I tried 192.168.28/zabbix/setup.php
    and it shows me the php code, not its result so i don't understand why php cannot run whereas I can make it run with a simple apache2 web server.

    Here with Zabbix it knocks me out lol

    If you need some material to better understanding my issue, ask for it




  • kloczek
    Senior Member
    • Jun 2006
    • 1771

    #2
    Installing zabbix web frontend web application has nothing to do with installing it inside VM.
    All your problems are related to ph and/or http server configuration on resolve which is helpful wwhat goes to the logs.
    Check your apache logs.
    http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
    https://kloczek.wordpress.com/
    zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
    My zabbix templates https://github.com/kloczek/zabbix-templates

    Comment

    • vesper1978
      Member
      • Nov 2016
      • 59

      #3
      Sounds like php isn't installed/enabled correctly with apache2. Make sure you have at least libapache2-mod-php/libapache2-mod-php7.0/libapache2-mod-php7.1 (any one of these) installed.

      Comment

      • Robin34
        Junior Member
        • May 2018
        • 3

        #4
        Hello, finally i installed php 5.6 related to zabbix doc saying php7.x is not supported (sorry i can't find the link) ; and it worked ; some of you guys did install zabbix with php7 ? If yes i should try again ; for apache logs, i do not have them since i deleted the vm.

        I'm little busy at this time, but i'll test on a new php7 zabbix vm and i'll get in touch with you.


        Comment

        Working...