I hope this hasn't been covered yet.
I have a fresh install of RHEL 4, installed: 2.6.9-42.0.2.ELsmp i686 i386 GNU/Linux
-cacti-0.8.6h.tar.gz
-MySQL-server-standard-5.0.24-0.rhel4
-rrdtool-1.0.50-3.el4.rf
-net-snmp-5.1.2-11.EL4.7
-php-4.3.9-3.18
php-ldap-4.3.9-3.18
php-snmp-4.3.9-3.18
php-pear-4.3.9-3.18
php-mysql-4.3.9-3.18
But when I go to http://localhost/cacti with my browser it is a blank page and I get this in /var/log/httpd/error_log:
[client 127.0.0.1] PHP Fatal error: Call to undefined function: mysql_pconnect() in /var/www/html/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 355
Any suggestions?
Jeff
Blank page - Solved
Moderators: Developers, Moderators
Blank page - Solved
Last edited by jcoulam on Thu Oct 12, 2006 3:48 pm, edited 2 times in total.
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
Hi
did you create the MySQL database for Cacti ?
did you create the MySQL database for Cacti ?
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
Blank Graph
Hello,
Ok try these 2 things. If you did create your database already in mysql, make sure you check the config.php under /includes. Make sure they are using the correct username and password. If you have created the db and the config file is correct look for the db-settings.php file under /includes as well and make sure it is set up the correct way with the correct username and password.
Hope this helps
Ok try these 2 things. If you did create your database already in mysql, make sure you check the config.php under /includes. Make sure they are using the correct username and password. If you have created the db and the config file is correct look for the db-settings.php file under /includes as well and make sure it is set up the correct way with the correct username and password.
Hope this helps
"Keep away from people who try to belittle your ambitions. Small people always do that, but the really great make you feel that you, too, can
become great."
become great."
.
Thanks for the replys.
1. I did create the mysql database, and I can login from the command line using the username and password
2. I verified the /include/config.php and it's good
3. I don't have a file called db-settings.php.. Should I?
4. /etc/php.ini - Where in this file should it specify mysql.so? None of my working installs of cacti have that listed. And I do have /usr/lib/php4/mysql.so
If I su - cactiuser and run php poller.php I get:
sh: -: command not found
Then it hangs there and never ends
Any other ideas?
1. I did create the mysql database, and I can login from the command line using the username and password
2. I verified the /include/config.php and it's good
3. I don't have a file called db-settings.php.. Should I?
4. /etc/php.ini - Where in this file should it specify mysql.so? None of my working installs of cacti have that listed. And I do have /usr/lib/php4/mysql.so
If I su - cactiuser and run php poller.php I get:
sh: -: command not found
Then it hangs there and never ends
Any other ideas?
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
As to MySQL, found in /etc/php.ini
and /etc/php.d/mysql.ini reads
Reinhard
Code: Select all
;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;
;
; If you wish to have an extension loaded automatically, use the following
; syntax:
;
; extension=modulename.extension
;
; For example:
;
; extension=msql.so
;
; Note that it should be the name of the module only; no directory information
; needs to go here. Specify the location of the extension with the
; extension_dir directive above.
;;;;
; Note: packaged extension modules are now loaded via the .ini files
; found in the directory /etc/php.d; these are loaded by default.
;;;;
Code: Select all
cat /etc/php.d/mysql.ini
; Enable mysql extension module
extension=mysql.so
Who is online
Users browsing this forum: No registered users and 4 guests