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 remote servers  (Read 2105 times)

0 Members and 1 Guest are viewing this topic.

Offline taconis

  • BeBot User
  • **
  • Posts: 34
  • Karma: +0/-0
BeBot and remote servers
« on: December 19, 2006, 05:23:01 pm »
Is it theoretically possible to have bebot on an apache linux server running php 4.4.2?  For example...

I've created a db for the bot on a client's server where I have plenty of bandwidth.  I've created the user login and pass for the bot.  I've assigned the user to the db.

What I'd like to do is to download BeBot onto my local system, modify the BeBot files (for passwords, pathing, etc), upload the items.sql to /public_html, load the items.sql into the bot db, ftp the BeBot files to /public_html, and then call BeBot's start without having to remote login to the box itself.

-- or --

Upload the items.sql into the db on the box, then install BeBot locally here and run the instance here without being logged into the remote server.

Any tips, tricks, hints would be appreciated.

Offline Naturalistic

  • Contributor
  • *******
  • Posts: 221
  • Karma: +0/-0
Re: BeBot and remote servers
« Reply #1 on: December 19, 2006, 05:25:47 pm »
Well, the only way I'd think of was remote SSH'ing into the machine.

You could probably make a script on windows to deal with SSH + run commands.
220/25 Eternalist Doctor
-----------------------------
Campalot Coding Co-ordinator and Super Admin
http://www.campalot.info/index.php

Offline Malosar

  • BeBot Expert
  • ****
  • Posts: 259
  • Karma: +0/-0
    • http://www.lowerdimension.com
Re: BeBot and remote servers
« Reply #2 on: December 19, 2006, 07:02:21 pm »
You could make a little webpage with authentication and make a "Run bot" button which execute a system script via php?
Eternalist
General of The Syndicate

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: BeBot and remote servers
« Reply #3 on: December 19, 2006, 09:02:19 pm »
You could in theory do it, but i really, and i mean really, don't recommend it.

If you are gonna do it you need to make sure of a few things
1) That you disable the execution limit of php so that the bot isn't killed after running xxx seconds.
2) Password protect the directory you run it from so no one else can access the bot and potentially inject anything. There is no safeguards in place for this since the bot isn't supposed to be run like this.

As for your second question, items.sql is no longer needed for the bot, but you still need the database server.
You can run the bot from your own computer just fine and have it use the database on any remote server. The database server does not need to be on the same system as the bot itself.
BeBot Founder and Fixer Kingpin

 

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