collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18363
  • stats Total Topics: 2500
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: Bot startup error, php_pdo_register_driver  (Read 5363 times)

0 Members and 1 Guest are viewing this topic.

Offline vashon

  • BeBot Rookie
  • *
  • Posts: 8
  • Karma: +0/-0
Bot startup error, php_pdo_register_driver
« 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

Offline Slacklin

  • BeBot User
  • **
  • Posts: 52
  • Karma: +0/-0
  • My spoon is too big!
    • United Org Site
Re: Bot startup error, php_pdo_register_driver
« Reply #1 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.

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Bot startup error, php_pdo_register_driver
« Reply #2 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...

Offline vashon

  • BeBot Rookie
  • *
  • Posts: 8
  • Karma: +0/-0
Re: Bot startup error, php_pdo_register_driver
« Reply #3 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!

Offline Glarawyn

  • BeBot Hero
  • ******
  • Posts: 521
  • Karma: +0/-0
Re: Bot startup error, php_pdo_register_driver
« Reply #4 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. ;)

Offline vashon

  • BeBot Rookie
  • *
  • Posts: 8
  • Karma: +0/-0
Re: Bot startup error, php_pdo_register_driver
« Reply #5 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 :)

 

* Recent Posts
[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm]


0.8.x updates for AoC by bitnykk
[January 30, 2024, 11:16:08 pm]


0.8.x updates for AO by bitnykk
[January 30, 2024, 11:15:37 pm]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm]

* Who's Online
  • Dot Guests: 690
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal