BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Anarchy Online Archive => BeBot 0.5 support => Topic started by: DEBA on August 09, 2008, 12:52:05 am

Title: Sockets extention required to run this bot
Post by: DEBA on August 09, 2008, 12:52:05 am
Hallo,

first of all, my english is very bad, so sorry for the next lines.
I have a VServer with Suse 10.3. With the help of this forum i was able to config the Bot as far as this problem is happening.
If I start the bot with "php5 StartBot.php" this will be the result:
===================================================

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

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

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

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

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

         An Anarchy Online Chat Automaton

             v.0.5.2.svn(snapshot) - PHP 5.2.6

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

Sockets extention required to run this bot


It repeats in an endless loop.
There are no more errors.
I looked at the php.ini where the path is for the expansion

; The directory under which PHP opens the script using /~username used only
; if nonempty.
user_dir =

; Directory in which the loadable extensions (modules) reside.
extension_dir = /usr/lib/php5/extensions

; Whether or not to enable the dl() function.  The dl() function does NOT work
; properly in multithreaded servers, such as IIS or Zeus, and is automatically
; disabled on them.
enable_dl = Off


And in the path are these files:

vs163035:/usr/lib/php5/extensions # dir
total 3040
-rw-r--r-- 1 root root   10740 Jun 23 14:55 ctype.so
-rw-r--r-- 1 root root   57100 Jun 23 14:55 curl.so
-rw-r--r-- 1 root root  154412 Jun 23 14:55 dom.so
-rw-r--r-- 1 root root   47220 Jun 23 14:55 ftp.so
-rw-r--r-- 1 root root  349912 Jun 23 14:55 gd.so
-rw-r--r-- 1 root root   15056 Jun 23 14:55 gettext.so
-rw-r--r-- 1 root root   36196 Jun 23 14:55 iconv.so
-rw-r--r-- 1 root root   93764 Jun 23 14:55 imap.so
-rw-r--r-- 1 root root 1856696 Jun 23 14:55 mbstring.so
-rw-r--r-- 1 root root   35564 Jun 23 14:55 mcrypt.so
-rw-r--r-- 1 root root   44844 Jun 23 14:55 mysql.so
-rw-r--r-- 1 root root  102184 Jun 23 14:55 mysqli.so
-rw-r--r-- 1 root root   81644 Jun 23 14:55 openssl.so
-rw-r--r-- 1 root root   90188 Jun 23 14:55 pdo.so
-rw-r--r-- 1 root root   26708 Jun 23 14:55 pdo_mysql.so
-rw-r--r-- 1 root root   27476 Jun 23 14:55 xsl.so
-rw-r--r-- 1 root root   27428 Jun 23 14:55 zlib.so
vs163035:/usr/lib/php5/extensions #


I donĀ“t know what i should do... By the way, I have no experience in php, mysql or Linux, so its difficult for me...

I hope someone can tell me what i have to do
Title: Re: Sockets extention required to run this bot
Post by: Naghachian on August 09, 2008, 09:52:17 am
I had this problem on a windows server, and it came out of me choosing all extensions available upon install of PHP (i usually always click "Full install" cause you never know what you might need later, not the best idea on a webserver though)

i think alot of these extensions are experimental stuff thats not 100% fine yet.

My solution was to reinstall PHP and only choose the two extensions that this bot uses. : php_mysql.dll and php_sockets.dll

then it worked fine
Title: Re: Sockets extention required to run this bot
Post by: DEBA on August 09, 2008, 04:49:06 pm
The way I see it, are there missing extensions like php_sockets. How can i install the missing extensions? Is it only possible with a reinstall of php? My PHP-version is 5.2.6.0-1. Maybe this is helpful
Title: Re: Sockets extention required to run this bot
Post by: DEBA on August 09, 2008, 06:08:53 pm
For all these people who have the same Problem:
Yeaaaaaaah i fixed it  ;D

First, check your php version. After that search after the package php5-sockets-*version*.rpm download it and install it on the server. An error comes after the install, but it work fine. If any other extensions failed to load, be sure that you have these extensions.
Extensions are locatet in /usr/lib/php5/extensions/
If any extension missing search after it in google.

The extension i found is on this site for SuSe 10.3. http://gd.tuwien.ac.at/opsys/linux/opensuse/update/10.3/rpm/i586/?fisel=pP

I hope somebody helps this. For me it works great  ;D
SimplePortal 2.3.7 © 2008-2024, SimplePortal