Ad Widget

Collapse

Problem in zabbix-1.8.3 web based installation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tahir.bhatti
    Member
    • Dec 2006
    • 56

    #1

    Problem in zabbix-1.8.3 web based installation

    Hi, I am trying to install zabbix-1.8.3, I am facing two problems. Firstly, when I started installing zabbix by running the ./configure ..... comand, at the end it generate the following error and not allow me to run make

    checking for -rdynamic linking option... yes
    checking if Oracle support is enabled... no
    checking for mysql_config... /usr/bin/mysql_config
    checking for main in -lmysqlclient ... yes
    checking for function PQserverVersion()... no
    checking for Zabbix server database selection... ok
    checking for multirow insert statements... yes
    checking for pkg-config... /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking for gawk... (cached) gawk
    checking for curl-config... /usr/bin/curl-config
    checking for the version of libcurl... 7.12.1
    checking for libcurl >= version 7.13.1... no
    checking for net-snmp-config... no
    configure: error: Invalid NET-SNMP directory - unable to find net-snmp-config


    but when I check the net-snmp it was installed, as I received the result of the command rpm -qa | grep -i net-snmp

    net-snmp-5.1.2-11.EL4.7
    net-snmp-libs-5.1.2-11.EL4.7
    net-snmp-utils-5.1.2-11.EL4.7

    -------------------------------------------------

    then I remove the --with-net-snmp from ./configure ..... command, so it complete and allow me to run make and make install.

    But when I copied the php folder at /var/www/html and try to access it in the browser, it give no output just a blank white web page.

    Apache is running .....

    So I tried my level best to discribe my problem, can any one help me how to resole this problem.
  • EnigmA-X
    Senior Member
    Zabbix Certified Specialist
    • Oct 2010
    • 116

    #2
    How did you copy the files?

    Can you please check if PHP is installed and supported within apache?
    Also check access-rights on the files inside /var/www/html/

    Also, which distribution are you using?

    Comment

    • tahir.bhatti
      Member
      • Dec 2006
      • 56

      #3
      Thanks for your reply but sorry I was away from my system.

      I just copied the php folder to /var/ww/html by using cp command

      ------------------------------------------------------------------
      PHP is installed and an other php based application is already running.
      [root@nocsys11 html]# rpm -qa | grep -i php
      php-mysql-4.3.9-3.15
      php-ldap-4.3.9-3.15
      php-pear-4.3.9-3.15
      php-4.3.9-3.15
      ------------------------------------------------------------------
      [root@nocsys11 html]# ls -la
      total 28
      drwxrwxrwx 6 root root 4096 Nov 11 20:55 .
      drwxr-xr-x 9 root root 4096 Jul 20 09:54 ..
      drwxrwxrwx 4 root root 4096 Jul 20 09:54 includes
      drwxrwxrwx 4 root root 4096 Jul 20 09:54 lms
      drwxrwxrwx 10 root root 4096 Nov 11 20:52 php
      drwxrwxrwx 4 root root 4096 Jul 20 09:54 web
      ------------------------------------------------------------------
      Using redhat 4

      [root@nocsys11 html]# more /etc/redhat-release
      #Red Hat Enterprise Linux AS release 4 (Nahant Update 4)
      redhat-4
      --------------------------------------------------------------------

      Comment

      • EnigmA-X
        Senior Member
        Zabbix Certified Specialist
        • Oct 2010
        • 116

        #4
        First, why are you running RHEL 4u4?

        Second, you don't want to copy the php-folder to /var/www/html/, you want to copy the contents of the php-folder to /var/www/html/

        Third, change the ownership of your files to something else than root. Best is to change them to your apache user (or zabbix user).

        Fourth, which php app *is* working for you?

        Fifth, if it all won't work, please create a file in /var/www/html/ called test.php and put <?php phpinfo(); ?> into this file. Than show us the output when you browse to http://<yourserver>/test.php

        Good luck!

        Comment

        • tahir.bhatti
          Member
          • Dec 2006
          • 56

          #5
          There is no special reason in using RHEL 4u4, if zabbix-1.8 creats problems with this then I can switch to RHEL-5 if you suggest.

          Secondly, as per previous versions of zabbix, it is necessary to copy the complete php directory at /var/www/html/

          I also change the ownership of php directory to zabbix user but no chnage took place.

          syslog-ng is working at the same place /var/www/html.

          I have attached the out put of test.php as per your instruction in zip formate.
          Attached Files

          Comment

          Working...