开发者

kill php process on host

开发者 https://www.devze.com 2023-04-02 05:45 出处:网络
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开发者_Stack

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.

How can I kill it in 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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号