Results 1 to 12 of 12
  1. #1

    Gameserver panel [gameserver startup]

    I'm building my own gameserver control panel.

    But I want to include some nice features.

    The problem at thi moment is to start the server when it's offline.

    I now it need to be done through the shell. But I don't know how.
    I'm programming in php.
    I have already several colocated servers running. But it need to be possible to send a command on my websever to the gameserver(another colocated server) to startup the gameserver.

    Has anyone an advice for this?

  2. #2
    Join Date
    Mar 2002
    Location
    New York
    Posts
    1,700
    Write a perl script to do it, then call it from PHP

  3. #3
    but a perl script, i'm not familir with perl.

    If you can program in perl i can pay you to create this?

    Are there other ways for this?

  4. #4
    Join Date
    Jun 2004
    Posts
    78
    For PHP:

    Look into the exec() and system() and passthru() functions.

    They execute commands on the system (*nix only I believe)

  5. #5
    Join Date
    May 2004
    Location
    Tucson, Arizona
    Posts
    217
    I would suggest getting some of the premade scripts, phpadmin(checkyour6.net) comes to mind, and writing your control panel as a frontend that calls the functions of the premade scripts.
    Plain Fast Small Business Web Hosting & Server Management

  6. #6
    Join Date
    Jan 2004
    Location
    UK
    Posts
    3,207
    i would suggest using webmin and setting up custom buttons to edit all the config files you want and to stop, start and restart the server etc. save the money and the effort

  7. #7
    Join Date
    Oct 2001
    Location
    Ann Arbor, MI U.S.A.
    Posts
    217
    I'd check out xml-rpc (http://www.xmlrpc.com/). Don't worry about doing anything in perl if you don't know much about perl. Anything you can do in perl can be done in PHP. xmL-rpc is nice as it defines a clear interface between talking entities (i.e. servers), is very lightweight, has PHP bindings, and can be performed over a secure channel. It's *almost* as easy as wrighting a script for location execution, but it happens on a remote box...almost .

    Chris
    Chris Wells [clwells - at - nexcess.net]
    Nexcess - Beyond Hosting
    Dearborn, MI DC ● Southfield, MI DC
    Wordpress Hosting, Magento Hosting & More!

  8. #8
    Join Date
    May 2004
    Posts
    246
    I wouldn't say you can do everything in perl in PHP.

  9. #9
    Join Date
    Oct 2001
    Location
    Ann Arbor, MI U.S.A.
    Posts
    217
    An example to support this claim is welcome .

    [[edit]] and to preemptively fend off the obvious retort, when/if I find the answer I'll let you know as well[[/edit]]

    Chris
    Last edited by nexcess.net; 06-18-2004 at 02:23 PM.
    Chris Wells [clwells - at - nexcess.net]
    Nexcess - Beyond Hosting
    Dearborn, MI DC ● Southfield, MI DC
    Wordpress Hosting, Magento Hosting & More!

  10. #10
    Did you find the solution to start/stop server ?

  11. #11
    hi, yesyes.

    My control panel is already finished

    thx anyway

  12. #12
    could you post or mail me the solution please ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •