Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Gabotronix's avatar

Question about php proccesses in linux VPS

Hi everybody, I have a DigitalOcean VPS with ubuntu where I'm running various laravel apps, I recently updated PHP to 7.3, I did this by tweaking my nginx server block files to use the 7.3 fpm socket, now I learn of the ps command that shows procceses running in my linux machine, I decided to do a ps aux | grep php and this shows the following screen:

https://i.imgur.com/ZLSXE9k.png

Well, I'm a noob with ps command but I can clearly see three php procceses running right? one for 7.3 and two of older versions, now this let me wondering if these lower than 7.3 procceses are cluttering my linux machine with unneeded overhead...

If thats the case what command can I use to remove old php, php-fpm, and other old php extensions (lower than 7.3 versions) ?

Someone shed some light on me please.

Also do you guysknow of any good starting point for learning linux server management, I want to know about useful commands like this one.

0 likes
1 reply
JohnBraun's avatar
Level 33

@gabotronix Yes, you have multiple php versions running. Depending on the current projects on that server you might choose to limit the php versions you're running (by uninstalling them).

@gabotronix There are a couple of discussions you've initiated on this forum you left unanswered. Please do the people who took their time to respond to your question a favor and come back to them.

@ChristophHarms

@Tray2

1 like

Please or to participate in this conversation.