Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
Post support questions that directly relate to Linux/Unix operating systems.
Moderators: Developers , Moderators
SckyzO
Posts: 2 Joined: Tue Nov 08, 2005 1:54 pm
Post
by SckyzO » Tue Nov 08, 2005 1:57 pm
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 !!
rony
Developer/Forum Admin
Posts: 6022 Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:
Post
by rony » Tue Nov 08, 2005 4:14 pm
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 » Tue Nov 08, 2005 5:11 pm
mysql module is installed !!
my OS is UBUNTU
rony
Developer/Forum Admin
Posts: 6022 Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:
Post
by rony » Tue Nov 08, 2005 5:27 pm
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 » Tue Nov 15, 2005 11:15 pm
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 » Wed Nov 16, 2005 12:15 am
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 » Mon Nov 21, 2005 3:14 am
i checked , the php4-mysql php4-snmp was installed.
TheWitness
Developer
Posts: 17007 Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:
Post
by TheWitness » Mon Nov 21, 2005 5:50 am
Open a shell, type "php -m". If you don't see "mysql" in the list, it's not installed.
TheWitness
jducharme
Posts: 5 Joined: Thu Sep 23, 2004 1:26 pm
Post
by jducharme » Fri Dec 23, 2005 12:02 pm
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 » Sat Dec 24, 2005 4:58 pm
did u restarted apache?
cacti rulez!
Spiritual
Posts: 2 Joined: Thu Dec 29, 2005 6:28 am
Post
by Spiritual » Thu Dec 29, 2005 7:23 am
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 » Thu Dec 29, 2005 2:36 pm
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
jducharme
Posts: 5 Joined: Thu Sep 23, 2004 1:26 pm
Post
by jducharme » Thu Dec 29, 2005 3:17 pm
Figured things out.
Thanks for the help.
Users browsing this forum: No registered users and 0 guests