fatal error

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
SckyzO
Posts: 2
Joined: Tue Nov 08, 2005 1:54 pm

fatal error

Post by SckyzO »

hi all

sorry for my english, but i am French ...

so i have a fatal error :
Fatal error: Call to undefined function: mysql_connect() in /var/www/cacti-0.8.6g/lib/adodb/drivers/adodb-mysql.inc.php on line 338
and my "php -m"
[PHP Modules]
bcmath
bz2
calendar
ctype
dba
dbx
exif
filepro
ftp
gettext
iconv
mbstring
mime_magic
ncurses
openssl
overload
pcntl
pcre
posix
session
shmop
sockets
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlrpc
yp
zip
zlib

[Zend Modules]


And my php-m is not normal !!!
i haven't got mysql module !!! :'(

can you help me please !!
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

So install the mysql module.. :)

What OS are you running?
[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]
SckyzO
Posts: 2
Joined: Tue Nov 08, 2005 1:54 pm

Post by SckyzO »

mysql module is installed !!
my OS is UBUNTU
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Um, no it's not.....

Make sure that you have something like "php-mysql" installed.
[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]
daniaon41
Posts: 9
Joined: Wed Sep 21, 2005 4:58 am
Location: INDONESIA
Contact:

Post by daniaon41 »

i have a same problem,,please give me a sollution
elnino
Cacti User
Posts: 205
Joined: Tue Mar 08, 2005 9:51 pm

Post by elnino »

daniaon41 wrote:i have a same problem,,please give me a sollution
Make sure you have php-snmp and php-mysql installed
soneedu
Posts: 12
Joined: Sun Nov 20, 2005 8:05 pm

Post by soneedu »

i checked , the php4-mysql php4-snmp was installed.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Open a shell, type "php -m". If you don't see "mysql" in the list, it's not installed.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
jducharme
Posts: 5
Joined: Thu Sep 23, 2004 1:26 pm

Post by jducharme »

When I look in Aptitude it shows PHP4-mysql as installed but it is not showing up when I look at php -m

How do I get it installed if it is show as installed but is not installed?
JJX
Cacti User
Posts: 402
Joined: Thu Oct 06, 2005 5:03 am

Post by JJX »

did u restarted apache?
cacti rulez!
Spiritual
Posts: 2
Joined: Thu Dec 29, 2005 6:28 am

Post by Spiritual »

I had the same problem, but solved it.

Make sure that in ur php.ini "extension=mysql.so" is uncommented (remove the ; in front of it)

Some systems have a cli php.ini and an apache php.ini, both need the mysql.so extention that i mentioned above. Cacti's poller.php uses the cli one.
jducharme
Posts: 5
Joined: Thu Sep 23, 2004 1:26 pm

Post by jducharme »

restarted apache,
now showing mysql and snmp installed

running
Debian Sarge
Cacti 0.8.6c-7sa
Apache 1.3.33-6sa
PHP 4:4.3.10-1
MYSQL 4.1.11a-4s

and I'm still getting
Fatal error: Call to undefined function: mysql_connect() in /usr/share/cacti/site/lib/adodb/drivers/adodb-mysql.inc.php on line 338

Anybody have any other suggestions?
Thank You
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please see http://forums.cacti.net/viewtopic.php?t=11090 for help. Or search the forums using "Call to undefined function: mysql_connect"
Reinhard
jducharme
Posts: 5
Joined: Thu Sep 23, 2004 1:26 pm

Post by jducharme »

Figured things out.


Thanks for the help.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest