By Sylvain2008
Hey there,
First off, I am a newbie but am putting a lot of heart at searching/learning/understanding. The DO Community has been a tremendous help so far :) Here’s a problem I can’t solve because I’m not sure where to start.
While reviewing the running processes on my droplet (Ubuntu), I noticed that two instances of php5-fpm are running, one under my expected www-data user, one under root.
First, I’d like to understand why this root instance is here. Second, although it’s eating up a tiny amount of memory, it’s still significant on my 512MB droplet.
My questions:
Precisions:
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Welcome to DigitalOcean,
here are some basics of Linux (Ubuntu) : https://help.ubuntu.com/community/UsingTheTerminal
Everything with PHP sounds normal, some stuff needs to be run as root.
MySQL has a high RAM usage and 512MB are enough for the beginning.
Hi eldin,
Thank you for taking the time to answer and providing me with this link. The shortcuts section will be particularly useful, I really appreciate.
I’ll dig in deeper about this, I get why there’s a php5 process running as www-data because I asked for it and configured it to be like this.
I’m more annoyed about the other process that comes out of the blue and am looking at understanding why it’s there (triggered by a cron, spawned by nginx, whatever).
Knowledge about this will come in its time, I guess :) Thanks again!
@Sylvain2008 some parts of PHP need to be run as root to work properly without these permission PHP would not work, e.g. a connection between PHP and Nginx (to explain it in the easiest way).
I have 3 PHP processes :-).
And thank you, it is my pleasure to help.
PS: You can use Linux Dash, it is really good : https://github.com/afaqurk/linux-dash
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.