Ad Widget

Collapse

Help installing Zabbix 3 on Ubuntu 16.04 (Xenial)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kevster
    Junior Member
    • May 2016
    • 3

    #1

    Help installing Zabbix 3 on Ubuntu 16.04 (Xenial)

    Hi,

    I am trying to install Zabbix 3 on a clean Ubuntu 16.04 LTS machine and apt-get is giving me the message that it cannot install PHP5 (which I cannot find anywhere).

    I have already installed the LAMP stack (Apache2, MySQL5, PHP7) and tested it. I tried downgrading PHP7 to PHP 5.5 (the lowest version I can find) but the Zabbix3 installer wants PHP5, not 5.5 or 5.6.

    Any suggestions on how to get past this problem would be greatly appreciated.

    Thanks, Kevin.
  • tburrell
    Junior Member
    • Dec 2013
    • 5

    #2
    You are not alone.

    Comment

    • kevster
      Junior Member
      • May 2016
      • 3

      #3
      I got around the problem by falling back to Ubuntu 14.04 LTS. It has the correct versions of PHP and everything is working OK now.

      I guess it will take some time for all the packages to be updated for 16.04 and there is no real reason I needed to be on the absolute latest so ...

      Comment

      • jly
        Junior Member
        • Jun 2016
        • 1

        #4
        I got Zabbix 3.0 successfully installed on Ubuntu 16.04 from the binary distribution without too much hassle, but it does require some custom procedure.

        The first issue is PHP - you must have PHP5 installed for the Zabbix apt packages to install. Ubuntu 16.04 ships with 7 as the default which doesn't work. Fortunately the process is pretty easy to fix. Use the installation instructions to install the 'php5-compat' version here: http://askubuntu.com/questions/10940...till-supported

        In my system, I have nothing else that needs php so I didn't even install the default php7, but it should be possible to install multiple different versions if you need. The php5-compat version installs 5.6 which is the same as Ubuntu 14.04.

        The second problem you will run into is that the Zabbix frontend requires the package 'libmysqlclient18', which works with older MySQL versions. Ubuntu 16.04 no longer has this package and uses libmysqlclient20, instead. MySQL 7.0 should work, but it doesn't work without more fixes. Unfortunately I didn't go down this path, instead I just installed the PostgreSQL version which works fine with the default on Ubuntu 16.04 (9.5.3).

        Good luck - hopefully they distribute updated binaries in the future.

        Comment

        • kevster
          Junior Member
          • May 2016
          • 3

          #5
          Help installing Zabbix 3 on Ubuntu 16.04 (Xenial)

          Exactly what I needed, thanks jly!

          Comment

          • jackie
            Member
            • Jan 2016
            • 37

            #6
            jly, I was curious about how to install zabbix 3.0 on Ubuntu 16.04 from the binaries, as I'm not sure how that is done. Is this what you are referring to: https://www.unixmen.com/how-to-insta...and-ubuntu-16/

            Also wondering if that would cause any problems on future upgrades to zabbix on the Ubuntu server?

            Thanks for all the great info!
            Last edited by jackie; 28-06-2016, 22:42.

            Comment

            • kiwwi
              Junior Member
              • Jan 2015
              • 4

              #7
              Until Zabbix 3.0 for Ubuntu Xenial is not officialy supported by Zabbix LLC, you can try install zabbix-server-mysql or zabbix-frontend-php package from our repo. The are orginal package files from Zabbix 3.0 trusty repo, compiled on Ubuntu 16.04, with actual dependencies (php7, libmysql20, ...).

              Code:
              deb http://apt.bonet.sk xenial-stable main

              Comment

              • mveinot
                Junior Member
                • Aug 2016
                • 1

                #8
                Force depends

                Hi all,

                Just stumbled across this thread while updating to Zabbix 3.0.4 this morning. Wanted to let you know that I was able to arrive at a fully functional install using the standard PHP7 packages by simply installing zabbix with --force-deps to ignore the PHP5 requirement.

                Everything seems to be working fine.

                Comment

                • wilson.waters
                  Junior Member
                  • Dec 2012
                  • 15

                  #9
                  For anyone building from source and having trouble after upgrading to Ubuntu 16.04. I had to first recompile zabbix then install the following packages

                  Code:
                  sudo apt-get install php7 libapache2-mod-php php-mysql php-bcmath php-mbstring php-gd
                  You might also need to install the systemd startup scripts available here as 16.04 won't use the old upstart /etc/init/ scripts.
                  Last edited by wilson.waters; 25-08-2016, 08:36.

                  Comment

                  • advanm
                    Junior Member
                    • Dec 2012
                    • 9

                    #10
                    install with --force debt

                    Can anone explain how to install with the -force debt command how to install zabbix ?

                    i'n not so expienced on installing zabbix. I only once installed the 1.8 version
                    on Ubuntu 12.04 with php5

                    Comment

                    • vazhnov
                      Junior Member
                      • Oct 2016
                      • 7

                      #11
                      Install Zabbix 3.0 in Ubuntu 16.04 xenial with PostgreSQL

                      Here is the short instruction: https://gist.github.com/vazhnov/fcb4...6793ef710b5a28

                      Comment

                      • danil_
                        Junior Member
                        • Oct 2016
                        • 7

                        #12
                        I was eager to install Zabbix 3.2 in Ubuntu Server 16.04 using official/standard procedures as much as possible.

                        Online manual here says that supported Ubuntu version is 14.04.

                        BUT after exploring the official repo-website of Zabbix (thank you admins for not turning Off the directory listings!) I found the following magic folder:


                        And it contains the necessary XENIAL-package which will install the repo-sources!!


                        and will allowed me to install 3.2 version (server, agent, web) WITHOUT ANY TROUBLE simply with aptitude in 16.04 and to run it fine!

                        So, I had just to do all the described steps in the manual, but only using the URL I supplied for installing the initial apt-sources.

                        If it's ready for use in production, we should ask web-masters or manual-authors to update the page

                        Comment

                        • mukul1131
                          Junior Member
                          • Oct 2017
                          • 1

                          #13
                          Install Zabbix Server on Ubuntu 16.04 help

                          Need help in this regard.

                          Comment

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

                            #14
                            Originally posted by mukul1131
                            Need help in this regard.
                            What actually you want to get from community?
                            Describe your problem:
                            1. You can't install on Ubuntu?
                            2. Which version you are trying to install ?
                            3. What kind of error you are receiving ?
                            4. Compiling or using apt ?
                            5. Any other additional information would be highly appreciated!

                            Otherwise you will receive the similar-style reply like - "This is help - here you go"

                            Use the manual: https://www.zabbix.com/documentation...y_installation

                            Regards,
                            Alex!

                            Comment

                            • Julio K
                              Junior Member
                              • Sep 2017
                              • 1

                              #15
                              This doc is outdated. Please check the packages at http://repo.zabbix.com/zabbix/3.4/ub...abbix-release/

                              And update the docs.

                              Comment

                              Working...