Ad Widget

Collapse

Zabbix FrontEnd Setup Issue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • satyajittarai
    Junior Member
    • Aug 2017
    • 7

    #1

    Zabbix FrontEnd Setup Issue

    Hello Team,

    I am trying to setup zabbix frontend, where I got these errors:

    At least one of MySQL, PostgreSQL, Oracle, SQLite3 or IBM DB2 should be supported.
    PHP bcmath extension missing (PHP configuration parameter --enable-bcmath).
    PHP mbstring extension missing (PHP configuration parameter --enable-mbstring).
    PHP sockets extension missing (PHP configuration parameter --enable-sockets).
    PHP gd extension missing (PHP configuration parameter --with-gd).
    PHP gd PNG image support missing.
    PHP gd JPEG image support missing.
    PHP gd FreeType support missing.

    I have installed PostgreSQL and also run these commands while installing zabbix server.(./configure --enable-bcmath --with-gd -with-freetype-dir --enable-mbstring --enable-sockets --with-pgsql) and also change extension parameter in configure file.

    Still these issues exist.

    Please let me know If I am missing something or need to change something else.

    Thanks
  • allexpetrov
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2017
    • 361

    #2
    Originally posted by satyajittarai
    Hello Team,
    At least one of MySQL, PostgreSQL, Oracle, SQLite3 or IBM DB2 should be supported.
    PHP bcmath extension missing (PHP configuration parameter --enable-bcmath).
    PHP mbstring extension missing (PHP configuration parameter --enable-mbstring).
    PHP sockets extension missing (PHP configuration parameter --enable-sockets).
    PHP gd extension missing (PHP configuration parameter --with-gd).
    PHP gd PNG image support missing.
    PHP gd JPEG image support missing.
    PHP gd FreeType support missing.

    Thanks
    Hello, satyajittarai!

    As you see - the error is that you are missing some of the PHP components. You need to install them by issuing the specific command, according to your server OS.

    For example, list of the components of PHP7.0 for Ubuntu:

    Code:
    ap@wks01:~$ sudo apt install php7.0-
    php7.0-bcmath     php7.0-common     php7.0-enchant    php7.0-imap       php7.0-ldap       php7.0-odbc       php7.0-pspell     php7.0-soap       php7.0-xml
    php7.0-bz2        php7.0-curl       php7.0-fpm        php7.0-interbase  php7.0-mbstring   php7.0-opcache    php7.0-readline   php7.0-sqlite3    php7.0-xmlrpc
    php7.0-cgi        php7.0-dba        php7.0-gd         php7.0-intl       php7.0-mcrypt     php7.0-pgsql      php7.0-recode     php7.0-sybase     php7.0-xsl
    php7.0-cli        php7.0-dev        php7.0-gmp        php7.0-json       php7.0-mysql      php7.0-phpdbg     php7.0-snmp       php7.0-tidy       php7.0-zip
    But, in this case, I see that you are doing the things wrong. Please, go through the manual (https://www.zabbix.com/documentation...lation/install) , or if it's your first time with Zabbix/Linux - better try out Appliance (https://www.zabbix.com/download) or install from Repository( https://www.zabbix.com/documentation...y_installation )

    P.S. - Don't forget to import the schema , more: https://www.zabbix.com/documentation...all/db_scripts

    Comment

    • satyajittarai
      Junior Member
      • Aug 2017
      • 7

      #3
      PHP installation error

      I run below command :

      ./configure --enable-bcmath --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --enable-mbstring --with-pdo-pgsql=/home/zabbix/tools/software/pgsql --enable-sockets --with-xmlrpc --enable-inline-optimization --prefix=/usr/local/php --with-pgsql=/home/zabbix/tools/software/pgsql --enable-gd-native-ttf


      Error :

      -----------------------------------------------------------------------
      /home/zabbix/tools/software/pgsql/include/zlib.h:86: error: expected specifier-qualifier-list before âz_constâ
      /home/zabbix/tools/software/pgsql/include/zlib.h:1025: error: expected declaration specifiers or â...â before âz_constâ
      /home/zabbix/tools/software/pgsql/include/zlib.h:1349: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âZ_ARGâ
      /home/zabbix/tools/software/pgsql/include/zlib.h:1673: error: expected specifier-qualifier-list before âz_off64_tâ
      /home/zabbix/tools/software/pgsql/include/zlib.h:1748: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
      /home/zabbix/tools/software/pgsql/include/zlib.h:1758: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âZ_ARGâ


      help me to install PHP7.1.7 in RHEL 6 server with all PHP components ....

      Comment

      • allexpetrov
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • May 2017
        • 361

        #4
        Hi, what(and why) you are trying to compile ?

        Can you just install php 5.4 from packages ? Just google "install PHP5.4 on RHEL6" and you will find the manual. I had the 3.2.7 installation on CentOS6 and everything was ok.


        Regards,
        Alex

        Comment

        • satyajittarai
          Junior Member
          • Aug 2017
          • 7

          #5
          Zabbix FrontEnd Setup Issue

          Hi Alex,

          PHP installation done but PHP modules not getting installed . I have tried
          yum search "php-bcmatch" then sudo yum install php-bcmatch ..etc but its showing packges are not available

          And not able to add the Addition repository also (remi repository) in RHEL6 server . So should we go ahed with zabbix3.2 installation in RHEL6 or upgrade it to RHEL 7 ??

          Comment

          • allexpetrov
            Senior Member
            Zabbix Certified Trainer
            Zabbix Certified SpecialistZabbix Certified Professional
            • May 2017
            • 361

            #6
            Hmm, this could be the problem that you don't have an active repository. Try to do something like this:

            Code:
            [root@zbx05 ~]# yum search php | grep bcmath
            php-bcmath.x86_64 : A module for PHP applications for using the bcmath library
            php54-php-bcmath.x86_64 : A module for PHP applications for using the bcmath
            php55-php-bcmath.x86_64 : A module for PHP applications for using the bcmath
            rh-php56-php-bcmath.x86_64 : A module for PHP applications for using the bcmath
            rh-php70-php-bcmath.x86_64 : A module for PHP applications for using the bcmath
            As you see, there is php-bcmath which, I think, would be standard with version below 5.4 and then there is for 5.4, 5.5, 5.6 or even for 7.0

            But, as you can see in installation manual for Zabbix 3.2 ( https://www.zabbix.com/documentation...y_installation )

            For Red Hat Enterprise Linux / CentOS
            Supported versions

            RHEL 7
            Oracle Linux 7
            CentOS 7
            So it is recommended to run REHL/CentOS 7 for v 3.2

            BTW, so you are installing Zabbix from repository or from sources ?

            Regards,
            Alex

            Comment

            • satyajittarai
              Junior Member
              • Aug 2017
              • 7

              #7
              Zabbix FrontEnd Setup Issue

              Hi Alex,

              I am installing zabbix, PHP ,postgres from sources only ..in this process zabbix server , agent , postgres everything working file except PHP, PHP modules are not getting installed .. should I try to install rpm files for PHP modules ??

              Comment

              • allexpetrov
                Senior Member
                Zabbix Certified Trainer
                Zabbix Certified SpecialistZabbix Certified Professional
                • May 2017
                • 361

                #8
                Originally posted by satyajittarai
                Hi Alex,

                I am installing zabbix, PHP ,postgres from sources only ..in this process zabbix server , agent , postgres everything working file except PHP, PHP modules are not getting installed .. should I try to install rpm files for PHP modules ??
                Sorry, I think there is a misunderstanding between us. You are using source code to compile everything or you are installing via package manager like yum ?

                If you are using package manager like yum, then just add the repository with php5.x then go ahead and install php5.4 and delete old components.

                I found this , so it might be useful - http://www.looklinux.com/php-5-4-ins...at-6-x-system/

                Otherwise, go ahead and install everything under RHEL 7

                Regards,
                Alexey!

                Comment

                Working...