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.)
Jack
Former Server Admin
Posts: 1251
Joined: Fri Apr 09, 2010 4:01 pm
Location: Norway, Oslo

Server Panel (Start, Stop and Restart)

Post by Jack »

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.
User avatar
Blake
500+ Posts
500+ Posts
Posts: 588
Joined: Mon Jul 05, 2010 8:51 pm
Location: Ontario, Canada

Re: Server Panel (Start, Stop and Restart)

Post by Blake »

Uuseeeeeeeeeeeeeeee web servarrrrrrrrrrrrr with PHHHHHPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP and MAKEEEEEEEEEE
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.
User avatar
ant_8490
Site Admin
Posts: 4390
Joined: Fri Apr 09, 2010 3:20 pm
Location: United States

Re: Server Panel (Start, Stop and Restart)

Post by ant_8490 »

yes php is needed. "exec" command is helpful.
[GR]Ant_8490{A}
Area 51 Servers - Owner
Image
Image
Image
Image

MSI GE76 Raider
i9-11980HK 2.6GHz 8-Core Processor
32GB 3200Mhz DDR4 RAM
NVIDIA GeForce RTX 3080 Laptop GPU 16GB
2TB Samsung 980 Pro SSD
Windows 10
Jack
Former Server Admin
Posts: 1251
Joined: Fri Apr 09, 2010 4:01 pm
Location: Norway, Oslo

Re: Server Panel (Start, Stop and Restart)

Post by Jack »

PHP is already working on webserver :-P
User avatar
killman2639
Former Server Admin
Posts: 292
Joined: Mon Aug 23, 2010 8:41 pm

Re: Server Panel (Start, Stop and Restart)

Post by killman2639 »

Hi, I'm Reloaded. :)

Image

Code: Select all

[GR|CMX] Reelawded | Reloaded :  hi, im black
[GR|CMX] Reelawded | Reloaded :  shit
Disconnect: being black.
Disconnect: being black.
User avatar
Blake
500+ Posts
500+ Posts
Posts: 588
Joined: Mon Jul 05, 2010 8:51 pm
Location: Ontario, Canada

Re: Server Panel (Start, Stop and Restart)

Post by Blake »

Jack wrote:PHP is already working on webserver :-P
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 it
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.
User avatar
ant_8490
Site Admin
Posts: 4390
Joined: Fri Apr 09, 2010 3:20 pm
Location: United States

Re: Server Panel (Start, Stop and Restart)

Post by ant_8490 »

Blake wrote:
Jack wrote:PHP is already working on webserver :-P
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 it
Setup a webserver on that PC just for that one page.
[GR]Ant_8490{A}
Area 51 Servers - Owner
Image
Image
Image
Image

MSI GE76 Raider
i9-11980HK 2.6GHz 8-Core Processor
32GB 3200Mhz DDR4 RAM
NVIDIA GeForce RTX 3080 Laptop GPU 16GB
2TB Samsung 980 Pro SSD
Windows 10
User avatar
Blake
500+ Posts
500+ Posts
Posts: 588
Joined: Mon Jul 05, 2010 8:51 pm
Location: Ontario, Canada

Re: Server Panel (Start, Stop and Restart)

Post by Blake »

ant_8490 wrote:
Blake wrote:
Jack wrote:PHP is already working on webserver :-P
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 it
Setup a webserver on that PC just for that one page.
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?)
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.
Jack
Former Server Admin
Posts: 1251
Joined: Fri Apr 09, 2010 4:01 pm
Location: Norway, Oslo

Re: Server Panel (Start, Stop and Restart)

Post by Jack »

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.
User avatar
killman2639
Former Server Admin
Posts: 292
Joined: Mon Aug 23, 2010 8:41 pm

Re: Server Panel (Start, Stop and Restart)

Post by killman2639 »

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.
WAMP or XAMPP maybe? Those are free and good.
Hi, I'm Reloaded. :)

Image

Code: Select all

[GR|CMX] Reelawded | Reloaded :  hi, im black
[GR|CMX] Reelawded | Reloaded :  shit
Disconnect: being black.
Disconnect: being black.
User avatar
ant_8490
Site Admin
Posts: 4390
Joined: Fri Apr 09, 2010 3:20 pm
Location: United States

Re: Server Panel (Start, Stop and Restart)

Post by ant_8490 »

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.
[GR]Ant_8490{A}
Area 51 Servers - Owner
Image
Image
Image
Image

MSI GE76 Raider
i9-11980HK 2.6GHz 8-Core Processor
32GB 3200Mhz DDR4 RAM
NVIDIA GeForce RTX 3080 Laptop GPU 16GB
2TB Samsung 980 Pro SSD
Windows 10
Jack
Former Server Admin
Posts: 1251
Joined: Fri Apr 09, 2010 4:01 pm
Location: Norway, Oslo

Re: Server Panel (Start, Stop and Restart)

Post by Jack »

k, solved.
Jack
Former Server Admin
Posts: 1251
Joined: Fri Apr 09, 2010 4:01 pm
Location: Norway, Oslo

Re: Server Panel (Start, Stop and Restart)

Post by Jack »

Not really solved... Could anyone give me a php example of the restarting thing?
Btw, Website is working :=)
User avatar
Blake
500+ Posts
500+ Posts
Posts: 588
Joined: Mon Jul 05, 2010 8:51 pm
Location: Ontario, Canada

Re: Server Panel (Start, Stop and Restart)

Post by Blake »

Jack wrote:Not really solved... Could anyone give me a php example of the restarting thing?
Btw, Website is working :=)
Really? look up command line execution in php.
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.