Ad Widget

Collapse

Only PostgreSQL Available in Frontend PHP Configurator

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • stephenb
    Junior Member
    • Nov 2012
    • 2

    #1

    Only PostgreSQL Available in Frontend PHP Configurator

    Hi

    I installed Zabbix 2.0.3 from source on to an Ubuntu 12.04 machine. Backend appears to be fine. Connects correctly to backend mysql database which was selected when I ran ./configure with --with-mysql.

    I copied the contents of <downloadDir>/zabbix-2.0.3/frontends/php to /var/www/zabbix

    I can run http://localhost/zabbix/index.php.

    On the "2. Check of pre-requisites" page, the PHP databases support is set to PosgreSQL. I need mysql. How can I change this?

    Thanks in hope!

    stephenb
  • soulhunter
    Junior Member
    • Aug 2009
    • 22

    #2
    Well, you could give a try to these packages:



    I'm using them, although I'm using PostgreSQL backend (I have not tried MySQL with these packages, but I guess you could try)

    Comment

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

      #3
      you must install php-mysql
      Debian-User

      Sorry for my bad english

      Comment

      • stephenb
        Junior Member
        • Nov 2012
        • 2

        #4
        Solution Found!

        Thanks to soulhunter and ShadOw for your quick responses to my request for help.

        I am not ready to give up on mysql yet.

        I checked for the package php-mysql and found php5-mysql which I have installed (apt-get install php5-mysql). Then restarted apache2 (service apache2 restart). Then launched http://localhost/zabbix/index.php again. Web app now allows me to correctly configure mysql as my database choice and authenticates properly to the database.

        Thanks once again for the swift assistance.

        StephenB

        Comment

        • soulhunter
          Junior Member
          • Aug 2009
          • 22

          #5
          No problem!

          I suggested you the packages, because these are maintained, and on update, you would get updates directly (instead of having to recompile).

          And yes: those packages seems to support MySQL, but I prefer PostgreSQL.

          Comment

          • eugenefvdm
            Junior Member
            • Jun 2025
            • 1

            #6
            I'm a Debian 12 user, and the installation wizard only had PostgreSQL listed.

            This was the solution:

            Code:
            root@zabbix:~# apt install php8.2-mysql-pdo
            root@zabbix:~# systemctl restart zabbix-server zabbix-agent2 apache2
            Refresh browser.

            Comment

            Working...