• Home
  • WordPress
  • web Hosting
  • linux
  • mysql
  • nginx
  • apache2
  • devops

Raju Ginni

wordpress tutorials seo hosting etc

You are here: Home / Linux sysadmin tutorials linux system administrator / Kill PHP process

Kill PHP process

 

Table of Contents

Toggle
  • To kill all PHP Processes
  • kill $(ps aux | grep ‘[p]hp’ | awk ‘{print $2}’)
  • kill specific php -fpm fool
  • TO kill Php fpm process
  • To kill all php-fpm for all users
  • To kill all Nginx Processes
  • To kill all MySQL Processes

To kill all PHP Processes

kill $(ps aux | grep ‘[p]hp’ | awk ‘{print $2}’)

kill specific php -fpm fool

TO kill Php fpm process

sudo pkill php-fpm

killall -KILL php-fpm

To kill all php-fpm for all users

sudo pkill php-fpm: pool sarkari

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}’)

Just make sure you replace [p]hp with name of that process. Remember to keep first letter in bracket.

ps -aux | grep php-fpm

root@murali:~# ps -aux | grep php-fpm
root 4135329 0.0 0.9 634608 37420 ? Ss 05:02 0:00 php-fpm: master process (/etc/php/8.1/fpm/php-fpm.conf)
www-data 4135331 1.6 5.9 832888 240928 ? S 05:02 0:05 php-fpm: pool sarkari
www-data 4135332 1.8 6.0 832656 244008 ? S 05:02 0:06 php-fpm: pool sarkari
www-data 4135333 1.6 6.9 835680 279644 ? S 05:02 0:05 php-fpm: pool sarkari
www-data 4135421 2.6 5.9 863420 238300 ? S 05:04 0:06 php-fpm: pool sarkari
www-data 4135431 1.5 6.2 832776 251928 ? S 05:04 0:03 php-fpm: pool sarkari
www-data 4135599 0.9 3.8 722016 155360 ? S 05:07 0:00 php-fpm: pool www
www-data 4135606 0.7 3.6 647404 148648 ? S 05:07 0:00 php-fpm: pool www
www-data 4135609 1.1 2.4 652368 98428 ? S 05:07 0:00 php-fpm: pool murali

Linux sysadmin tutorials linux system administrator

  • top 10 apt & apt-get commands (most used) apt vs apt-get
  • If-Else Statements in Shell Scripting
  • linux commands pdf (files & Directories, zip & unzip process, search etc)
  • Find Files with Specific Text on Linux grep find command
  • linux performance tuning inode limit file descriptors tco, kernel etc
  • Variables and Data Types in Shell Scripting
  • Top 10 most used Cat commands with examples (create, view, append files)
  • Ip tables / ufw / firewall d commands for block port ip rate limiting
  • Top 10 zip / tar commands to compress & extract files in linux
  • TOP 10 mv & cp commands in linux to move & copy files in Linux
  • Top 10 GREP Commands in linux to search files directory words strings
  • lsof netstat commands to know listening ports in linux 3 ways
  • Upgrade Ubuntu from 18.04 (19.10) to 20.04 LTS command line or gui server | desktop
  • 3 Ways (SCP, rsync, Sftp) linux server migration between two remote server apache nginx
  • linux system specs commands (CPU, Memory, Disk )speed, type. manufacture
  • linux sysctl command tweaks & hardening
  • linux security limits.conf deciding user limits process limits for nginx server
  • ulimit linux unlimited command unlimto set & know user limits open files file descriptor max user process etc.
  • red hat linux certification cost jobs salary syllabus courses fees
  • ufw firewall commads allow port enable disable ubuntu 20.04
  • ddos attack prevention
  • change ssh port in linux - avoid sshd ddos attacks
  • ping command
  • memcached install ubuntu wordpress
  • check linux version (lsb_release -a) ubuntu debian 32 or 64 bit
  • rsync command linux with examples comparison to scp
  • how to uninstall package in linux ubuntu rpm, yum apt-get
  • increase open file limit linux File descriptor ft nginx , mysql, lemp
  • remove repository ubuntu
  • htop commad memory details virtual vs shard vs resident
  • chown command in Linux with Examples
  • Kill PHP process
  • VIrtual Memory vs RSS Memory vs Shared memory in Linux
  • oom killer fixing it by configuration linux ubuntu
  • Install Lemp nginx mysql php fpm Stack on Debian 11 with repository
  • connect two remote servers linux command line
  • auto start after oom killer Mysql & php fpm nginx etc ubuntu wth systemd or cron job
  • load average Linux 1, 5, 15 min 2,4,8 cores explained
  • Control Structures in Shell Scripting
  • Shell Scripting Roadmap for Beginners to Advanced
  • awk commands with practical examples
  • Shell Scripting Tutorial for Beginners 🚀
  • find Command in Linux with Examples
  • sed Command in Linux with Examples (Beginner to Advanced)
  • Linux Text processing commands in with Examples
  • linux disk management commands
  • fdisk command in linux with examples
  • how to add a new disk in linux
  • Linux mount Command with Examples
  • fstab options with examples
  • Top 50 Shell Scripting Interview Questions and Answers
  • Linux Networking Interview Questions and Answers
  • Linux Networking Commands Cheat Sheet with Examples pdf
  • Netstat & SS Commands cheat sheet with examples Interview Questions
  • Nmap Cheat Sheet – Network Scanning & Security
  • Bash Brackets ([], (), {}, $( ), $(( ))) – Types, Uses & Examples

hi i am raju ginni, primalry i manage wordpress websites on GCP cloud platform as a cloud engineer, and create content on passionate things.
you can follow me on youtbe

© 2025 - All Rights Reserved Disclaimer & Privacy Policy