I am in the middle of creating a game server control panel and i have a few issues.
The control panel needs to basically issue commands to a remote Linux server, starting and stopping processes, i have the commands written for this, however the problem is.
-
I am not sure whether to just SSH in using a PHP library and then issue the commands OR have remote files on the server to deal with this. Which would be most efficient?
-
Is it even safe running SSH commands from PHP, using the root account? Even if commands that will be sent are hard coded.
-
If the remote Linux servers would need remote files, what language would this be written in and what functions are best?
If you have any other ideas of the best way around this, please share, i will be very grateful.
Thanks!
In short: without more detailed informations only a vague answer is possible.