I am facing one issue regarding killing a Linux process from my php code. I am running a Scrapy tool from my php code using the proc_open() function in the back
proc_open()
Try posix_kill:
bool posix_kill ( int $pid , int $sig ) Send the signal sig to the process with the process identifier pid.
bool posix_kill ( int $pid , int $sig )
Send the signal sig to the process with the process identifier pid.