php kill all processes code example
Example 1: kill php process
kill $(ps aux | grep '[p]hp' | awk '{print $2}')
Example 2: kill php process
kill $(ps aux | grep '[m]ysql' | awk '{print $2}')
kill $(ps aux | grep '[p]hp' | awk '{print $2}')
kill $(ps aux | grep '[m]ysql' | awk '{print $2}')