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: Bebot don't want to start  (Read 4340 times)

0 Members and 1 Guest are viewing this topic.

Offline Luclia

  • BeBot Rookie
  • *
  • Posts: 10
  • Karma: +0/-0
Bebot don't want to start
« on: September 19, 2009, 01:18:05 pm »
Hi,
i just try to get the bot running on our linux root server. Everytime i try to start the bot with php ./StartBot.php its spams the following message:
PHP Notice:  Undefined variable: pw in /home/bebot/StartBot.php on line 100 sh: /: is a directory
and the bot don't start.
does anyone have an idea what the problem could be?

Greetings
Luclia

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Bebot don't want to start
« Reply #1 on: September 20, 2009, 05:08:14 pm »
tried with out the ./ ?
i always start my bots my cd to the dir and do php StartBot.php

Offline Luclia

  • BeBot Rookie
  • *
  • Posts: 10
  • Karma: +0/-0
Re: Bebot don't want to start
« Reply #2 on: September 21, 2009, 11:20:27 am »
Judt tried it but noc change still keep the error with this lines before
PHP Warning:  shell_exec(): Cannot execute using backquotes in Safe Mode in /home/bebot/StartBot.php on line 68
PHP Notice:  Undefined offset:  1 in /home/bebot/Sources/Conf.php on line 47
PHP Notice:  Undefined property: Conf::$cf in /home/bebot/Sources/Conf.php on line 70
PHP Notice:  Undefined offset:  1 in /home/bebot/StartBot.php on line 74
PHP Notice:  Undefined variable: pw in /home/bebot/StartBot.php on line 100
sh: /: is a directory
The Server has PHP-Version 5.2.9 running

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Bebot don't want to start
« Reply #3 on: September 21, 2009, 11:29:12 am »
im guessing its todo with safe mode
you can try replacing ur startbot.php with this file
basicly i have changed
Code: [Select]
$php_bin = trim(shell_exec('which php'));
to
Code: [Select]
$php_bin = "php";
i tested and my bot still loaded
« Last Edit: September 21, 2009, 11:34:13 am by Temar »

Offline Luclia

  • BeBot Rookie
  • *
  • Posts: 10
  • Karma: +0/-0
Re: Bebot don't want to start
« Reply #4 on: September 21, 2009, 12:28:13 pm »
Thanks for your time.
i just tried it and the safemode message dosnt appear.
but ist stil says
PHP Notice:  Undefined offset:  1 in /home/bebot/Sources/Conf.php on line 47
PHP Notice:  Undefined property: Conf::$cf in /home/bebot/Sources/Conf.php on line 70
PHP Notice:  Undefined variable: pw in /home/bebot/StartBot.php on line 100
sh: /php: Datei oder Verzeichnis nicht gefunden

Offline Luclia

  • BeBot Rookie
  • *
  • Posts: 10
  • Karma: +0/-0
Re: Bebot don't want to start
« Reply #5 on: September 21, 2009, 01:49:13 pm »
well it was a step forward by disabling the safemode on the server
but w i get
PHP Notice:  Undefined variable: os_windows in /home/bebot/Main.php on line 126
Sockets extention required to run this bot
in the startupsplash he types out that the OS is Linux

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Bebot don't want to start
« Reply #6 on: September 21, 2009, 02:55:52 pm »
u can ignore PHP Notice
u need the sockets extension for PHP so it can connect

Offline Luclia

  • BeBot Rookie
  • *
  • Posts: 10
  • Karma: +0/-0
Re: Bebot don't want to start
« Reply #7 on: September 21, 2009, 06:51:59 pm »
thx i will look later for that bu im sure i have the whole php packe installed on that server
Thanks for your time Temar

Greeting
 Luclia

Offline Luclia

  • BeBot Rookie
  • *
  • Posts: 10
  • Karma: +0/-0
Re: Bebot don't want to start
« Reply #8 on: September 22, 2009, 03:44:36 am »
Thank Temar for your help got it working

The only think is now how I get the bot keep running.
At the moment the bot stops when i log out from my ssh connection.

Offline Getrix

  • Contributor
  • *******
  • Posts: 509
  • Karma: +0/-0
Re: Bebot don't want to start
« Reply #9 on: September 22, 2009, 07:03:05 am »
Add "&" to the end of command

ex: "php StartBot.php &"

Then it will run in the background
Success is not final, failure is not fatal: it is the courage to continue that counts.
- Sorry, i dont have time to reply question on PM. Make a topic.

Offline Luclia

  • BeBot Rookie
  • *
  • Posts: 10
  • Karma: +0/-0
Re: Bebot don't want to start
« Reply #10 on: September 22, 2009, 10:00:26 am »
mmh i tried it but when its holding stoppen in the background so long till i get it in the front again

Offline Sudoka

  • BeBot User
  • **
  • Posts: 22
  • Karma: +0/-0
Re: Bebot don't want to start
« Reply #11 on: September 22, 2009, 11:33:09 am »
Run the boot in a "screen".

a small guide here : http://bebot.link/helpful-posts/bebot-on-linux/msg567/#msg567

Offline Luclia

  • BeBot Rookie
  • *
  • Posts: 10
  • Karma: +0/-0
Re: Bebot don't want to start
« Reply #12 on: September 22, 2009, 12:04:30 pm »
thx for the info it works now

 

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