kill php process on host
I'm running while(TRUE)
php script on my host,that I think it will be ended by closing browser, I run it on my Cpanel
web hosting to learning DoS attack. Now I close browser but it contin开发者_StackOverflow社区uing attack.
Cpanel
,only with Cpanel
permission?If you are just have a host or you are just a reseller, you can't. You need to root permission to do this.
If you did run the script on browser, PHP or Apache should kill the process after the maximum execution time.
Default maximum execution time is 30 seconds for PHP and -I guess- 150 secons for Apache.
You should be able to restart apache from CPanel, I think it's the only way:
http://forums.cpanel.net/f5/restarting-apache-60364.html
精彩评论