collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18366
  • stats Total Topics: 2501
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: hosting bot on vps  (Read 11177 times)

0 Members and 1 Guest are viewing this topic.

Offline Trillium

  • BeBot Rookie
  • *
  • Posts: 8
  • Karma: +0/-0
hosting bot on vps
« 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

Offline Vhab

  • Contributor
  • *******
  • Posts: 180
  • Karma: +0/-0
    • VhaBot Forum
Re: hosting bot on vps
« Reply #1 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

Offline Trillium

  • BeBot Rookie
  • *
  • Posts: 8
  • Karma: +0/-0
Re: hosting bot on vps
« Reply #2 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
« Last Edit: January 23, 2007, 09:30:56 am by Trillium »

Offline Trillium

  • BeBot Rookie
  • *
  • Posts: 8
  • Karma: +0/-0
Re: hosting bot on vps
« Reply #3 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.

Offline Glarawyn

  • BeBot Hero
  • ******
  • Posts: 521
  • Karma: +0/-0
Re: hosting bot on vps
« Reply #4 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.

Offline Trillium

  • BeBot Rookie
  • *
  • Posts: 8
  • Karma: +0/-0
Re: hosting bot on vps
« Reply #5 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.

Offline Keepbrave

  • BeBot User
  • **
  • Posts: 31
  • Karma: +0/-0
    • European Community United
Re: hosting bot on vps
« Reply #6 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.

Offline Trillium

  • BeBot Rookie
  • *
  • Posts: 8
  • Karma: +0/-0
Re: hosting bot on vps
« Reply #7 on: February 12, 2007, 02:21:40 am »
getting new version and crossing fingers

Offline Trillium

  • BeBot Rookie
  • *
  • Posts: 8
  • Karma: +0/-0
Re: hosting bot on vps
« Reply #8 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.

Offline Vhab

  • Contributor
  • *******
  • Posts: 180
  • Karma: +0/-0
    • VhaBot Forum
Re: hosting bot on vps
« Reply #9 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

Offline Trillium

  • BeBot Rookie
  • *
  • Posts: 8
  • Karma: +0/-0
Re: hosting bot on vps
« Reply #10 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

Offline Glarawyn

  • BeBot Hero
  • ******
  • Posts: 521
  • Karma: +0/-0
Re: hosting bot on vps
« Reply #11 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. ;)

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]

* Who's Online
  • Dot Guests: 324
  • 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