mpm-itk spare servers??

Hi,

Probably a dumb question but I couldn't find the answer.. I have switched to using mpm-itk on my server but seem to now have a lot of apache servers running..

root      2194  0.0  0.4   5404  2484 ?        Ss   21:42   0:00 /usr/sbin/apache2 -k start
root      2198  0.0  0.3   5404  1748 ?        S    21:42   0:00 /usr/sbin/apache2 -k start
root      2200  0.0  0.3   5404  1748 ?        S    21:42   0:00 /usr/sbin/apache2 -k start
root      2201  0.0  0.3   5404  1720 ?        S    21:42   0:00 /usr/sbin/apache2 -k start
root      2202  0.0  0.3   5404  1720 ?        S    21:42   0:00 /usr/sbin/apache2 -k start
root      2204  0.0  0.3   5404  1720 ?        S    21:42   0:00 /usr/sbin/apache2 -k start
root      2524  0.0  0.3   5404  1720 ?        S    21:48   0:00 /usr/sbin/apache2 -k start
root      2533  0.0  0.3   5404  1720 ?        S    21:48   0:00 /usr/sbin/apache2 -k start
root      2534  0.0  0.3   5404  1720 ?        S    21:48   0:00 /usr/sbin/apache2 -k start

How do I reduce this when using mpm-itk?

4 Replies

You can reduce maxclients, but mpm-itk is based on mpm-prefork. It can only handle one client per process. This is horribly inefficient. Are you SURE that you need mpm-itk? You'd be far better off with mpm-worker.

@Guspaz:

You can reduce maxclients, but mpm-itk is based on mpm-prefork. It can only handle one client per process. This is horribly inefficient. Are you SURE that you need mpm-itk? You'd be far better off with mpm-worker.

Hi,

I know about the inefficiencies but unfortunately I need the security and simplicity of serving the web and php files as the user who owns them rather than making all files accessible to a common user account and messing around with permissions.. Doesn't seem to be another way around this?!?!

Thanks..

@Amar:

Use SUPHP/SUEXEC .. ?

From the reading I have done mpm-itk is the better option than suphp but I guess like all these things everyone has a preference and opinion.. :)

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct