Server Panel (Start, Stop and Restart)
Forum rules
- Ask questions about or share code from languages other than Source Engine scripting.
- Start new topic titles with the code language in brackets (i.e. [C#], [C++], [PHP], etc.)
- Ask questions about or share code from languages other than Source Engine scripting.
- Start new topic titles with the code language in brackets (i.e. [C#], [C++], [PHP], etc.)
-
- Former Server Admin
- Posts: 1251
- Joined: Fri Apr 09, 2010 4:01 pm
- Location: Norway, Oslo
Server Panel (Start, Stop and Restart)
Hello,
I'm hosting a CS:S server from my house and sometimes when I have to restart it I have to do this manually or from teamviewer. I hate doing that all the time so I was wondering if it was possible to make a server panel which I can Start, Stop and Restart the server from my website. I tried to find out how I do this by searching on google, but everything was for linux.
I run my CS:S server from Windows XP and the webserver is linux and not hosted by me.
sry for bad grammar, i'm using a very laggy phone.
I'm hosting a CS:S server from my house and sometimes when I have to restart it I have to do this manually or from teamviewer. I hate doing that all the time so I was wondering if it was possible to make a server panel which I can Start, Stop and Restart the server from my website. I tried to find out how I do this by searching on google, but everything was for linux.
I run my CS:S server from Windows XP and the webserver is linux and not hosted by me.
sry for bad grammar, i'm using a very laggy phone.
-
- 500+ Posts
- Posts: 588
- Joined: Mon Jul 05, 2010 8:51 pm
- Location: Ontario, Canada
Re: Server Panel (Start, Stop and Restart)
Uuseeeeeeeeeeeeeeee web servarrrrrrrrrrrrr with PHHHHHPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP and MAKEEEEEEEEEE
WEB PAGEEEEEEEEEEEEEEE
that kills processsssssssssssssssssssssssssssssssssssssss / restartssssssssssss ittttttttttttttttttttttttttttttttttttttt with a loginnnnnnnnnnnnnnnnnnnnnnnnnn
WEB PAGEEEEEEEEEEEEEEE
that kills processsssssssssssssssssssssssssssssssssssssss / restartssssssssssss ittttttttttttttttttttttttttttttttttttttt with a loginnnnnnnnnnnnnnnnnnnnnnnnnn
Unkown wrote: Life’s too short to worry about the little things.
Albert Einstein wrote: You do not really understand something unless you can explain it to your grandmother.
-
- Site Admin
- Posts: 4390
- Joined: Fri Apr 09, 2010 3:20 pm
- Location: United States
Re: Server Panel (Start, Stop and Restart)
yes php is needed. "exec" command is helpful.
-
- Former Server Admin
- Posts: 1251
- Joined: Fri Apr 09, 2010 4:01 pm
- Location: Norway, Oslo
Re: Server Panel (Start, Stop and Restart)
PHP is already working on webserver
-
- Former Server Admin
- Posts: 292
- Joined: Mon Aug 23, 2010 8:41 pm
Re: Server Panel (Start, Stop and Restart)
The Hax: http://php.net/manual/en/function.exec.php. Might help... http://www.php.net/manual/en/function.system.php
Hi, I'm Reloaded. :)
Code: Select all
[GR|CMX] Reelawded | Reloaded : hi, im black
[GR|CMX] Reelawded | Reloaded : shit
Disconnect: being black.
Disconnect: being black.
-
- 500+ Posts
- Posts: 588
- Joined: Mon Jul 05, 2010 8:51 pm
- Location: Ontario, Canada
Re: Server Panel (Start, Stop and Restart)
wont work well since you need webserver and game server on same computer. as far as I know since Exec uses the computers directory and only files on itJack wrote:PHP is already working on webserver
Unkown wrote: Life’s too short to worry about the little things.
Albert Einstein wrote: You do not really understand something unless you can explain it to your grandmother.
-
- Site Admin
- Posts: 4390
- Joined: Fri Apr 09, 2010 3:20 pm
- Location: United States
Re: Server Panel (Start, Stop and Restart)
Setup a webserver on that PC just for that one page.Blake wrote:wont work well since you need webserver and game server on same computer. as far as I know since Exec uses the computers directory and only files on itJack wrote:PHP is already working on webserver
-
- 500+ Posts
- Posts: 588
- Joined: Mon Jul 05, 2010 8:51 pm
- Location: Ontario, Canada
Re: Server Panel (Start, Stop and Restart)
Hes to lazy... and why would he pay for a webserver if he can host one hur dur.. (idk why he doesn't maybuuuuuuuuueeeeeee he new?)ant_8490 wrote:Setup a webserver on that PC just for that one page.Blake wrote:wont work well since you need webserver and game server on same computer. as far as I know since Exec uses the computers directory and only files on itJack wrote:PHP is already working on webserver
Unkown wrote: Life’s too short to worry about the little things.
Albert Einstein wrote: You do not really understand something unless you can explain it to your grandmother.
-
- Former Server Admin
- Posts: 1251
- Joined: Fri Apr 09, 2010 4:01 pm
- Location: Norway, Oslo
Re: Server Panel (Start, Stop and Restart)
Blake wrote:Hes to lazy... and why would he pay for a webserver if he can host one hur dur.. (idk why he doesn't maybuuuuuuuuueeeeeee he new?)
new? lol and no. I'm not paying for the Webserver. A friend did then I got full ftp access.
-
- Former Server Admin
- Posts: 292
- Joined: Mon Aug 23, 2010 8:41 pm
Re: Server Panel (Start, Stop and Restart)
WAMP or XAMPP maybe? Those are free and good.Jack wrote:Blake wrote:Hes to lazy... and why would he pay for a webserver if he can host one hur dur.. (idk why he doesn't maybuuuuuuuuueeeeeee he new?)
new? lol and no. I'm not paying for the Webserver. A friend did then I got full ftp access.
Hi, I'm Reloaded. :)
Code: Select all
[GR|CMX] Reelawded | Reloaded : hi, im black
[GR|CMX] Reelawded | Reloaded : shit
Disconnect: being black.
Disconnect: being black.
-
- Site Admin
- Posts: 4390
- Joined: Fri Apr 09, 2010 3:20 pm
- Location: United States
Re: Server Panel (Start, Stop and Restart)
Some ppl may need both, a paid website and a home site. For example, a small home site, maybe not even a domain name for it, just to control the server. And a real website for your community. Like if you internet upload speed is terrible, then your website would not be useable for everyone, but would be enough for only the owner to maintain the server.
-
- Former Server Admin
- Posts: 1251
- Joined: Fri Apr 09, 2010 4:01 pm
- Location: Norway, Oslo
Re: Server Panel (Start, Stop and Restart)
k, solved.
-
- Former Server Admin
- Posts: 1251
- Joined: Fri Apr 09, 2010 4:01 pm
- Location: Norway, Oslo
Re: Server Panel (Start, Stop and Restart)
Not really solved... Could anyone give me a php example of the restarting thing?
Btw, Website is working :=)
Btw, Website is working :=)
-
- 500+ Posts
- Posts: 588
- Joined: Mon Jul 05, 2010 8:51 pm
- Location: Ontario, Canada
Re: Server Panel (Start, Stop and Restart)
Really? look up command line execution in php.Jack wrote:Not really solved... Could anyone give me a php example of the restarting thing?
Btw, Website is working :=)
Unkown wrote: Life’s too short to worry about the little things.
Albert Einstein wrote: You do not really understand something unless you can explain it to your grandmother.