Title explains it. I am looking for a good game panel I can install on my VPS to control my FiveM server
And? I already released the webmanager. What else do you want as functions?
As I am working over 500kilometers away from my PC I canât do custom stuff right now. But I was already in the process of building a Webinterface that can be used comercially
I donât think he meant anything by it, just that he was looking for one so he pointed to your manager.
I just want server start/stop/restart buttons
Oh sorry! Iâm on phone and the mailing template is awful. Everything looks like it would be a comment on my thread.
The start, stop and restart buttons are only possible if you host both, website and server yourself. And itâs a very dangerous risk to implement it (if you do it wrong). For example you can tell php via browsable webpage to start the server with a shell_execute command. This will run the server but could be miss used by someone to start his own scripts and break everything.
Instead of that, you should run a php page via cron or as loop in a shell script which checks a database with a âisâ and a âshould beâ state. If the server should be running but is offline, the script will start it. So there is no interaction between shell script and actual website. Via the website you can edit the âshould beâ state in the database. Of course a script has also to check the âisâ state and update it if necessary in the database.
Why not create a login with a database with SQL?
Will do the trick for the normal webpage but never ever let people run shell scripts via website. One hacker (or person who knows a bit more than you) later and everything on your root/vps could be gone.
Hi Slluxx .
(Try to copy my question to this thread, with hope for help)âŚ
I hope Iâm not asking too stupid, because Iâm a beginner on the field.
Questions:
I give âindex.phpâ a new name (myname.php) and upload this, plus the folder ârconâ to my âhttp homepageâ ?
'array (â0â, âMy server name 1â, â127.0.0.1â, â31100â, âmyrconpasswordâ)
(I only have one FiveM server).
My problem is this:
Array (â0â, âHave no nameâ, âMy server IP ?â, â30120â, âI donât use a passwordâ)
How do I fill this line correctly?
Please help and give me an example for the line, thanks .
@Slluxx you can use SSH tunnel to exec bash script, itâs possible actually. I got Start / Restart / Stop bash script if you need. But I canât help you much than that :
- shell_exec() function will work but take 1-2 seconds to load the request⌠So if you need to get informations from server (FiveM) as massivly, youâll probably prefer use this thing : http://www.harding.motd.ca/autossh/ that keep the connexion as always (or almost
)
$connection = ssh2_connect($remotehost, '22');
if (ssh2_auth_password($connection, $user,$pass)) {
echo "Authentication Successful!\n";
} else {
die('Authentication Failed...');
}
For the security⌠I donât get how someone could access to that ? you crypt the login/password, you allow only admin to access to the panel, and server you allow only the web-user to exec the bash script ?
Where is the pb ?
I know but itâs the wrong way. If you want to do it like that I donât give a fuck but I know itâs not good so I will never do it that way. I canât do anythingâ anyway right now cause I am working 10 hours a day 700 miles away from my PC.
As soon as I am back home I will finnish my Backend Project which allows multi server usage, user accounts, user groups, start, stop, restart , rcon commands, plugin management for devs and so on. It will come in two versions, one for private use and one for resellers. So it will have maximum security.