apache2 crash

  • Hello,


    I am having a little trouble at times my web server crash as error message:


    Sat Mar 14 16:16:53 2015] [error] server reached MaxClients setting, consider raising the MaxClients setting"


    Do you have a solution please?
    Here is my apache2 conf:


    <IfModule mpm_prefork_module>
    StartServers 5
    MinSpareServers 5
    MaxSpareServers 10
    MaxClients 150
    MaxRequestsPerChild 0
    </IfModule>




    Thank you in advance.

  • Moved to offtopic. So you should raise the MaxClients setting...

  • Thank you for having moved my position.
    Must be changed in the apache2.conf file or in another file too?
    Because I see that the parameter is present in several files:


    # find /etc -type f -exec grep -l 'MaxClients' {} +
    /etc/apache2/apache2.conf
    /etc/imscp/php-fpm/parts/pool.conf
    /etc/imscp/proftpd/working/proftpd.conf
    /etc/imscp/proftpd/proftpd.conf
    /etc/imscp/proftpd/backup/proftpd.conf.system


    Thank you in advance.

  • This is due apache, so in the apache config file...

  • Oh my god... Such noobs here... <X @Ninos, really, I don't know how you can stay calm ;)

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • First of all Apache don't crashes, but rather the Apache don't deliver any sites, because the MaxClients is reached.


    If you search for "server reached MaxClients" here or at Google, you will find a lot of explanations.


    Are you sure that a server in the big evil internet is the right thing for you?

  • It is perhaps not worth it when even called me a noob @Nuxwin


    I asked the question just because I could see that the value was in several file so I demais me if you had to change it on apache or also imscp.
    Excuse me, I just evil speaks English ..
    No need to say that I am a noob, or is respect ..
    Thank you.