Ad Widget

Collapse

Zabbix-php in dependencies pulls Apache. Why does he need me?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dictonary
    Junior Member
    • Feb 2017
    • 17

    #1

    Zabbix-php in dependencies pulls Apache. Why does he need me?

    Hello.
    I'm trying to deploy zabbix-frontend-php from Zabbix 4.0.
    In ubuntu 18.04, the pack pulls the Apache. I do not need an apache, I have nginx.

    Code:
     apt --no-install-recommends install zabbix-frontend-php
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following additional packages will be installed:
      apache2-bin libapache2-mod-php libapache2-mod-php7.2
    Suggested packages:
      www-browser apache2-doc apache2-suexec-pristine | apache2-suexec-custom
    Recommended packages:
      apache2
    The following NEW packages will be installed:
      apache2-bin libapache2-mod-php libapache2-mod-php7.2 zabbix-frontend-php
    0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
    In general, it was originally so, well, I decided to try to put one by one without recommendations.


    HTML Code:
     apt --no-install-recommends install zabbix-frontend-php
    
    Reading package lists... Done
    
    Building dependency tree
    
    Reading state information... Done
    
    The following additional packages will be installed:
    
      apache2-bin libapache2-mod-php libapache2-mod-php7.2 libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libasn1-8-heimdal libgdbm-compat4 libgssapi3-heimdal
    
      libhcrypto4-heimdal libheimbase1-heimdal libheimntlm0-heimdal libhx509-5-heimdal libkrb5-26-heimdal libldap-2.4-2 libldap-common liblua5.2-0 libnghttp2-14 libperl5.26 libroken18-heimdal
    
      libsasl2-2 libsasl2-modules-db libwind0-heimdal perl perl-modules-5.26 php-bcmath php-gd php-ldap php-mbstring php-mysql php-xml php7.2-bcmath php7.2-gd php7.2-ldap php7.2-mbstring
    
      php7.2-mysql php7.2-xml ttf-dejavu-core
    
    Suggested packages:
    
      www-browser apache2-doc apache2-suexec-pristine | apache2-suexec-custom php-pear perl-doc libterm-readline-gnu-perl | libterm-readline-perl-perl make
    
    Recommended packages:
    
      apache2 libsasl2-modules
    
    The following NEW packages will be installed:
    
      apache2-bin libapache2-mod-php libapache2-mod-php7.2 libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libasn1-8-heimdal libgdbm-compat4 libgssapi3-heimdal
    
      libhcrypto4-heimdal libheimbase1-heimdal libheimntlm0-heimdal libhx509-5-heimdal libkrb5-26-heimdal libldap-2.4-2 libldap-common liblua5.2-0 libnghttp2-14 libperl5.26 libroken18-heimdal
    
      libsasl2-2 libsasl2-modules-db libwind0-heimdal perl perl-modules-5.26 php-bcmath php-gd php-ldap php-mbstring php-mysql php-xml php7.2-bcmath php7.2-gd php7.2-ldap php7.2-mbstring
      php7.2-mysql php7.2-xml ttf-dejavu-core zabbix-frontend-php
  • Dictonary
    Junior Member
    • Feb 2017
    • 17

    #2
    How to get rid of Apache in dependencies?

    Comment

    • Dictonary
      Junior Member
      • Feb 2017
      • 17

      #3
      Actuality

      Comment

      • Atsushi
        Senior Member
        • Aug 2013
        • 2028

        #4
        It seems that dependencies are set so that packages are also installed automatically, so that the package can be run even if a beginner installs it.
        It is not possible to remove the dependency on apache2 from the package.

        If you do not want to install apache2, please create your own package or install from source.

        Comment

        • Dictonary
          Junior Member
          • Feb 2017
          • 17

          #5
          And if I need support packages from developers?
          I do not want to serve as a maintainer and monitor security
          Last edited by Dictonary; 18-12-2018, 08:19.

          Comment


          • Atsushi
            Atsushi commented
            Editing a comment
            There is also a way to choose not to start even if apache2 is installed.
        • Dictonary
          Junior Member
          • Feb 2017
          • 17

          #6
          This is not a solution.
          In the previous version 3.0 of the zabbix apache was not an urgent need, and then suddenly it began to "shove"

          Comment

          • dimir
            Zabbix developer
            • Apr 2011
            • 1080

            #7
            First, we cannot support all the web servers that are offered by GNU/Linux distribution, nginx is not the only alternative to Apache. Secondly, we never supported nginx in packages, even in version 3.0 . Don't believe me? Run the following:
            Code:
            mkdir /tmp/foo
            cd /tmp/foo
            wget http://repo.zabbix.com/zabbix/3.0/debian/pool/main/z/zabbix/zabbix-frontend-php_3.0.0-1%2Bjessie_all.deb
            ar x zabbix-frontend-php_3.0.0-1+jessie_all.deb
            tar xvf control.tar.gz
            grep Depends control
            You will see the following output:
            Code:
            Depends: apache2 | httpd, php5, php5-mysql | php5-pgsql, php5-gd, php5-ldap, ttf-dejavu-core | ttf-japanese-gothic
            This means zabbix-frontend-php 3.0 depends on either apache2 or httpd (which is a vritual package providing apache2).

            Comment

            • Colttt
              Senior Member
              Zabbix Certified Specialist
              • Mar 2009
              • 878

              #8
              I guess when you use

              Code:
              apt install zabbix-frontend-php nginx
              it doen't install apache
              Debian-User

              Sorry for my bad english

              Comment

              • Dictonary
                Junior Member
                • Feb 2017
                • 17

                #9
                Originally posted by Colttt
                I guess when you use

                Code:
                apt install zabbix-frontend-php nginx
                it doen't install apache
                Add repo?
                Ubuntu 18.04?

                Comment

                Working...