Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3E39E11B57 for ; Mon, 11 Aug 2014 23:28:58 +0000 (UTC) Received: (qmail 49884 invoked by uid 500); 11 Aug 2014 23:28:55 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 49844 invoked by uid 500); 11 Aug 2014 23:28:55 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 49834 invoked by uid 99); 11 Aug 2014 23:28:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Aug 2014 23:28:55 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of malevo@gmail.com designates 209.85.218.51 as permitted sender) Received: from [209.85.218.51] (HELO mail-oi0-f51.google.com) (209.85.218.51) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Aug 2014 23:28:29 +0000 Received: by mail-oi0-f51.google.com with SMTP id g201so6095155oib.24 for ; Mon, 11 Aug 2014 16:28:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=V63K4dDfcmDupGAdlDkFGIAKPSg+ram4FO+vqeFjX1Q=; b=aWI4JSLcUhxI/YeG/0RGuZgSgs8Bdm/lhU3Vz3JSqdtgrJSL6F/0WU426BdtYR8rFQ r7NWVQxofZ4vG9SPE6nzkNJdWabOU11/9qFalW0r6gsOzjZBuosYJLPL5WwOTWunY9iX k/s5FpHfNB6l5ua3BhEdei+K2rda3FZF525BZgn3P4tyb0lmepzB2eiMhpuzmwLXh7J9 qiixWu5yutyYxOZmaR9LzKv1doqV47eptNRL9yI+ngGEDKWZARJNFeXNz46LMtY9E7T4 uteA9Uq431SD42Sm1aEyimzFn2qkD520jIeJdPdrwtcQF4TgLTEhhsU9Bebs0irRbrpM GBgQ== X-Received: by 10.60.103.105 with SMTP id fv9mr741380oeb.34.1407799708447; Mon, 11 Aug 2014 16:28:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.202.106.205 with HTTP; Mon, 11 Aug 2014 16:28:08 -0700 (PDT) In-Reply-To: References: From: Pablo Garcia Melga Date: Mon, 11 Aug 2014 20:28:08 -0300 Message-ID: To: users@httpd.apache.org Content-Type: multipart/alternative; boundary=089e011767bd897982050062e9a6 X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Apache 2.4 optimisation for a virtual server with low resources. --089e011767bd897982050062e9a6 Content-Type: text/plain; charset=UTF-8 Robin, I haven't tested on 2.4, but done many times on 2.2 and 1.3, I would compile it myself, just using the mods you need, and after that I would stripe the symbols to make the binary even smaller. Hope it helps Regards, Pablo On Mon, Aug 11, 2014 at 7:42 PM, Robin de Haan wrote: > Hi, > > I'm a web designer setting up a server for the first time using a very > light Linode package with 1GB RAM and 1 CPU. It will host a Drupal site > that gets low traffic. It's running Ubuntu 14.04 and Apache 2.4.7. > > I'm following their set up guide here: > https://www.linode.com/docs/websites/hosting-a-website/ which suggests > editing apache2.conf with the following: > > > StartServers 2 > MinSpareServers 6 > MaxSpareServers 12 > MaxClients 80 > MaxRequestsPerChild 3000 > > > When I couldn't find anything like that code in the .conf file I checked > with Linode support and was told that, from Apache 2.4 "This section is > built-in now and not included in the apache2.conf" but when I asked how > then to optimize Apache for a light server a different support person got > back to me and said I could just add that code to the end of the .conf file. > > I'm posting here hoping a specialist can clear this up or advise an > alternative way to optimise Apache for this kind of server. > > Thanks, > Robin > --089e011767bd897982050062e9a6 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Robin, I haven't tested on 2.4, but done many times on= 2.2 and 1.3, I would compile it myself, just using the mods you need, and = after that I would stripe the symbols to make the binary even smaller.

Hope it helps

Regards, Pablo
<= /div>


On Mon, = Aug 11, 2014 at 7:42 PM, Robin de Haan <robin.dehaan@gmail.com>= ; wrote:
Hi,

= I'm a web designer setting up a server for the first time using a very = light Linode package with 1GB RAM and 1 CPU. It will host a Drupal site tha= t gets low traffic. It's running Ubuntu 14.04 and Apache 2.4.7.

I'm following their set up guide here: https://www.linod= e.com/docs/websites/hosting-a-website/ which suggests editing apache2.c= onf with the following:

<IfModule mpm_prefork_module>
StartServers 2
MinSpareServer= s 6
MaxSpareServers 12
MaxClients 80
MaxRequestsPerChild 3000
&= lt;/IfModule>

When I couldn't find anything like t= hat code in the .conf file I checked with Linode support and was told that,= from Apache 2.4 "This = section is built-in now and not included in the apache2.conf" b= ut when I asked how then to optimize Apache for a light server a different = support person got back to me and said I could just add that code to the en= d of the .conf file.

I'm posting here hoping a specialist can clear this up o= r advise an alternative way to optimise Apache for this kind of server.
=
Thanks,
Robin

--089e011767bd897982050062e9a6--