BeBot - An Anarchy Online and Age Of Conan chat automaton
Archive => Anarchy Online Archive => BeBot 0.3 support => Topic started by: womp on July 22, 2006, 11:37:07 pm
-
when trying to start bebot31 I start to get spammed with the following error
updated to php 5
trying to run bebot31 Fatal error: Call to undefined function mysql_connect <> in c:\bebot31\Mysql.php on line 36
Im lost here
Im unsure of what to be looking for here.
-
This indicates that your php is compiled without MySQL support, or that the MySQL module for php is not loaded.
-
is there by any chance you could explain how I could check or correct this issue?
-
actually I figured it out. I just had to edit an .ini file up and running good now.
-
I actually get the same error, and as I am new to *nix I'm naturally quite lost here.
Fatal error: Call to undefined function: mysql_connect() in <mumble mumble> BeBot_v0.2.9/MySQL.php on line 63
I have made sure my php.ini has the extension=mysql.so uncommented, also a forum I established (based on phpBB2) went up and running without huge problems.
My PHP version is 4.4.2 and MySQL 5.0.22, on an Ubuntu 6.06 server.
Any kind of hints towards a solution would be greatly appreciated! :-*
-
You need to get the mysql extension.
If I recall...
sudo apt-get install php4-mysql
I would say hold off upgrading to 6.10 if you plan to. ;) Some packages don't work properly (especially for php5).
-
Oh yeah, I forgot to mention I've already got that extension. Oh well, I'll continue googling, perhaps something pops up.
-
Try putting a php.ini files with extension=mysql.so into the bot main directory.
Other possibility: mysql.so is not in a spot php looks for it?
-
You need to modify the php.ini extension location.
Just winging this, should be in /etc/php4/cli/php.ini
I can check on mine if i got that wrong :P
Inside that, look for the ext_dir or something along those lines. Put ext-dir = '/usr/lib/php4/2006..../' (I can't remember the exact name of the directory). If you're not sure, when I'm not strapped for time, I'll post a complete detail as to what I mean :) Hopefully my jibberish will point you in the right direction though :P