PHP Fatal error: Call to undefined function: mysql_connect() in /home/apoc/public_html/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 338
[Php Info]
>>php -i |grep mysql
...Configure Command => './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-gd' '--with-xml' '--with-bcmath' '--enable-calendar' '--enable-ftp' '--enable-magic-quotes' '--with-mysql' '--enable-discard-path' '--with-pear' '--enable-sockets' '--enable-track-vars' '--enable-versioning' '--with-zlib' '--with-jpeg-dir=/usr/lib'
mysql
More configs for mysql
>>php -m
Apache version 1.3.33 (Unix)[PHP Modules]
calendar
ctype
ftp
gd
mysql
overload
pcre
posix
session
sockets
standard
tokenizer
xml
zlib
[Zend Modules]
PHP version 4.3.10
MySQL version 4.0.25-standard
I currently use:
mysql_connect(localhost,$username,$password);
In many parts of my server at it works fine. All the rest of Cacti works fine. Even have blank graphs.
Any help?