BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Anarchy Online Archive => BeBot 0.2 support => Topic started by: Trillium on January 23, 2007, 04:54:40 am

Title: hosting bot on vps
Post by: Trillium on January 23, 2007, 04:54:40 am
I have been hosting my bot on my home personal machine and it's been running great w/o any issues.  Recently I decided to rent a vps to host the bot and a Teamspeak server, figured the server would be more stable then my old machine.  Have mysql and php installed on the server created my db, upgraded some of the various tables like the local items db and such, tested it on one of my bots and all is good running the bot on my machine using the hosted db.  So now its time to move my bots over and get them running.  Transfer them over and get permissions set, jump onto ssh to start up the bot, navigate to the correct directory and type ./start.php and this is what I get ...

./start.php:  Line 1:  ?: No such file or directory
./start.php:  Line 2:  /aquota.group:  Permission denied
./start.php:  Line 3:  AOChat.php:  command not found
./start.php:  Line 4:  AOChat.php:  command not found
./start.php:  Line 5:  AOChat.php:  command not found
./start.php:  Line 6:  syntax error near unexpected token '('
./start.php:  Line 6:  '* Copyright (c) 2004 Jonar Jax'

I thought I had set permissions correct and had the correct path, as this is the first time I've used ssh I've had to look up a lot of the commands.  As the bot runs fine on my personal machine but not the vps my frustration lvl is high so I come to you that have more knowledge than I and ask for your help.  If you guys and gals can point me in the right direction it would be greatly appreciated.

vps is running fedora core, php is php-4.4.4
Title: Re: hosting bot on vps
Post by: Vhab on January 23, 2007, 06:44:49 am
At first glance, you're starting it wrong.
You do:
./start.php
rather than:
php -c . start.php
Title: Re: hosting bot on vps
Post by: Trillium on January 23, 2007, 09:14:40 am
ok bot is now trying to load but getting AOchat error...

[23-Jan-2007 00:07:52] PHP Warning:  socket_read() expects parameter 1 to be resource, null given in /home/bots/Priory/AOChat.php on line 222
[23-Jan-2007 00:07:52] PHP Warning:  socket_write() expects parameter 1 to be resource, null given in /home/bots/Priory/AOChat.php on line 310
[23-Jan-2007 00:07:52] PHP Warning:  Could not connect to the AO Chat server (chat2.d1.funcom.com:7012): No address associated with name in /home/bots/Priory/AOChat.php on line 177
Title: Re: hosting bot on vps
Post by: Trillium on January 29, 2007, 03:03:51 am
fix one problem and another crops up went through aochat posts made sugested changes and now getting the following errors ...

[28-Jan-2007 17:58:08] PHP Warning:  dl(): Unable to load dynamic library './aokex.dll' - ./aokex.dll: invalid ELF header in /home/bots/Priory/AOChat.php on line 41
[28-Jan-2007 17:58:08] PHP Warning:  Could not connect to the AO Chat server (chat2.d1.funcom.com:7012): No address associated with name in /home/bots/Priory/AOChat.php on line 179


It would seem I'm still having an AOChat problem but I have no idea what to try next, any help is apreciated.
Title: Re: hosting bot on vps
Post by: Glarawyn on January 29, 2007, 04:07:11 pm
Looks like your running on a Linux server but your bot is trying to load windows DLLs.

In your bot directory, rename php.ini to php.txt.
Title: Re: hosting bot on vps
Post by: Trillium on February 12, 2007, 01:36:16 am
still getting error ..

[11-Feb-2007 16:32:55] PHP Warning:  Could not connect to the AO Chat server (chat2.d1.funcom.com:7012): No address associated with name in /home/bots/priory/AOChat.php on line 177

I've compiled gmp and aokex on my server with no errors in the process but aochat simply won't work for me.  Dunno what I'm doing wrong.
Title: Re: hosting bot on vps
Post by: Keepbrave on February 12, 2007, 01:44:28 am
Use the new version now out.

Khalem had it setup and teste don my VPS withc is a Cent-OS 64bit VPS and it works great not a single problem with it and works faster than the current IGN bot our guild has.

Grab the new version and use that.
Title: Re: hosting bot on vps
Post by: Trillium on February 12, 2007, 02:21:40 am
getting new version and crossing fingers
Title: Re: hosting bot on vps
Post by: Trillium on February 16, 2007, 05:16:10 am
downloaded new bot 0.2.11 and installed it on my server, changed config files bot and mysql to reflect correct info and go to run the bot using either php -c . start.php or screen -A -m -d -S redbot php start.php all I'm getting is .. Could not open input file: Main.php

This has been frustrating beyond belief any aditional help on the continuing problem would be greatly apreciated.
Title: Re: hosting bot on vps
Post by: Vhab on February 16, 2007, 06:47:51 am
it's a linux related bug in that release.
replace start.php with http://svn.shadow-realm.org/index.py/BeBot/branches/0.2/start.php?revision=384
Title: Re: hosting bot on vps
Post by: Trillium on February 16, 2007, 07:06:03 am
well it seems to have been a stupid thing, was as simple as renaming main.php to Main.php  .. how lame is that but it seems to be working
Title: Re: hosting bot on vps
Post by: Glarawyn on February 16, 2007, 11:33:05 pm
well it seems to have been a stupid thing, was as simple as renaming main.php to Main.php  .. how lame is that but it seems to be working

Yeah Khalem tested 0.2.11 on his Windows box. Filenames are not case sensitive on Windows, but they are on Linux/Unix. ;)
SimplePortal 2.3.7 © 2008-2024, SimplePortal