SA-MP Forums Archive
Making a SA-MP Server Control Panel - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Making a SA-MP Server Control Panel (/showthread.php?tid=282357)



Making a SA-MP Server Control Panel - AustinJ - 10.09.2011

I currently am running a samp server off my vps. I was wondering how would I start it from a php page. I have php with ssh installed on my apache server. I am running debain.

The file is located /countryrp/samp03svr .


Re: Making a SA-MP Server Control Panel - linuxthefish - 10.09.2011

PHP код:
<?php exec('cd /gayrp ; ./samp03svr &'); ?>
PHP код:
<?php exec('pkill samp03svr'); ?>
Remember to chmod to 777, and chown to whatever user is running php. Apache sucks btw...


Re: Making a SA-MP Server Control Panel - JiHost - 10.09.2011

Using PHP ssh2 module is more secure way. Check it out.


Re: Making a SA-MP Server Control Panel - Westie - 10.09.2011

Look at my signature, then look at the source code, learn and then make your own.