Hi,
I have finally got the Zabbix server starting up and I am now trying to get the front end running. I have copied the PHP files to a directory wher e my Apache2 server can reach them /var/www/zabbix/
I try to browse to the site and get the following error:
Fatal error: Call to undefined function: mysql_pconnect() in var/www/zabbix/include/db.inc.php on line 38
line 38 is:
$DB=mysql_pconnect($DB_SERVER,$DB_USER,$DB_PASSWOR D);
I searched the forum and found a post that suggested I check the PHP.ini file.
I have just checked the PHP.ini file and I dont see anything wrong. I am a complete newb to Linux so I may have missed something.
<?php
// DATABASE CONFIGURATION
// $DB_TYPE ="ORACLE";
// $DB_TYPE ="POSTGRESQL";
$DB_TYPE ="MYSQL";
$DB_SERVER ="localhost";
$DB_DATABASE ="zabbix";
$DB_USER ="zabbix";
$DB_PASSWORD ="zabbix";
// END OF DATABASE CONFIGURATION
global $USER_DETAILS;
if($DB_TYPE == "MYSQL")
{
$DB=mysql_connect($DB_SERVER,$DB_USER,$DB_PASSWORD );
if(!mysql_select_db($DB_DATABASE))
{
echo "Error connecting to database [".mysql_error()."]";
exit;
I have finally got the Zabbix server starting up and I am now trying to get the front end running. I have copied the PHP files to a directory wher e my Apache2 server can reach them /var/www/zabbix/
I try to browse to the site and get the following error:
Fatal error: Call to undefined function: mysql_pconnect() in var/www/zabbix/include/db.inc.php on line 38
line 38 is:
$DB=mysql_pconnect($DB_SERVER,$DB_USER,$DB_PASSWOR D);
I searched the forum and found a post that suggested I check the PHP.ini file.
I have just checked the PHP.ini file and I dont see anything wrong. I am a complete newb to Linux so I may have missed something.
<?php
// DATABASE CONFIGURATION
// $DB_TYPE ="ORACLE";
// $DB_TYPE ="POSTGRESQL";
$DB_TYPE ="MYSQL";
$DB_SERVER ="localhost";
$DB_DATABASE ="zabbix";
$DB_USER ="zabbix";
$DB_PASSWORD ="zabbix";
// END OF DATABASE CONFIGURATION
global $USER_DETAILS;
if($DB_TYPE == "MYSQL")
{
$DB=mysql_connect($DB_SERVER,$DB_USER,$DB_PASSWORD );
if(!mysql_select_db($DB_DATABASE))
{
echo "Error connecting to database [".mysql_error()."]";
exit;
Comment