Ad Widget

Collapse

zabbix frontend install error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • avecsi
    Member
    • Nov 2013
    • 40

    #1

    zabbix frontend install error

    Hi All,


    uname -a
    Linux 3.11.0-18-generic #32~precise1-Ubuntu SMP Thu Feb 20 17:52:10 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

    I follow the manual:
    Zabbix 2.2 for Ubuntu 12.04 LTS:
    # wget http://repo.zabbix.com/zabbix/2.2/ub...recise_all.deb
    # dpkg -i zabbix-release_2.2-1+precise_all.deb
    # apt-get update

    sudo apt-get install -f zabbix-frontend-php
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    zabbix-frontend-php is already the newest version.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    1 not fully installed or removed.
    After this operation, 0 B of additional disk space will be used.
    Do you want to continue [Y/n]? y
    Setting up zabbix-frontend-php (1:2.2.2-1+precise) ...
    Syntax error on line 13 of /etc/apache2/conf.d/zabbix:
    Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration
    Action 'configtest' failed.
    The Apache error log may have more information.
    ...fail!
    invoke-rc.d: initscript apache2, action "restart" failed.
    dpkg: error processing zabbix-frontend-php (--configure):
    subprocess installed post-installation script returned error exit status 1
    Errors were encountered while processing:
    zabbix-frontend-php
    E: Sub-process /usr/bin/dpkg returned an error code (1)


    I had to change the /etc/apache2/conf.d/zabbix file:
    # php_value max_execution_time 300
    # php_value memory_limit 128M
    # php_value post_max_size 16M
    # php_value upload_max_filesize 2M
    # php_value max_input_time 300
    # php_value date.timezone Europe/Riga


    php -v
    PHP 5.3.10-1ubuntu3.10 with Suhosin-Patch (cli) (built: Feb 28 2014 23:14:25)
    Copyright (c) 1997-2012 The PHP Group
    Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies

    It is strange because I had another box where there was no problem
  • avecsi
    Member
    • Nov 2013
    • 40

    #2
    cat /var/log/apache2/error.log
    [Thu Mar 27 10:34:39 2014] [notice] Apache/2.2.22 (Ubuntu) configured -- resuming normal operations
    [Thu Mar 27 10:36:28 2014] [notice] caught SIGTERM, shutting down
    [Thu Mar 27 10:36:53 2014] [notice] Apache/2.2.22 (Ubuntu) configured -- resuming normal operations
    [Thu Mar 27 10:41:06 2014] [notice] caught SIGTERM, shutting down
    [Thu Mar 27 10:41:07 2014] [notice] Apache/2.2.22 (Ubuntu) configured -- resuming normal operations
    [Thu Mar 27 10:49:49 2014] [error] [client ] File does not exist: /var/www/favicon.ico
    [Thu Mar 27 10:49:49 2014] [error] [client ] File does not exist: /var/www/favicon.ico
    [Thu Mar 27 10:50:29 2014] [notice] caught SIGTERM, shutting down
    [Thu Mar 27 10:50:30 2014] [notice] Apache/2.2.22 (Ubuntu) configured -- resuming normal operations
    [Thu Mar 27 10:58:29 2014] [notice] caught SIGTERM, shutting down
    [Thu Mar 27 10:59:02 2014] [notice] Apache/2.2.22 (Ubuntu) configured -- resuming normal operations


    I cannot open the zabbix install site if I comment the config file

    Comment

    • steveboyson
      Senior Member
      • Jul 2013
      • 582

      #3
      Are you sure you have apache's php module installed?

      Code:
      dpkg -l php*|grep ^ii|grep php5
      ii  php5                                   5.3.10-1ubuntu3.10                              server-side, HTML-embedded scripting language (metapackage)
      ii  php5-auth-pam                          0.4-10ubuntu1                                   A PHP5 extension for PAM authentication
      ii  php5-cli                               5.3.10-1ubuntu3.10                              command-line interpreter for the php5 scripting language
      ii  php5-common                            5.3.10-1ubuntu3.10                              Common files for packages built from the php5 source
      ii  php5-gd                                5.3.10-1ubuntu3.10                              GD module for php5
      ii  php5-imap                              5.3.5-0ubuntu2                                  IMAP module for php5
      ii  php5-ldap                              5.3.10-1ubuntu3.10                              LDAP module for php5
      ii  php5-mcrypt                            5.3.5-0ubuntu1                                  MCrypt module for php5
      ii  php5-mysql                             5.3.10-1ubuntu3.10                              MySQL module for php5
      ii  php5-pgsql                             5.3.10-1ubuntu3.10                              PostgreSQL module for php5
      ii  php5-sqlite                            5.3.10-1ubuntu3.10                              SQLite module for php5
      ii  php5-suhosin                           0.9.33-1                                        advanced protection module for php5

      Comment

      • tas
        Junior Member
        • Mar 2014
        • 2

        #4
        This is what I'd expect to happen when a CGI version of PHP is used instead of the apache module, so php_value isn't a known directive. You could catch this by putting the settings in a <IfModule> block, but that would silently ignore them if the apache module isn't used which could be problematic. Personally, I prefer to get a warning. PHP supports .user.ini files since v5.3.0, so if these shouldn't (or can't) be set globally, they can be commented out like you did and put in a .user.ini in the document root (using php.ini and not php_value syntax of course).

        Comment

        • avecsi
          Member
          • Nov 2013
          • 40

          #5
          Hi,

          Code:
          dpkg -l php*|grep ^ii|grep php5
          ii  php5                             5.3.10-1ubuntu3.10                server-side, HTML-embedded scripting language (metapackage)
          ii  php5-common                      5.3.10-1ubuntu3.10                Common files for packages built from the php5 source
          ii  php5-fpm                         5.3.10-1ubuntu3.10                server-side, HTML-embedded scripting language (FPM-CGI binary)
          ii  php5-gd                          5.3.10-1ubuntu3.10                GD module for php5
          ii  php5-pgsql                       5.3.10-1ubuntu3.10                PostgreSQL module for php5
          ii  php5-suhosin                     0.9.33-1                          advanced protection module for php5
          apache2ctl -M
          Loaded Modules:
          core_module (static)
          log_config_module (static)
          logio_module (static)
          mpm_worker_module (static)
          http_module (static)
          so_module (static)
          alias_module (shared)
          auth_basic_module (shared)
          authn_file_module (shared)
          authz_default_module (shared)
          authz_groupfile_module (shared)
          authz_host_module (shared)
          authz_user_module (shared)
          autoindex_module (shared)
          cgid_module (shared)
          deflate_module (shared)
          dir_module (shared)
          env_module (shared)
          mime_module (shared)
          negotiation_module (shared)
          reqtimeout_module (shared)
          setenvif_module (shared)
          status_module (shared)
          Syntax OK
          Last edited by avecsi; 28-03-2014, 18:20.

          Comment

          • avecsi
            Member
            • Nov 2013
            • 40

            #6
            Solution:

            sudo apt-get install apache2

            sudo apt-get install php5-pgsql php5-suhosin

            or mysql what do you need

            sudo apt-get install libapache2-mod-php5

            apache2ctl -M to check if php module is loaded, if not restart apache2

            sudo apt-get install zabbix-frontend-php

            no issue this time

            Thanks all your help

            Comment

            Working...