Aegis Support Board: Ro Server Status Page - Aegis Support Board

Jump to content

ASB News! ASB 5.0 Beta V2 has now been released!. See here for more Info.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Ro Server Status Page With Nifty Chart Generator :D!

#1 User is offline   Kaihn 

  • Average Member
  • PipPipPipPip
  • Group: Members
  • Posts: 181
  • Joined: 02-June 03

  Posted 24 July 2004 - 09:02 AM

Alrighty Folks, please excuse me if I'm a bit sparse on this Post with the Detail, but I've been working all night on this getting it finished and Tweaked up to post on here for ya'll.

What I've done is made a much more reasonable Status Page

My Arguement being the Scripts that Connect to the Servers VIA TCP Socket everytime someone Accesses them are a little lame, if ya think about it... especially when the Server is 'down' and the timeout causes the page to 'lag'

WELL this is a little different, ya see the WebPage doesn't connect to the Server at all, I've made a sister program to go along with it that does all the dirty work.

It also Generates nice little Charts that Display Information for whats been happening with the Server over a Period of time (like up/down times for the entire day, or week, whatever)

I'll warn you now though... I'm not nice, and I don't like PHP... so I don't use PHP, I prefer Perl WAAAYYYY over PHP, cause I think its alot better than PHP.... so I used Perl... don't like that? I don't care :) (maybe someday I'll be motivated to spiff up a PHP version... maybe.)

All you need now is a WebServer, Perl, MySQL (MSSQL Option coming soon! rawr~) Cron (is preferred and CAN be found for a Win32 WebServer, just hunt Google or something)

Here's my Online "Demo": http://www.rionnagar...atus/status.cgi

Any Questions, comments, rants can be posted here... of course... there's also my Email

Everything NEEDED should be in the readme.txt ... This is pretty dummy proof... I think.

I hope this benifits, or amuses at least someone :o Have fun lol

:socute:

Any Problems, cause I might have made mistakes... I wont claim this is perfect, but I'd like to think so, Please let me know... I should be able to resolve any issues quickly and place a 'patch' release ASAP. Thanks!

One Thought: I'll throw this on the Upload As Well, in case my WebServer is inaccessable. :x

Attached File(s)


This post has been edited by Kaihn: 24 July 2004 - 09:09 AM

0

#2 User is offline   Nebu 

  • Average Member
  • PipPipPipPip
  • Group: Members
  • Posts: 159
  • Joined: 01-March 03

Posted 24 July 2004 - 12:08 PM

An exemple of what can be done with PHP

http://fro.vanadiel-fr.com
(The Sw is in french sorry, and he is stopped because the server is closed look at the history)
0

#3 User is offline   bahn 

  • GOORU e motto ii
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 3855
  • Joined: 22-April 03
  • Location:Canada

Posted 24 July 2004 - 01:55 PM

Wow those are both awesome script's!
0

#4 User is offline   Nebu 

  • Average Member
  • PipPipPipPip
  • Group: Members
  • Posts: 159
  • Joined: 01-March 03

Posted 24 July 2004 - 02:57 PM

mine uses CRON, a PHP Bot i made who connects to the server interact with players and do a /who to know the nb of connected players and store this number into a database
0

#5 User is offline   echira 

  • Average Member
  • PipPipPipPip
  • Group: Members
  • Posts: 129
  • Joined: 25-November 03
  • Location:\\texas\houston\

Posted 31 July 2004 - 09:18 AM

Nebu... ya know, that BOT could be pretty useful... such as, the accountEMU, has problems sometimes with entries that are not in the t_user table for users that haven't gotten in at least once... but if their friend, who is in the t_user table, logs in the new account from their own computer, the first guy can get in fine. what if, to fix this error, you had a php bot log in the new account once when it's made to aliviate this bug?
0

#6 User is offline   Nebu 

  • Average Member
  • PipPipPipPip
  • Group: Members
  • Posts: 159
  • Joined: 01-March 03

Posted 31 July 2004 - 04:32 PM

correct me if i'm wrong but mal fix this bug in his lastest version of Accountemu no?

But yes i think it's possible, i'd like to recode the bot because i made it quickly and the code isn't clean
0

#7 User is offline   Kaihn 

  • Average Member
  • PipPipPipPip
  • Group: Members
  • Posts: 181
  • Joined: 02-June 03

  Posted 01 August 2004 - 03:50 AM

Wow, talk about off topic... thanks ;_;
0

#8 User is offline   ChewYeong 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 6
  • Joined: 08-May 04

Posted 01 August 2004 - 04:00 PM

kaihn ... where can i download WebServer, Perl, MySQL ???? and my web didint read it instead it display those code... why??
0

#9 User is offline   Nebu 

  • Average Member
  • PipPipPipPip
  • Group: Members
  • Posts: 159
  • Joined: 01-March 03

Posted 01 August 2004 - 06:00 PM

Webserver and MySQL take EasyPHP
Download ActivePerl

And then edit your httpd.conf and put this:
<Directory "x:/easyphp/cgi-bin">
Options All
AllowOverride None
Order allow,deny
Allow from all
</Directory>

ScriptAlias /cgi-bin/ "x:/easyphp/cgi-bin/"

AddHandler cgi-script .cgi
AddHandler cgi-script .pl


And then you can put your perl script here: x:/easyphp/cgi-bin/

And edit all your perl script and put this: #!c:/easyphp/perl/bin/perl.exe
to call the perl module

(change drive letter and directory if needed)

It's only if you wanna use this script on a localy webserver
if you wanna use this script on you webhost he must support cgi scripts and don't forget to change CHMOD
0

#10 User is offline   Kaihn 

  • Average Member
  • PipPipPipPip
  • Group: Members
  • Posts: 181
  • Joined: 02-June 03

Posted 02 August 2004 - 07:12 AM

I just use the newest stable versions of the software:

Apache http://www.apache.org (Webserver)
Perl http://www.perl.org (or http://www.activesta...cts/ActivePerl/ for working on a Win32 box)
MySQL http://www.mysql.org

It really all depends on what OS you're running... if your running a *nux Box then I dunno... hell, the software listed above is NATIVE to Linux... but I use Win2k Server, and I just like how Apache works over IIS... so... nyeh ;_;

The only thing is with your Webserver you need to tweak some settings so that it will run Perl scripts correctly... instead of displaying the code as text to the browser :rolleyes:
0

#11 User is offline   ChewYeong 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 6
  • Joined: 08-May 04

Posted 02 August 2004 - 08:10 AM

well ... im still kind of blurr :rolleyes: ... can u make me a full guide??? all ur hard work and kindness will have my appreciation fully.... thx~~

besides that ... the apache.org... what should i download from there???

and nebu wat do u mean by

Quote

Webserver and MySQL take EasyPHP
Download ActivePerl


thx for all ur help...
0

#12 User is offline   Nebu 

  • Average Member
  • PipPipPipPip
  • Group: Members
  • Posts: 159
  • Joined: 01-March 03

Posted 02 August 2004 - 09:56 AM

EasyPHP is a Webserver and MySQL server for Windows
Download and install it: http://www.easyphp.org

Then you need ActivePerl to support Perl scripts: http://www.activestate.com/Products/Downlo...x?id=ActivePerl

And then you have to configure your webserver like i say before
Search httpd.conf add the few lines restart EasyPHP, do the modifications to the script, put him in the correct directory and it should work fine
0

#13 User is offline   ChewYeong 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 6
  • Joined: 08-May 04

Posted 03 August 2004 - 11:53 AM

i downloaded the easyPHP and about the activeperl... but when i click install it says that WRONG OS OR OS APPLICATION ... im using window XP and which activepearl should i download actually???? the AS package or MSI and which versio0n ??? ActivePerl 5.8.4 build 810 or ActivePerl 5.6.1 build 638 ??????? and
i saw the apache file in the easyPHP ... does that mean that i need not to download from apache.org... and bout the mySQL it seems that the server is running.. does it mean that i dont need to download from the mysql.org ?????

well, im still kind of blur actually B) .... do u have a msn messenger or yahoo so that i can chat with u ????? THX ~~ :)
0

#14 User is offline   Nebu 

  • Average Member
  • PipPipPipPip
  • Group: Members
  • Posts: 159
  • Joined: 01-March 03

Posted 03 August 2004 - 03:53 PM

Quote

The Windows AS Package provides NO uninstall functionality, and is recommended only if you are unable to install ActivePerl using the MSI installer.


Quote

ActivePerl 5.6.1.638

ActivePerl 5.6.1.638 addresses an identified security issue related to win32_stat. Although exposure is rare, ActiveState is providing a patch here and to core Perl because the issue could result in data loss.


Quote

Windows Installer 2.0+ is required for Windows.

download for 9x/Me
download for NT


Found on the URL i gave to you

EasyPHP included Apache and Mysql and EasyPHP configure and launch them so no need to d/l Apache or Mysql
0

#15 User is offline   ChewYeong 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 6
  • Joined: 08-May 04

Posted 06 August 2004 - 09:20 AM

hmm... i downloaded the active perl and the easyPHP and now both working finely... then where is the file httpd.conf ???? i cant find it ... thx ~~!!
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users