L* R*
HOME FORUM DOWNLOADS
Content
  Links
     Browse SVN
     SVN Commit log
     Documentation (Wiki)
  Developers
     Taskmanager
User
Welcome, Guest. Please login or register.
Did you miss your activation email?
September 08, 2008, 11:58:22 AM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Support > BeBot 0.4 support > Topic: Bot startup error, php_pdo_register_driver
Pages: [1]   Go Down
« previous next »
Print
Author Topic: Bot startup error, php_pdo_register_driver  (Read 480 times)
0 Members and 1 Guest are viewing this topic.
vashon
Freshman
*
Offline Offline

Posts: 3


Bot startup error, php_pdo_register_driver
« on: May 02, 2008, 03:06:41 PM »

Hi folks, I'm attempting to get 0.4.3 to work on a hosted site, shared server CentOS Release 5. I've sorted a few startup errors related to paths but I've come unstuck with this one. Here is the output from the shell:

[user12345@ssh-server 0.4.3]$ php StartBot.php
<br />
<b>Warning</b>:  PHP Startup: Unable to load dynamic library './php_extension/pdo_mysql.so' - ./php_extension/pdo_mysql.so: undefined symbol: php_pdo_register_driver in <b>Unknown</b> on line <b>0</b><br />
<br />
<b>Warning</b>:  PHP Startup: Unable to load dynamic library './php_extension/pdo_mysql.so' - ./php_extension/pdo_mysql.so: undefined symbol: php_pdo_register_driver in <b>Unknown</b> on line <b>0</b><br />

===================================================

    _/_/_/              _/_/_/                _/

   _/    _/    _/_/    _/    _/    _/_/    _/_/_/_/

  _/_/_/    _/_/_/_/  _/_/_/    _/    _/    _/

 _/    _/  _/        _/    _/  _/    _/    _/

_/_/_/      _/_/_/  _/_/_/      _/_/        _/_/

         An Anarchy Online Chat Automaton

             v.0.4.3 - PHP 5.1.6

===================================================

AOChat class needs the BCMath extension to work.
[user12345@ssh-server 0.4.3]$

So first I checked the php build details, which you can view at http://www.discord-ao.org/phpinfo.php

I can confirm that the module referred to is indeed in the relative ./php_extension/ directory. Earlier I took a copies of all the modules from the /usr/lib/php/modules dir to stop other startup errors.

Not really sure what to look at next :s Any help appreciated..

V
Logged
Slacklin
Rookie
**
Offline Offline

Posts: 28


Re: Bot startup error, php_pdo_register_driver
« Reply #1 on: May 02, 2008, 05:13:37 PM »

Since you are on a shared host you might need to check the permissions for PHP. Your bot will be using modules inside of the /bin folder rather than bot folder since it is a linux based system. Also you may need to make sure that they are executable. Not the real expert here on running bebot on CentOS.
Logged
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1024


Re: Bot startup error, php_pdo_register_driver
« Reply #2 on: May 02, 2008, 05:35:10 PM »

If I read it right it looks like bcmath and mysql are compiled as shared modules, which means you'll have to point it to the right directory. No clue which that is though. Besides, not sure if the php you call is a CLI version, it's producing html output...
Logged
vashon
Freshman
*
Offline Offline

Posts: 3


Re: Bot startup error, php_pdo_register_driver
« Reply #3 on: May 07, 2008, 01:35:52 PM »

Hi, thanks for the help. I have now tried various things to get this module to register but to no avail, so last night I gave up and a friend now runs it on his dedicated box. It would seems to be some kind of permissions problem and I'll return to the issue when I have more time. Thanks again!
Logged
Glarawyn
BeBot Developer
Champion
********
Offline Offline

Posts: 391



Re: Bot startup error, php_pdo_register_driver
« Reply #4 on: May 07, 2008, 06:49:56 PM »

Usually on Linux you should delete the php.ini that is distributed with BeBot. Then things should fire up as expected...

php.ini should be distributed with the BeBot PHP support zip, not BeBot itself. Wink
Logged
vashon
Freshman
*
Offline Offline

Posts: 3


Re: Bot startup error, php_pdo_register_driver
« Reply #5 on: May 09, 2008, 05:42:02 AM »

Thanks Glarawyn. This was also tried and generated the same result (except it linked the original module location). I'm  putting this down to restrictive hosting as I have problems with phpbb3 also. I've switched hosts now and everything works fine Smiley
Logged
Pages: [1]   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Support > BeBot 0.4 support > Topic: Bot startup error, php_pdo_register_driver
« previous next »
 
Jump to:  

Recent
Help with online info in ...
by clashbot
[Today at 11:44:17 AM]

syntax error .... Main.ph...
by Temar
[Today at 08:42:07 AM]

Org Relaying
by Temar
[Today at 08:20:58 AM]

BeBot v0.5.3 released (de...
by Temar
[Today at 12:32:25 AM]

Security
by Alreadythere
[September 06, 2008, 10:02:42 AM]

Probs with relay from gue...
by Temar
[September 06, 2008, 09:03:06 AM]

Raid spam in guild chat
by Temar
[September 06, 2008, 09:01:18 AM]

Link 2 Guilds via 2 Bots?
by Temar
[September 05, 2008, 04:22:40 PM]

SVN download
by clashbot
[September 05, 2008, 05:12:59 AM]

TWC
by Temar
[September 05, 2008, 12:27:23 AM]
Stats
Members
Total Members: 967
Latest: canibaal
Stats
Total Posts: 10425
Total Topics: 1414
Online Today: 19
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 4
Guests: 25
Total: 29
Temar
clashbot
Snarfblatt

Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.8 © Bloc | NewDef design by Bloc
Page created in 0.685 seconds with 28 queries. (Pretty URLs adds 0.04s, 4q)
Loading...