Fatal error: Call to undefined function: db_connect() in...
Moderators: Developers, Moderators
Fatal error: Call to undefined function: db_connect() in...
Hi, I can't get Cacti to work on my brand new SuSE 9.2.
I installed cacti and applied all patches etc. used the install documentation, mysql is running and "mysql -u cactiuser -p cacti" works after entering the cacti password.
When I go to the url http://stats/cacti/ it comes up with:
Fatal error: Call to undefined function: db_connect() in /srv/www/htdocs/cacti/lib/database.php on line 110
I can't find out what this is...
I have these versions of packages:
# rpm -qa | egrep "apache|httpd|php|mysql|snmp"
apache2-2.0.50-7.2
apache2-mod_fastcgi-2.4.2-2
apache2-mod_perl-1.99_12_20040302-38
apache2-mod_php4-4.3.8-8.3
apache2-prefork-2.0.50-7.2
apache2-worker-2.0.50-7.2
mysql-4.0.21-4.2
mysql-Max-4.0.21-4
mysql-client-4.0.21-4
mysql-shared-4.0.21-4
net-snmp-5.1.2-3
php4-4.3.8-8.3
php4-bz2-4.3.8-8
php4-calendar-4.3.8-8
php4-ctype-4.3.8-8
php4-exif-4.3.8-8
php4-gd-4.3.8-8
php4-gettext-4.3.8-8
php4-iconv-4.3.8-8
php4-mhash-4.3.8-8
php4-mime_magic-4.3.8-8
php4-mysql-4.3.8-8
php4-session-4.3.8-8
php4-snmp-4.3.8-8
php4-zlib-4.3.8-8
I also seached the forum, but I can't find the answer Please help.
Thanx
Ralf.
I installed cacti and applied all patches etc. used the install documentation, mysql is running and "mysql -u cactiuser -p cacti" works after entering the cacti password.
When I go to the url http://stats/cacti/ it comes up with:
Fatal error: Call to undefined function: db_connect() in /srv/www/htdocs/cacti/lib/database.php on line 110
I can't find out what this is...
I have these versions of packages:
# rpm -qa | egrep "apache|httpd|php|mysql|snmp"
apache2-2.0.50-7.2
apache2-mod_fastcgi-2.4.2-2
apache2-mod_perl-1.99_12_20040302-38
apache2-mod_php4-4.3.8-8.3
apache2-prefork-2.0.50-7.2
apache2-worker-2.0.50-7.2
mysql-4.0.21-4.2
mysql-Max-4.0.21-4
mysql-client-4.0.21-4
mysql-shared-4.0.21-4
net-snmp-5.1.2-3
php4-4.3.8-8.3
php4-bz2-4.3.8-8
php4-calendar-4.3.8-8
php4-ctype-4.3.8-8
php4-exif-4.3.8-8
php4-gd-4.3.8-8
php4-gettext-4.3.8-8
php4-iconv-4.3.8-8
php4-mhash-4.3.8-8
php4-mime_magic-4.3.8-8
php4-mysql-4.3.8-8
php4-session-4.3.8-8
php4-snmp-4.3.8-8
php4-zlib-4.3.8-8
I also seached the forum, but I can't find the answer Please help.
Thanx
Ralf.
I can't find a package for that, but I have the php4 (core files) package installed which says:
Can I somehow verify that I have what I need?suse wrote:This package contains the PHP4 core files, including PHP binary (CLI) and PHP configuration (php.ini). This package must be installed in order to use PHP. Additionally, extension modules and server modules (e.g. for Apache) may be installed.
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Removing that patch shouldn't make a difference..
Can you email me your /etc/apache2/httpd.conf file?
I'm curious why this error is showing up all of a sudden.
Can you email me your /etc/apache2/httpd.conf file?
I'm curious why this error is showing up all of a sudden.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Doh Why didn't I think of that...
Anyhiew... IT WORKS!
After replacing the patched config.php with the original from the distribution and changing the password to mach mine, I'm now presented with a "Cacti Installation Guide" introduction.
Rony, are you still going to work out why the patched version doesn't work with my apache2? Would be nice, but if you have better things to do, I understand.
Thanx in advance for all the help!
Ralf.
Anyhiew... IT WORKS!
After replacing the patched config.php with the original from the distribution and changing the password to mach mine, I'm now presented with a "Cacti Installation Guide" introduction.
Rony, are you still going to work out why the patched version doesn't work with my apache2? Would be nice, but if you have better things to do, I understand.
Thanx in advance for all the help!
Ralf.
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Um, guess I need to do more testing....
Doesn't make sense..... Unless the patch is corrupted? Hey, I can be wrong sometimes.. I will investigate it further tonight.
Sometimes I'm a little hard headed...
Doesn't make sense..... Unless the patch is corrupted? Hey, I can be wrong sometimes.. I will investigate it further tonight.
Sometimes I'm a little hard headed...
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Who is online
Users browsing this forum: No registered users and 1 guest