Kill Process Running PHP Script on Linux
How do I kill the process running php scripts on a linux box? I’m using Debian with php5.
Sometimes during development a php script will continue to interact with a 3rd party webserver even after I’ve hit stop on the browser that I was testing it in. If I accidentally write an infinite loop, then it can get pretty annoying for the 3rd party. I can stop my local webserver, but the script usually continues where it left off once I restart the local server. What can I do to stop the script until I run it again?
Setting the max_execution_time in the php.ini may be a better solution than restarting your webserver.
Check more discussion of this question.
Related posts:
- how to kill a process running on remote windows machine from linux?
- How to break from infinite loop, caused by PHP script running as root?
- PHP Script Won’t Run – Apache2/MySQL Servers Running, PHP Installed – Ubuntu 10.04
- Correct user / permissions for running php script which writes to disk?
- Launching a PHP daemon from an LSB init script w/ start-stop-daemon
Leave a comment
Recent Posts
- SCP transfer only modified files
- How can I automate clearing and resetting a Linux user’s home directory to a default?
- Cron expression that runs every 5 minutes from 1:30 am – 6:00 am [duplicate]
- Understanding redundant power supplies
- Is there a way for administrators to disable users from installing Firefox extensions?
Tags
active-directory
amazon-ec2
apache
apache2
backup
bash
centos
cisco
command-line
debian
dns
email
exchange
firewall
iis
iis7
iptables
linux
macosx
monitoring
mysql
networking
nginx
performance
permissions
php
postfix
raid
security
sql-server
sql-server-2005
sql-server-2008
ssh
ssl
ubuntu
unix
virtualization
vpn
webserver
windows
windows-7
windows-server-2003
windows-server-2008
windows-server-2008-r2
windows-xp





