BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Anarchy Online Archive => BeBot 0.4 support => Topic started by: vashon on May 02, 2008, 10:06:41 pm

Title: Bot startup error, php_pdo_register_driver
Post by: vashon on May 02, 2008, 10: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
Title: Re: Bot startup error, php_pdo_register_driver
Post by: Slacklin on May 03, 2008, 12:13:37 am
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.
Title: Re: Bot startup error, php_pdo_register_driver
Post by: Alreadythere on May 03, 2008, 12:35:10 am
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...
Title: Re: Bot startup error, php_pdo_register_driver
Post by: vashon on May 07, 2008, 08: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!
Title: Re: Bot startup error, php_pdo_register_driver
Post by: Glarawyn on May 08, 2008, 01:49:56 am
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. ;)
Title: Re: Bot startup error, php_pdo_register_driver
Post by: vashon on May 09, 2008, 12:42:02 pm
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 :)
SimplePortal 2.3.7 © 2008-2024, SimplePortal