BeBot - An Anarchy Online and Age Of Conan chat automaton
Archive => Age of Conan Archive => AoC 0.6 support => Topic started by: sarakant on January 04, 2011, 01:02:25 am
-
Hi,
I use a vServer running Ubuntu.
After following the instructions I get the message:
PHP Warning: Module 'imap' already loaded in Unknown on line 0
sh: /: Permission denied
sh: /: Permission denied
sh: /: Permission denied
...
What is wrong?
thx for help
-
does ur vserver user phpsafe mode on ??? if yes ... change it into off ... maybee this is the reason ...
further ... do u have installed the php5 sockets an the bcmnath ??? of not ... install it ... after all restart ur vserver
-
safe_mode is off
all the stuff should be installed
I don't know what is the problem
-
how is the user with u try to start the bot ?
-
I have a seperate user for the bot, but also tried it under root.
It doesen't matter, same message
-
that error to me looks like you have compiled/installed php incorrectly. php is saying the module imap is trying to be loaded a second time.
-
Might be some misconfiguration with your php installation.
Have you tried just running a basic php-script using the commandline?
Save the contents of this code to helloworld.php
<?php
print "Hello World!\n";
?>
Then run the php file:
php helloworld.php
Do you get any output?
Might also help if you give us some basic info like the output of:
php -v
php -m
dpkg --list|grep php
cd /etc/php5/conf.d/ && ls -l
cat /etc/php5/cli/php.ini
But at this point, we're moving towards php/linux support and not bebot support..
-
I deactivated the module imap, so this is fixed.
But after starting the bot
sh: /: Permission denied
sh: /: Permission denied
sh: /: Permission denied
-
How exactly are you starting the bot?
And if you cba to answer any of my questions, then this will be my last reply.
Just adding snippets of what is output isn't really helpful at all.
-
php -v
PHP 5.2.6-2ubuntu4.6 with Suhosin-Patch 0.9.6.2 (cli) (built: Jan 6 2010 22:03:33)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
with Suhosin v0.9.24, Copyright (c) 2007, by SektionEins GmbH
php -m
[PHP Modules]
bcmath
bz2
calendar
ctype
curl
date
dba
dom
exif
filter
ftp
gd
gettext
gmp
hash
iconv
imap
json
ldap
libxml
mbstring
mcrypt
mhash
mime_magic
ming
mssql
mysql
mysqli
ncurses
odbc
openssl
pam_auth
pcntl
pcre
PDO
pdo_dblib
pdo_mysql
PDO_ODBC
pdo_pgsql
pdo_sqlite
pgsql
posix
pspell
readline
recode
Reflection
session
shmop
SimpleXML
snmp
soap
sockets
SPL
SQLite
standard
suhosin
sysvmsg
sysvsem
sysvshm
tidy
tokenizer
wddx
xml
xmlreader
xmlrpc
xmlwriter
xsl
zip
zlib
[Zend Modules]
Suhosin
dpkg --list|grep php
ii libapache2-mod-php5 5.2.6-2ubuntu4.6 server-side, HTML-embedded scripting language (Apache 2
ii php-auth 1.6.1-1 PHP PEAR modules for creating an authentication system
ii php-net-socket 1.0.8-2 PHP PEAR Network Socket Interface module
ii php-pear 5.2.6-2ubuntu4.6 PEAR - PHP Extension and Application Repository
ii php5 5.2.6-2ubuntu4.6 server-side, HTML-embedded scripting language (metapack
ii php5-auth-pam 0.4-10 A PHP5 extension for PAM authentication
ii php5-cgi 5.2.6-2ubuntu4.6 server-side, HTML-embedded scripting language (CGI bina
ii php5-cli 5.2.6-2ubuntu4.6 command-line interpreter for the php5 scripting languag
ii php5-common 5.2.6-2ubuntu4.6 Common files for packages built from the php5 source
ii php5-curl 5.2.6-2ubuntu4.6 CURL module for php5
ii php5-dbg 5.2.6-2ubuntu4.6 Debug symbols for PHP5
ii php5-dev 5.2.6-2ubuntu4.6 Files for PHP5 module development
ii php5-gd 5.2.6-2ubuntu4.6 GD module for php5
ii php5-gmp 5.2.6-2ubuntu4.6 GMP module for php5
ii php5-imap 5.2.6-0ubuntu3.1 IMAP module for php5
ii php5-ldap 5.2.6-2ubuntu4.6 LDAP module for php5
ii php5-mcrypt 5.2.6-0ubuntu2 MCrypt module for php5
ii php5-mhash 5.2.6-2ubuntu4.6 MHASH module for php5
ii php5-ming 1:0.3.0-14 Ming module for php5
ii php5-mysql 5.2.6-2ubuntu4.6 MySQL module for php5
ii php5-odbc 5.2.6-2ubuntu4.6 ODBC module for php5
ii php5-pgsql 5.2.6-2ubuntu4.6 PostgreSQL module for php5
ii php5-pspell 5.2.6-2ubuntu4.6 pspell module for php5
ii php5-recode 5.2.6-2ubuntu4.6 recode module for php5
ii php5-snmp 5.2.6-2ubuntu4.6 SNMP module for php5
ii php5-sqlite 5.2.6-2ubuntu4.6 SQLite module for php5
ii php5-suhosin 0.9.24-1 advanced protection module for php5
ii php5-sybase 5.2.6-2ubuntu4.6 Sybase / MS SQL Server module for php5
ii php5-tidy 5.2.6-2ubuntu4.6 tidy module for php5
ii php5-xmlrpc 5.2.6-2ubuntu4.6 XML-RPC module for php5
ii php5-xsl 5.2.6-2ubuntu4.6 XSL module for php5
ii psa-php5-configurator 1.5.3-ubuntu8.04.build95101022.03 Plesk configurator for php5
-rw-r--r-- 1 root root 54 2010-01-06 23:05 curl.ini
-rw-r--r-- 1 root root 50 2010-01-06 23:05 gd.ini
-rw-r--r-- 1 root root 52 2010-01-06 23:08 gmp.ini
-rw-r--r-- 1 root root 55 2011-01-31 14:49 imap.ini
-rw-r--r-- 1 root root 54 2008-08-21 04:30 imap.ini~
-rw-r--r-- 1 root root 54 2010-01-06 23:08 ldap.ini
-rw-r--r-- 1 root root 58 2008-09-13 20:41 mcrypt.ini
-rw-r--r-- 1 root root 56 2010-01-06 23:08 mhash.ini
-rw-r--r-- 1 root root 54 2008-07-11 12:54 ming.ini
-rw-r--r-- 1 root root 57 2010-01-06 23:08 mssql.ini
-rw-r--r-- 1 root root 57 2010-01-06 23:05 mysqli.ini
-rw-r--r-- 1 root root 56 2010-01-06 23:05 mysql.ini
-rw-r--r-- 1 root root 54 2010-01-06 23:08 odbc.ini
-rw-r--r-- 1 root root 22 2007-07-24 13:24 pam_auth.ini
-rw-r--r-- 1 root root 61 2010-01-06 23:08 pdo_dblib.ini
-rw-r--r-- 1 root root 52 2010-01-06 23:05 pdo.ini
-rw-r--r-- 1 root root 60 2010-01-06 23:05 pdo_mysql.ini
-rw-r--r-- 1 root root 58 2010-01-06 23:08 pdo_odbc.ini
-rw-r--r-- 1 root root 65 2010-01-06 23:08 pdo_pgsql.ini
-rw-r--r-- 1 root root 62 2010-01-06 23:08 pdo_sqlite.ini
-rw-r--r-- 1 root root 61 2010-01-06 23:08 pgsql.ini
-rw-r--r-- 1 root root 58 2010-01-06 23:08 pspell.ini
-rw-r--r-- 1 root root 58 2010-01-06 23:08 recode.ini
-rw-r--r-- 1 root root 54 2010-01-06 23:08 snmp.ini
-rw-r--r-- 1 root root 58 2010-01-06 23:08 sqlite.ini
-rw-r--r-- 1 root root 2881 2008-06-19 17:14 suhosin.ini
-rw-r--r-- 1 root root 54 2010-01-06 23:08 tidy.ini
-rw-r--r-- 1 root root 59 2010-01-06 23:08 xmlrpc.ini
-rw-r--r-- 1 root root 52 2010-01-06 23:05 xsl.ini
-
I try to start with
php5 StartBot.php
-
Edit your StartBot.php and search for the following segment:
// Create the command to execute in the system() call of the main loop:
$systemcommand = $php_bin . $php_args . " " . $main_php;
if ($argc > 1)
{
$systemcommand .= " " . $argv[1];
}
And add the echo line like below.
// Create the command to execute in the system() call of the main loop:
$systemcommand = $php_bin . $php_args . " " . $main_php;
if ($argc > 1)
{
$systemcommand .= " " . $argv[1];
}
echo "Starting bebot with: ".$systemcommand."\n";
What I get when starting bebot with
php StartBot.php
is
user@host:~/bebot$ php StartBot.php
Starting bebot with: /usr/bin/php -c ./ Main.php
===================================================
_/_/_/ _/_/_/ _/
_/ _/ _/_/ _/ _/ _/_/ _/_/_/_/
_/_/_/ _/_/_/_/ _/_/_/ _/ _/ _/
_/ _/ _/ _/ _/ _/ _/ _/
_/_/_/ _/_/_/ _/_/_/ _/_/ _/_/
An Anarchy Online Chat Automaton
And
An Age of Conan Chat Automaton
What does it output for you?
-
gamebot@h1601526:~/BeBot$ php StartBot.php
Starting bebot with: etc/php5/ -c ./ Main.php
sh: /: Permission denied
sh: /: Permission denied
I tried it also as root, same stuff
Is it possible it has a problem to reach mysql database?
-
It's more likely that it can't find where your php binary is.
Try running this command instead of php StartBot.php
/usr/bin/php -c ./ Main.php
I guess if you could give me the output of this command, we've narrowed down the issue pretty much:
which php
My result is
/usr/bin/php
-
gamebot@h1601526:~/aocbot$ which php
/usr/bin/php
-
Did you even try to start the bot with:
/usr/bin/php -c ./ Main.php
-
Kentarii I love...
Its running....
-
Nice, so that means you can modify the StartBot.php file to use the /usr/bin/php binary to start the bot.
Find and replace
$php_bin = trim(shell_exec('which php'));
with
$php_bin = "/usr/bin/php";
Then you should in theory be able to start the bot with
php StartBot.php
-
If I do so...
PHP not found
-
Weird... just use what's working for you then.
-
I got this message when I start:
Warning: Error while reading rpc header. () in .../BeBot/Sources/AOChat.php on line 503
Warning: handleRPCPackets: Packet is not an object (no RPCPacket?) in .../BeBot/Sources/AOChat.php on line 725
Zornbot [CONN] [ERROR] Failed authenticating to server. Retrying in 60 seconds.
Is there a problem today?
-
working again...
seems to be a problem at aoc chat server