Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
ahl
1,935 PointsMinecraft server control panel.
Hello.
This may be a bit odd request, and I think i'm the first who has asked about this on TTH.
I'm a frequent Minecraft player, and I have my own server. I would like to make a webbased control panel for my server. It should be like Multicraft (Multicraft.org) just alot more simple. I would just need the option to start, stop and restart the server. I'm not sure what language the code should be written in. Somehow the website should send a commandline to my server...As I said i'm not sure anybody on TTH knows how to create a thing like this. But if anybody could just point me in the right direction for creating something like this I would be happy.
I guess that PHP is the required language but i'm not sure.. :) Regards.
3 Answers
Richard Crawford-Wilson
6,094 PointsYou can do this with any language, or even just a basic CGI script. If you want to use PHP check out: http://php.net/manual/en/book.exec.php
All you need to do is: start the server. and stop it. To stop it you should keep the process id in a file, or in a database so you don't have to find it.
ahl
1,935 PointsHi.
Thanks for your answers.
Pedro, do you have time to maybe add me on skype, Facebook etc. and help me out a bit?
Thanks Adam
Pedro Baumann
12,815 PointsHello Adam, right now I don't have a nearly good access to the internet, but I could help you somehow through my email maybe? ondoheer@gmail.com
Pedro Baumann
12,815 PointsPedro Baumann
12,815 PointsExactly what Richard said. All programming languages have ways to send a direct command to the system You just have got to know the right commands. Depends on how your server is setup (mine was on my own Desktop PC (just a bunch of friends) so we actually just had a bash script to do what you just asked and would connect to it via SSH.