[imp] Mod_env and mod_setenvif

Michael Rubinsky mrubinsk at horde.org
Thu May 7 20:59:36 UTC 2009


Quoting lst_hoe02 at kwsoft.de:

> Zitat von Michael Rubinsky <mrubinsk at horde.org>:
>
>>
>> Quoting Matus UHLAR - fantomas <uhlar at fantomas.sk>:
>>
>>> On 11.04.09 18:08, Harry Rickards wrote:
>>>> I'm trying to reduce the amount of memory Apache uses on my Debian
>>>> stable/lenny VPS. The modules mod_env and mod_setenvif are currently
>>>> enabled, and I wondered whether it's safe to disable them? All I use
>>>> Apache for is Horde and Wordpress (and a few static HTML pages), and my
>>>> Horde version is 3.3.3 and IMP 4.3.3.
>>>
>>> I'm afraid that when using horde, it's irelevant to tune apache/php
>>> settings. It's horde what's eating most of memory.--
>>
>> That's not entirely true. Do you have any data to back that up?
>>
>> FWIW, I've found using Lighttpd instead of Apache a great solution  
>> for reducing memory usage. I've been using it exclusively for a few  
>> years now.  There is a what I would call a tiny learning curve in  
>> initially setting it up, depending on how many custom rewrite rules  
>> you already have in place (as the syntax and abilities are not 1:1).
>
> Is there any documentation on using Lighttpd for Horde maybe with  
> some Performance Numbers etc.??
> I once tried to use it but get stuck with some required PHP modules  
> and because lack of time :-(


Using lighttpd with Horde doesn't require any extra or special PHP  
modules then using PHP with Apache does. The only difference is you  
need to run a fastcgi PHP instead of as a module (mod_php).  I don't  
have any hard performance numbers personally, other then the fact that  
when I was hosting my personal Horde install in a Virtuozzo VPS with  
no swap space, Horde was just about unusable with the amount of memory  
available to my VPS. Switching to lighttpd allowed it to work without  
any issues running with 256MB for the entire server, which ran the  
whole stack (mySQL, Postfix, Dovecot, etc...).

The syntax for rewrite rules are different, but over time, I've added  
most of the lighttpd style rules to Horde. If you have any specific  
questions, feel free to ask.

There are lots of good HowTos on setting up php fast-cgi with lightty  
around the net, and the documentation on the lighttpd site is pretty  
good.

For starters, http://redmine.lighttpd.net/wiki/lighttpd/TutorialLighttpdAndPHP


Thanks,
mike

--
The Horde Project (www.horde.org)
mrubinsk at horde.org

"Time just hates me. That's why it made me an adult." - Josh Joplin


More information about the imp mailing list