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: Error starting Bebot  (Read 7059 times)

0 Members and 1 Guest are viewing this topic.

Offline sarakant

  • BeBot User
  • **
  • Posts: 27
  • Karma: +0/-0
Error starting Bebot
« 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

Offline Drizzurdeen

  • BeBot Apprentice
  • ***
  • Posts: 193
  • Karma: +0/-0
    • Obsidian-Cult
Re: Error starting Bebot
« Reply #1 on: January 04, 2011, 11:00:02 am »
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

Offline sarakant

  • BeBot User
  • **
  • Posts: 27
  • Karma: +0/-0
Re: Error starting Bebot
« Reply #2 on: January 04, 2011, 06:37:47 pm »
safe_mode is off
all the stuff should be installed

I don't know what is the problem

Offline Drizzurdeen

  • BeBot Apprentice
  • ***
  • Posts: 193
  • Karma: +0/-0
    • Obsidian-Cult
Re: Error starting Bebot
« Reply #3 on: January 05, 2011, 12:16:43 am »
how is the user with u try to start the bot ?

Offline sarakant

  • BeBot User
  • **
  • Posts: 27
  • Karma: +0/-0
Re: Error starting Bebot
« Reply #4 on: January 30, 2011, 12:02:17 pm »
I have a seperate user for the bot, but also tried it under root.
It doesen't matter, same message

Offline uberjon

  • BeBot User
  • **
  • Posts: 32
  • Karma: +0/-0
Re: Error starting Bebot
« Reply #5 on: January 30, 2011, 05:13:55 pm »
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.

Offline Kentarii

  • BeBot Apprentice
  • ***
  • Posts: 153
  • Karma: +0/-0
    • AoC>TV
Re: Error starting Bebot
« Reply #6 on: January 31, 2011, 01:20:54 pm »
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
Code: [Select]
<?php
  
print "Hello World!\n";
?>

Then run the php file:
Code: [Select]
php helloworld.phpDo you get any output?

Might also help if you give us some basic info like the output of:
Code: [Select]
php -v
Code: [Select]
php -m
Code: [Select]
dpkg --list|grep php
Code: [Select]
cd /etc/php5/conf.d/ && ls -l
Code: [Select]
cat /etc/php5/cli/php.ini
But at this point, we're moving towards php/linux support and not bebot support..

Offline sarakant

  • BeBot User
  • **
  • Posts: 27
  • Karma: +0/-0
Re: Error starting Bebot
« Reply #7 on: January 31, 2011, 02:59:25 pm »
I deactivated the module imap, so this is fixed.
But after starting the bot
sh: /: Permission denied
sh: /: Permission denied
sh: /: Permission denied

Offline Kentarii

  • BeBot Apprentice
  • ***
  • Posts: 153
  • Karma: +0/-0
    • AoC>TV
Re: Error starting Bebot
« Reply #8 on: January 31, 2011, 03:05:42 pm »
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.
« Last Edit: January 31, 2011, 03:11:48 pm by Kentarii »

Offline sarakant

  • BeBot User
  • **
  • Posts: 27
  • Karma: +0/-0
Re: Error starting Bebot
« Reply #9 on: January 31, 2011, 03:22:22 pm »
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

Offline sarakant

  • BeBot User
  • **
  • Posts: 27
  • Karma: +0/-0
Re: Error starting Bebot
« Reply #10 on: January 31, 2011, 03:25:46 pm »
I try to start with
php5 StartBot.php

Offline Kentarii

  • BeBot Apprentice
  • ***
  • Posts: 153
  • Karma: +0/-0
    • AoC>TV
Re: Error starting Bebot
« Reply #11 on: January 31, 2011, 03:41:59 pm »
Edit your StartBot.php and search for the following segment:
Code: [Select]
// 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.

Code: [Select]
// 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
Code: [Select]
php StartBot.phpis
Code: [Select]
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?
« Last Edit: January 31, 2011, 03:49:56 pm by Kentarii »

Offline sarakant

  • BeBot User
  • **
  • Posts: 27
  • Karma: +0/-0
Re: Error starting Bebot
« Reply #12 on: January 31, 2011, 04:08:52 pm »
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?

Offline Kentarii

  • BeBot Apprentice
  • ***
  • Posts: 153
  • Karma: +0/-0
    • AoC>TV
Re: Error starting Bebot
« Reply #13 on: January 31, 2011, 04:14:05 pm »
It's more likely that it can't find where your php binary is.
Try running this command instead of php StartBot.php
Code: [Select]
/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:
Code: [Select]
which phpMy result is
Code: [Select]
/usr/bin/php

Offline sarakant

  • BeBot User
  • **
  • Posts: 27
  • Karma: +0/-0
Re: Error starting Bebot
« Reply #14 on: January 31, 2011, 04:18:43 pm »
gamebot@h1601526:~/aocbot$ which php
/usr/bin/php

 

* 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: 739
  • 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