I upgraded my Debian 8 to 9, with zabbix-server installed. After upgrade I reinstalled zabbix-frontend-php. I'm trying to reconfigure frontend and in step "Configure DB connection" there is only MySQL as a database type. How can I connect it to Postgresql?
Asked
Active
Viewed 1,909 times
2 Answers
3
It looks like your PHP doesn't support PostgreSQL. Try to install package php-pgsql
(php5-pgsql
, ...) and then restart your web server.

Jan Garaj
- 879
- 1
- 7
- 15
-
php-pgsql is already installed and there is no php-mysql package installed – 29ru Jul 24 '17 at 07:04
2
As Jan Garaj said you need to install php-pgsql
. But you also want to uncomment
extension=pdo_pgsql.so
extension=pgsql.so
in /etc/php/php.ini
(or locate php.ini
). If you're using nginx
and php-fpm
, don't forget to restart both.

deathangel908
- 173
- 1
- 2
- 8