To kill all PHP Processes
kill $(ps aux | grep '[p]hp' | awk '{print $2}')
To kill all Nginx Processes
kill $(ps aux | grep '[n]ginx' | awk '{print $2}')
To kill all MySQL Processes
kill $(ps aux | grep '[m]ysql' | awk '{print $2}')
kill $(ps aux | grep '[p]hp' | awk '{print $2}')
kill $(ps aux | grep '[n]ginx' | awk '{print $2}')
kill $(ps aux | grep '[m]ysql' | awk '{print $2}')