[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Cacti Problems



On 5/13/05, Robert Vangel <vangelr@rfgt.net> wrote:
> Stephen Le wrote:
> > I'm running Debian-testing and I've been unable to get Cacti to
> > produce any graphs. When I manually attempt to execute poller.php, I
> > get the following error:
> >
> > Fatal error: Call to undefined function:  mysql_connect() in
> > /usr/share/cacti/site/lib/adodb/drivers/adodb-mysql.inc.php on line
> > 339
> >
> > I've verified that I have the latest cacti, php4-mysql, libphp-adodb,
> > mysql-server, and etc packages. Does anybody know how to get Cacti to
> > work?
> >
> > Thanks.
> >
> 
> run `dpkg-reconfigure -plow php4-mysql' as root and make sure you select
> Yes to the "Should MySQL be added to /etc/php4/(cli|cgi)/php.ini? " question

It worked. Thanks!

MySQL wasn't added to /etc/php4/cli/php.ini -- Cacti apparently, by
default, uses php-cli to call poller.php.



Reply to: