Ad Widget

Collapse

Zabbix Fresh installation defaults to php7.4 and MariaDB!?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nodecores
    Junior Member
    • Jan 2021
    • 5

    #1

    Zabbix Fresh installation defaults to php7.4 and MariaDB!?

    Why does the installation repos defaults to php7.4 and MariaDB!?

    I might want to use php 8.1 and MySQL 8 Percona

    Please advise
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    You may want to read the pinned post about what information to provide when asking questions in the forums. You haven't provided even basic information about your environment (what version of Zabbix? What OS and version?).

    Have you read the installation documentation, including the system requirements for whatever version of Zabbix it is that you're considering installing? The System requirements documentation generally does a pretty good job of laying out what versions are supported for various dependencies.

    Comment

    • nodecores
      Junior Member
      • Jan 2021
      • 5

      #3
      tim.mooney Any brand new installation, and obviously I am referring to 6.2 considering I mentioned PHP 8.1

      OS: Debian 11

      Comment

      • Markku
        Senior Member
        Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
        • Sep 2018
        • 1781

        #4
        Originally posted by nodecores

        OS: Debian 11
        See https://packages.debian.org/bullseye/php, it should answer your question why installing Zabbix server on Debian 11 installs PHP 7.4 and not something else.

        Regarding MariaDB, you can prevent installing it by adding "-mariadb-server" (or "mariadb-server-"?) in the apt install command. Or, just purge MariaDB installation after installing Zabbix (this is actually easier, just apt purge everything that you don't need).

        If you feel the normal installation should be made without any database at all (= make installation harder for beginners), you are free to open an enhancement request in https://support.zabbix.com.

        Markku
        Last edited by Markku; 19-07-2022, 08:00.

        Comment

        • tim.mooney
          Senior Member
          • Dec 2012
          • 1427

          #5
          Originally posted by nodecores
          obviously I am referring to 6.2 considering I mentioned PHP 8.1
          No, that is not obvious. Plenty of people on these forums try to install a version of Zabbix with a version of PHP that is not supported. None of us know if you're making that same mistake or not.

          Markku has already covered why PHP 7.4 is the default for the OS and version you're using: because that's what most people with Debian 11 are going to have.

          As far as MariaDB, many Linux distros have moved to MariaDB as their default MySQL-like database. Most of them that I'm familiar with are also still providing MySQL, but it's not the default for the distro. With that in mind, MariaDB is a sensible default for distros where that's true.

          For ultimate flexibility and configuration tailored to your choices, you could take the default Zabbix source package and modify and rebuild custom packages with your preferred dependencies.

          Comment

          Working...