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

Re: Cacti & Sarge



Le 12799ième jour après Epoch,
Benoit Lecompt écrivait:

> Je cherche sur google-est-ton-ami ...
> La base sql semble bien configurée mais /usr/bin/php /var/www/cacti/cmd.php
> me retourne:
> Fatal error: Call to undefined function:  mysql_connect() in
> /var/www/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
>
> J'ai re-cherché et trouvé ceci:
> http://www.cacti.net/downloads/docs/html/faq.html#AEN1778
> "I get a "Call to undefined function: mysql_connect()" error message from
> Cacti.
>
> Your installation of PHP does not have MySQL installed or enabled. On
> binary-based distributions, make sure you have the 'php-mysql' package
> installed. Also make sure that 'extension=mysql.so' is uncommented in your
> php.ini file."
>
> Or, php-mysql est installé, et dans /etc/php4/cgi/php.ini j'ai bien
> décommenté 'extension=mysql.so'

Il me semble que c'est dans /etc/php4/cli/php.ini qu'il faut aussi
faire cette modif. C'est la version cli (command line interpreter) qui
est utilisée dans ce cas.



Reply to: