GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   how do i stop an php/mysql process? (https://gfy.com/showthread.php?t=203392)

alex79 12-01-2003 06:19 AM

how do i stop an php/mysql process?
 
i've maked a php script that use a mysql database..i've inserted set_time_limit(0); in my code and i started the proces.. after around 10 minutes i closed the browser but the script/proces still runing on my server after over a half a hour :(..
in this rhytm the duration of all entire process will be around 5-10 hours.. maybe more..
i've tryed to kill the proces from phpmyadmin but the prosess is still runing ..
what can i do to stop the process whitout damage the mysql?

thx

Jimbo 12-01-2003 06:22 AM

try finding the PID of the process with "top" or "ps" and "kill -9" it ;)

if you ran the php in your browser it should be ahttpd process so kill the one that as been running the longest.

notjoe 12-01-2003 06:54 AM

Quote:

Originally posted by alex79
i've maked a php script that use a mysql database..i've inserted set_time_limit(0); in my code and i started the proces.. after around 10 minutes i closed the browser but the script/proces still runing on my server after over a half a hour :(..
in this rhytm the duration of all entire process will be around 5-10 hours.. maybe more..
i've tryed to kill the proces from phpmyadmin but the prosess is still runing ..
what can i do to stop the process whitout damage the mysql?

thx

killall -HUP httpd

type the above as root from the command line prompt

Jimbo 12-01-2003 06:57 AM

Quote:

Originally posted by notjoe


killall -HUP httpd

type the above as root from the command line prompt

thats a radical way of doing it hehe

who 12-01-2003 07:02 AM

killyourself -now

do it from home.

alex79 12-01-2003 07:07 AM

thanks guys for your replyes.. i think i will let the proces to finish.. the proces is already at 1/4 from all his job

blazin 12-01-2003 07:12 AM

/path/to/apachectl graceful

blazin 12-01-2003 07:13 AM

actually - I just thought - that will wait for the processes to finish before restarting :winkwink:


All times are GMT -7. The time now is 10:03 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123