[linux] How to kill a process [file name] in web-PHP - 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: [linux] How to kill a process [file name] in web-PHP (
/showthread.php?tid=312142)
[linux] How to kill a process [file name] in web-PHP -
Tenshi - 20.01.2012
[linux] How to kill a process [file name] in web-PHP
I've tried using
Код:
<?php
shell_exec ('killall -9 specific-samp-named-server'); // shell_exec ('killall -9 HuluSrv');
?>
Want to be able to go to www
.mySiTe
.com/path/here/killme.php,
and its not working, any tips, and helps, thanks-HELP you linux queens and kings!
Re: [linux] How to kill a process [file name] in web-PHP -
iLinx - 20.01.2012
This is most likely a problem with your Linux user accounts, usually you'd run that command under a superuser.
Re: [linux] How to kill a process [file name] in web-PHP -
Tenshi - 20.01.2012
Quote:
Originally Posted by iLinx
This is most likely a problem with your Linux user accounts, usually you'd run that command under a superuser.
|
how i do that lol? the script is running inside a root folder in its var/www thing. what more do i need it to do?