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 and Xampp help  (Read 4011 times)

0 Members and 2 Guests are viewing this topic.

Offline stee01

  • BeBot Rookie
  • *
  • Posts: 3
  • Karma: +0/-0
Bebot and Xampp help
« on: November 20, 2010, 02:44:19 pm »
Hi guys, Im having trouble with getting bebot to run with Xampp. I have edited all the conf files, set up the database with phpmyadmin and edited the startbot.php file including pointing php bin to c:/xampp/php/php.exe.

I also made sure host file was pointing 127.0.0.1 and localhost to each other

I even tried dropping the directory into htdocs, but still no joy.

Has any successfully done this? Any help or links to tutorials (I couldnt find any through search. Would be greatly helpful.

Thanks

Stee

Offline Drizzurdeen

  • BeBot Apprentice
  • ***
  • Posts: 193
  • Karma: +0/-0
    • Obsidian-Cult
Re: Bebot and Xampp help
« Reply #1 on: November 20, 2010, 06:03:21 pm »
would be easier for us when u post the errorlog

Offline stee01

  • BeBot Rookie
  • *
  • Posts: 3
  • Karma: +0/-0
Re: Bebot and Xampp help
« Reply #2 on: November 20, 2010, 06:09:51 pm »
Of course.

The logs themselves are clean. It doesn't actually initialise i dont think.

Here is the error message



I suspect it's a pebkac error on my end, but I genuinely have no idea how to start this up from xampp
« Last Edit: November 20, 2010, 06:13:27 pm by stee01 »

Offline TBK

  • BeBot User
  • **
  • Posts: 26
  • Karma: +0/-0
Re: Bebot and Xampp help
« Reply #3 on: November 21, 2010, 01:20:11 am »
If you wanna run it from the command line, then cd to the folder first at then fire "php startbot.php".

Offline stee01

  • BeBot Rookie
  • *
  • Posts: 3
  • Karma: +0/-0
Re: Bebot and Xampp help
« Reply #4 on: November 21, 2010, 05:24:21 pm »
If I cd to the Bebot directory (c:\xampp\htdocs\Bebot) I cannot run any php commands because php resides in c:\xampp\php. Hence the reason I am running from the php directory and pointing to StartBot.php in htdocs\xampp.

I found that by changing ./Sources/Conf.php on line 73 I could progress a little further. However It now fails to recognise the conf files in the Conf folder.

Screenshot below



Im going to temporarily remove xampp and follow the normal method. If anyone has actually got this working with xampp in windows and can actually help please let me know.

Thanks

Stee

Offline TBK

  • BeBot User
  • **
  • Posts: 26
  • Karma: +0/-0
Re: Bebot and Xampp help
« Reply #5 on: December 16, 2010, 02:26:52 pm »
I'm running it on Windows with Zend Server.

When PHP is correctly setup, you will have PHP added to the system environments variables and be able to use PHP CLI (command line interface) (Windows - http://windows.fyicenter.com/view.php?ID=60).

The way I run it is with Task Schedule (Cron job):
Program: "C:\....path to php.exe"
Add arguments: StartBot.php
Start in: C:\..... (without a \ at the end) - is set to the directory where the bot files are located.

Replace $php_args = " -c ./ " with  $php_args = " ", if you don't want the bot PHP instance to look for a php.ini file in the directory where PHP is located.


You need to tell PHP to "start" from the bot dir, otherwise the relative paths in the code won't work.

To see it in action, open cmd, cd to the bot dir and type php StartBot.php, or use the .bat files (remember to edit them and remove the -c ./ variable first, otherwise PHP will look for a php.ini file in the bot dir).

 

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