zabbix-server-pgsql should depend on php5-pgsql

Bug #761730 reported by tavasti
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
zabbix (Debian)
New
Undecided
Unassigned
zabbix (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

After installing zabbix-server-pgsql and zabbix-frontend-php, access to zabbix prints out to apache error log:

PHP Fatal error: Call to undefined function pg_connect() in /usr/share/zabbix/include/db.inc.php on line 81

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: zabbix-server-pgsql 1:1.8.1-1ubuntu1
ProcVersionSignature: Ubuntu 2.6.32-30.59-server 2.6.32.29+drm33.13
Uname: Linux 2.6.32-30-server x86_64
Architecture: amd64
Date: Fri Apr 15 17:50:23 2011
InstallationMedia: Ubuntu-Server 10.04.2 LTS "Lucid Lynx" - Release amd64 (20110211.1)
ProcEnviron:
 SHELL=/bin/bash
 LANG=en_US.UTF-8
SourcePackage: zabbix

Revision history for this message
tavasti (tavasti) wrote :
Revision history for this message
Tonimir Kisasondi (tonimir-kisasondi) wrote :

Install php5-pgsql and restart apache2

Revision history for this message
tavasti (tavasti) wrote :

Database config is done on install time, and that's why package should depend on php5-pgsql. Package doesn't work like it should without php5-pgsql

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in zabbix (Ubuntu):
status: New → Confirmed
Revision history for this message
mlx (myxal-mxl) wrote :

Sorry if I'm musguided it this, but zabbix-server does not, and should not depend on php-pgsql, it's the zabbix-frontend-php, that should, and does depend on php5-pgsql OR php5-mysql.
The whole problem here is that apt installs the mysql variant, when it should use the pgsql version.

Revision history for this message
Andreas Fischer (bantu) wrote :

I agree with the previous poster.

If you are connecting to a zabbix-server-pgsql, you want zabbix-frontend-php and php5-pgsql.
If you are connecting to a zabbix-server-mysql, you want zabbix-frontend-php and php5-mysql.
Could make more packages, i.e. zabbix-frontend-php-pgsql and zabbix-frontend-php-mysql.

Doing what the ticket description says is certainly wrong because the server and frontend do not have to be installed on the same system.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.