BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Anarchy Online Archive => BeBot 0.2 support => Topic started by: taconis on December 19, 2006, 05:23:01 pm

Title: BeBot and remote servers
Post by: taconis 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.
Title: Re: BeBot and remote servers
Post by: Naturalistic 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.
Title: Re: BeBot and remote servers
Post by: Malosar 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?
Title: Re: BeBot and remote servers
Post by: Khalem 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.
SimplePortal 2.3.7 © 2008-2024, SimplePortal