Hey,
“Minecraft Admin” is split in two areas: frontend and backend.
The frontend is the plugin itselfs written in PHP and it installs the backend on your server. The backend is written in bash/shell.
At the moment we update our plugin. The new version contains a new backend system, which uses more than only screen.
If we would add Windows support, we have the change a lot of in the frontend, so the frontend works with Windows. Hard work, but we could do this.
But the backend uses a lot of Linux typical commands like
- wget
- awk
- sed
- debians apt-get or redhats yum
- the init-system
- and more
So we need a lot alternatives for this tools and if we try to make this work with Windows, we can completely rewrite the backend to a new windows version. A very hard job 🙂 So we won’t add full Windows support in future.
Split apache and MC into different servers is possible, I think.
The frontend sends specifically commands via PHPs shell_exec() to the backend e.g. msm SERVERNAME stop. In the new version we changed the backend so the plugin only sends commands and don’t modify files. Sending this commands via ssh is a good idea and possible, I know about a PHP library which adds ssh support to PHP. I don’t know, if this library works with windows but I hope so. There is only one problem: the filebrowser. Therefore we need sftp and I don’t know if PHP supports sftp. Maybe with PHPs shell_exec() in which windows doesn’t support. You see all in all a very hard thing, but I will check what is possible and what not.
Greets
Or, how about you add a Windows shell script? and you don’t have to rewrite the entire thing?
Unfortunately SSH is Linux only The closest thing in Windows is WindowsRM (Windows Remote Management) and I do not think that PHP will have a module for that.
Apache can run on Windows and that is what I am doing now. IIS does not meet my compatibility needs so I have gone with 64 bit WAMP.
shell_exec should work on windows if you use apache…
Hey,
there is a php SSH library, called SSH2 (http://php.net/manual/en/book.ssh2.php), how to install on windows is described here: http://stackoverflow.com/questions/15134421/php-install-ssh2-on-windows-machine
So splitting backend and frontend on different (Linux) server via ssh is no problem and I will add this feature soon.
The big problem with the windows shell script is that I don’t have an Windows server nor an normal Windows. I work on Ubuntu 🙂 When you help me I can try to add Windows support. Firstly I will inform myself about the basics on PHP developing and Windows.
I can help you if you wish. I am good at shell scripting on Windows. Do you have a github page?
no, I used the svn by wordpress but i can create a github page, maybe this is better for communication.
So github or wordpress svn?
Github in my opinion is more widely used and would be a good platform for having community voices/help and it also features an issue tracker.
The issue tracer is tied into the milestone system (To do list) for easier tracking of issues until the next release.
I would recommend Github. For examples of how to set your project up there are nemorous WP plugins in github.
I know that Github is very good, normally I use my own server with bzr, but I’ve created a github page:
https://github.com/profenter/minecraft-admin
If you send me your github username I can add you as a collaborator.
What I have so far is:
<?php
exec("cmd /c C:[path to batfile]");
?>
This should open a cmd window and execute the batfile. If the execution of the batfile is finished the cmd window close. Correct?
The batfile contains the start/stop windows script.
When I want to stop the server or send an ingame command I need to send a command to the java session. On Linux I use screen for that but I don’t know how I should do this on Windows? I googled but founded nothing. Do you have any idea?
That is correct. When the BAT file is finished the cmd process exits.
Here is my github username https://github.com/elliot-labs
I am looking into that issue also.
ok, I’ve added you to github and wordpress.