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

Server Panel (Start, Stop and Restart)

Post by Jack » Sun Oct 16, 2011 5:38 pm

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 » Sun Oct 16, 2011 6:25 pm

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: 4384
Joined: Fri Apr 09, 2010 3:20 pm
Location: United States
Contact:

Re: Server Panel (Start, Stop and Restart)

Post by ant_8490 » Sun Oct 16, 2011 11:18 pm

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: 1247
Joined: Fri Apr 09, 2010 4:01 pm
Location: Norway, Oslo

Re: Server Panel (Start, Stop and Restart)

Post by Jack » Mon Oct 17, 2011 3:56 am

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 » Mon Oct 17, 2011 7:25 pm

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 » Mon Oct 17, 2011 7:40 pm

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: 4384
Joined: Fri Apr 09, 2010 3:20 pm
Location: United States
Contact:

Re: Server Panel (Start, Stop and Restart)

Post by ant_8490 » Mon Oct 17, 2011 8:11 pm

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 » Mon Oct 17, 2011 10:35 pm

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: 1247
Joined: Fri Apr 09, 2010 4:01 pm
Location: Norway, Oslo

Re: Server Panel (Start, Stop and Restart)

Post by Jack » Tue Oct 18, 2011 9:58 am

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 » Tue Oct 18, 2011 6:23 pm

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: 4384
Joined: Fri Apr 09, 2010 3:20 pm
Location: United States
Contact:

Re: Server Panel (Start, Stop and Restart)

Post by ant_8490 » Tue Oct 18, 2011 6:50 pm

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: 1247
Joined: Fri Apr 09, 2010 4:01 pm
Location: Norway, Oslo

Re: Server Panel (Start, Stop and Restart)

Post by Jack » Thu Dec 01, 2011 2:29 pm

k, solved.

Jack
Former Server Admin
Posts: 1247
Joined: Fri Apr 09, 2010 4:01 pm
Location: Norway, Oslo

Re: Server Panel (Start, Stop and Restart)

Post by Jack » Sat Jan 07, 2012 7:59 pm

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 » Sun Jan 08, 2012 2:25 pm

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.

Locked