[PHP] Nouse Web Tool Bundle V2.1

Discuss everything about Xymph's Aseco flavoured server control scripts for TM Forever / classic TMN and for TM² Canyon.

Moderators: Xymph, TM-Patrol

nouseforname
swift roadking
swift roadking
Posts: 840
Joined: 20 Apr 2008 08:58
Owned TM-games: TMUF,TMNF, TMN
Manialink(s): therookies
Location: Germany
Contact:

[PHP] Nouse Web Tool Bundle V2.1

Post by nouseforname » 08 Sep 2009 18:11

  • Nouse Web Tool Bundle V2.1

    Update 2.1:
    - changed the shell scripts to a better way to handle the processes (thanks to nocturne)
    - server user should be named "tmf" otherwhise you need to edit
    /tools/Control/index.php line 39 "sudo -u tmf" to the correct user

    Update:
    - added function to view some pages without log in, must be enabled via user permissions of user "view"
    - added clan member online view, incl chat. (atm only available in bundle)
    - fixed (i hope) some security issues
    - fixed some style bugs

    how to update:
    i recommend to install it from scratch, but its possible to keep server.xml.

    remark:
    read the informations in readme.txt for the "view only" function. not all pages are available for that.

    Here we go,

    i created a bundle package of all my web tools. some are modified and improved. Also some new tools inside.
    all with user/server management via web interface.

    Whats inside:
    - Website Chat Log Viewer, now with seperate log file path for each server and track change display if checked
    - CheatRecordsDelete from DB, now with possibillity to delete single records of one given login and some more nice information. better than the original one.
    - Website Backup tracks, to backup tracks of online servers.
    - Prune tracks, delete older track data from database
    - State control bundle (linux only), with web interface to start/stop/restart dedicated and/or xaseco
    - a nice status view of all servers, with online players list
    - clan member server ranking list
    - more in the future possible

    installation:
    - read the readme.txt
    - copy all files to web server
    - call page in your browser
    - chmod neccessary files
    - login with Admin / admin
    - add/change user settings via interface
    - some settings must be set on your server itself, in case script dont work. specially for the state control interface.
    - you may have problems with Gbx.remote.inc.php, try one of the others gbx.remote files in "Classes" folder.

    also this information might be useful for the state control and other problems:
    viewtopic.php?p=161143#p161143

    it's quite easy to add tools/pages just by adding the name into the tools.xml. of course the page must be prepared too.

    download:
    Download here

    Have fun using it and let me know if you like it.

    thanks all
Last edited by nouseforname on 30 Dec 2010 12:30, edited 7 times in total.
Owner of the Rookie servers and some more. :)
Rookies HP
My Project
Rookies Manialinkcolor>

Xymph
Pit Crew
Pit Crew
Posts: 5647
Joined: 19 Aug 2007 12:58
Owned TM-games: TMN, TMU, TMF, TM²
Contact:

Re: Nouse Web Tool Bundle RC_1

Post by Xymph » 08 Sep 2009 20:38

Wouldn't this be more suitable for the general Toolbox forum?
Developer of XASECO for TMF/TMN ESWC & XASECO2 for TM²: see XAseco.org
Find your way around the Mania community from the TMN ESWC hub, TMF hub, TM² hub, and SM hub

nouseforname
swift roadking
swift roadking
Posts: 840
Joined: 20 Apr 2008 08:58
Owned TM-games: TMUF,TMNF, TMN
Manialink(s): therookies
Location: Germany
Contact:

Re: Nouse Web Tool Bundle RC_1

Post by nouseforname » 09 Sep 2009 03:34

Xymph wrote:Wouldn't this be more suitable for the general Toolbox forum?
for the test yes, but some of the script are just made for xaseco, so i would say it's basically for xaseco users.
with a little modification it can be used for Aseco too i think. didnt test it.
all others can't use half of the scripts, or even don't need it.
maybe a second thread in generell toolbox, for those who still wanna use the generell tools is possible, but later.

xAseco:
- CheatRecordsDelete
- Prune tracks
- State control

generell:
- Website Chat Log Viewer
- Website Backup tracks
- statusview
Owner of the Rookie servers and some more. :)
Rookies HP
My Project
Rookies Manialinkcolor>

ferenyl
cyclist
cyclist
Posts: 37
Joined: 26 Jul 2008 13:37
Owned TM-games: tmuf

Re: Nouse Web Tool Bundle RC_1

Post by ferenyl » 09 Sep 2009 13:30

im going to test this. i will be back with a report soon

nouseforname
swift roadking
swift roadking
Posts: 840
Joined: 20 Apr 2008 08:58
Owned TM-games: TMUF,TMNF, TMN
Manialink(s): therookies
Location: Germany
Contact:

Re: Nouse Web Tool Bundle RC_1

Post by nouseforname » 11 Sep 2009 17:32

30 downloads yet.
what about any information?
Owner of the Rookie servers and some more. :)
Rookies HP
My Project
Rookies Manialinkcolor>

Rasta Triskell
wheelbarrow operator
wheelbarrow operator
Posts: 15
Joined: 14 Sep 2008 17:33
Owned TM-games: TMU

Re: Nouse Web Tool Bundle RC_1

Post by Rasta Triskell » 11 Sep 2009 19:22

Hi All

The script works very well change after the rights of the user sudo
everything else is very good

very good work

ty again Nouse

nouseforname
swift roadking
swift roadking
Posts: 840
Joined: 20 Apr 2008 08:58
Owned TM-games: TMUF,TMNF, TMN
Manialink(s): therookies
Location: Germany
Contact:

Re: Nouse Web Tool Bundle RC_1

Post by nouseforname » 11 Sep 2009 20:03

  • here we go:

    i found some little bugs. fixed and updated download pack to RC2.

    i forgot to mention one of the most important settings to get the Control script working.

    you have to add in /etc/sudoers:

    Code: Select all

    www-data ALL=(ALL) NOPASSWD: /path/to/shellscripts/* 
    usually the user is "www-data", in case you are using xampp, it's "nobody".

    this setting will change the permission of the web script user, to be able to execute the shell files in the given folder.
    in case you dont want to run the servers as root, create a user eg.: tmf and add

    sudo -u tmf

    in the shell scripts SAMPLExaseco:

    Code: Select all

    sudo -u tmf /usr/bin/php $NAME.php </dev/null >aseco.log 2>&1 &
    SAMPLEdedi:

    Code: Select all

     sudo -u tmf ./$DEDINAME /dedicated_cfg=$DEDICONF /game_settings=MatchSettings/$MATCHSETTINGS > /dev/null
    xampp users have to change some values in php.ini if original.
    i am not 100% sure if all are needed, but at least after set this it worked.
    php.ini:

    Code: Select all

    y2k_compliance = On
    safe_mode_gid = Off
    register_globals = Off
    session.use_trans_sid = 0
    
    remark again:
    the "control" script of the bundle only works in linux, cause it controls the shell files.


    for the other scripts it might be neccessary to set this in php.ini:

    Code: Select all

    php_admin_flag engine on
    php_admin_flag safe_mode off
    php_admin_value open_basedir none
Last edited by nouseforname on 12 Sep 2009 06:56, edited 1 time in total.
Owner of the Rookie servers and some more. :)
Rookies HP
My Project
Rookies Manialinkcolor>

scg-flighthigh
smooth traffic navigator
smooth traffic navigator
Posts: 199
Joined: 05 May 2009 15:52
Owned TM-games: TM2

Re: [PHP] Nouse Web Tool Bundle RC_2

Post by scg-flighthigh » 12 Sep 2009 06:34

Hello nouseforname

In your Startpost is no advice for the OS. In the readme-file you told : "running on linux"

I thing, you told it at another Topic, that you make only Scripts for Linuxsystems.

Ist this Bundle only for Linux OS ?

nouseforname
swift roadking
swift roadking
Posts: 840
Joined: 20 Apr 2008 08:58
Owned TM-games: TMUF,TMNF, TMN
Manialink(s): therookies
Location: Germany
Contact:

Re: [PHP] Nouse Web Tool Bundle RC_2

Post by nouseforname » 12 Sep 2009 07:03

scg-flighthigh wrote:Hello nouseforname

In your Startpost is no advice for the OS. In the readme-file you told : "running on linux"

I thing, you told it at another Topic, that you make only Scripts for Linuxsystems.

Ist this Bundle only for Linux OS ?
i think i didn't articulate it clear enough. but at least i made this in first post:
- State control bundle (linux only), with web interface to start/stop/restart dedicated and/or xaseco
you can use the tool bundle on each web server, windows and linux. cause main function is normal web servers function, display and update mysql data etc. or display dedicated server data.

BUT ( yes there is one but)

the "Control" script itself just execute the shell files via web interface, and the shell scripts are linux only.

so the bundle is mainly for linux systems with dedicated servers and xaseco. if you running the servers at windows, just disable "Control", but the other 5 tools can be used. if you don't diable "control" u can view the page and click buttons, but nothing will happen ;).

clear now?
Owner of the Rookie servers and some more. :)
Rookies HP
My Project
Rookies Manialinkcolor>

scg-flighthigh
smooth traffic navigator
smooth traffic navigator
Posts: 199
Joined: 05 May 2009 15:52
Owned TM-games: TM2

Re: [PHP] Nouse Web Tool Bundle RC_2

Post by scg-flighthigh » 12 Sep 2009 07:35

OK thanks i think that it is so if you told me that.

But one Question is better than a "Blackout" of the Serverstruktur.

I download the bundle and look whats in it.

I think that is disable the Control with this line

Code: Select all

<!--	<tool>Control</tool> -->
and than i take a look into your bundlepack. :thumbsup:

scg-flighthigh
smooth traffic navigator
smooth traffic navigator
Posts: 199
Joined: 05 May 2009 15:52
Owned TM-games: TM2

Re: [PHP] Nouse Web Tool Bundle RC_2

Post by scg-flighthigh » 12 Sep 2009 10:06

Here my way:

Put my Database and Server info into the servers.xml. There is a Problem. I have a Win-Systemserver with Plesk. In Plesk you cant give to different Databases the same Loginname and Password. So for my Test i make only one Server. I make a <!-- for the second Server -->

Then i upload it and call the index.php over Firefox. I make a login with Admin admin and change the Adminpassword. So i make a new Login with this new Password. All is ok. But if i klick Status i get an Errormessage like this:

Code: Select all

Warning: unpack() [function.unpack]: Type V: not enough input, need 4, have 0 in D:\inetpub\vhosts\sc-gamer.de\httpdocs\statistik\test\classes\GbxRemote.inc.php on line 495
I have no idea whats wrong :oops:

nouseforname
swift roadking
swift roadking
Posts: 840
Joined: 20 Apr 2008 08:58
Owned TM-games: TMUF,TMNF, TMN
Manialink(s): therookies
Location: Germany
Contact:

Re: [PHP] Nouse Web Tool Bundle RC_2

Post by nouseforname » 12 Sep 2009 10:48

scg-flighthigh wrote:Here my way:

Put my Database and Server info into the servers.xml. There is a Problem. I have a Win-Systemserver with Plesk. In Plesk you cant give to different Databases the same Loginname and Password.
thats funny, i also use plesk, but i can go phpmyadmin and make all databases with same user. never heard that kinda problem.
I have no idea whats wrong :oops:
i think some mistake with configuration. status need server connection, port, admin name and password. nothing with db.

could u send me your config via pm?

btw server and tool all at same machine?
Owner of the Rookie servers and some more. :)
Rookies HP
My Project
Rookies Manialinkcolor>

scg-flighthigh
smooth traffic navigator
smooth traffic navigator
Posts: 199
Joined: 05 May 2009 15:52
Owned TM-games: TM2

Re: [PHP] Nouse Web Tool Bundle RC_2

Post by scg-flighthigh » 12 Sep 2009 11:08

Yes the Server and Tools are on the same Maschine.

You got an PM from me

nouseforname
swift roadking
swift roadking
Posts: 840
Joined: 20 Apr 2008 08:58
Owned TM-games: TMUF,TMNF, TMN
Manialink(s): therookies
Location: Germany
Contact:

Re: [PHP] Nouse Web Tool Bundle V1.0

Post by nouseforname » 13 Sep 2009 19:20

  • Released V1.0

    updated first post.
    i think now all problems are clear and easy to solve at different systems.
Owner of the Rookie servers and some more. :)
Rookies HP
My Project
Rookies Manialinkcolor>

nouseforname
swift roadking
swift roadking
Posts: 840
Joined: 20 Apr 2008 08:58
Owned TM-games: TMUF,TMNF, TMN
Manialink(s): therookies
Location: Germany
Contact:

Re: [PHP] Nouse Web Tool Bundle V2.0

Post by nouseforname » 03 Oct 2009 07:26

  • Released V2.0

    updated first post.
Owner of the Rookie servers and some more. :)
Rookies HP
My Project
Rookies Manialinkcolor>

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 0 guests