Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-10-04 15:17:28

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

TXP and lighttp?

I’m curious about txp and lighttp and am looking for answers to a few questions for anyone who’s using this kind of configuration.

  1. I notice that there have been a few issues with lighttp and Textpattern mostly related to rewrite rules? Are all these problems solved?
  2. What specifically do you have to do different to configure a lighttp TXP install.
  3. What are the advantages? Mostly speed and memory footprint I’m guessing…
  4. What do you lose moving from an Apache situation?
  5. Any other observations?

Thanks much

Offline

#2 2007-10-05 09:06:46

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: TXP and lighttp?

I notice that there have been a few issues with lighttp and Textpattern mostly related to rewrite rules? Are all these problems solved?

Out of the box, the rewrite rules are for apache only. Lighttpd does not have per directory confiuration files, so an administrator has to do stuff to get clean urls to work anyhow. One simple way is to use the error-handler directive which is basically a shorthand for what the apache rewrite rules do. (Theoretically it is possible to use the error-handler in apache as well, but this leads to problems due to apache specific design decisions – luckily lighty is more logical in that aspect).

Advantages and Disadvantages must be evaluated on a case by case basis. There is hardly anything that affects textattern directly (maybe the odd plugin), mostly it’s just a matter of which webserver better suits your needs.

Speedwise there is little difference between apache+mod_php and lighty+fcgi. Memory fotprint can be brought down significantly with apache if you configure it correctly, but it’s more work than with lighty – the cases where you’re most likely to notice any real world difference, is when you have everything (mail, web, db) on one server and a very limited amount of ram (512 or 1024MB), or in the other extreme where you have several front-end machines (webservers only). For most other sites in between it’s really only a matter of preference, feature-set, ease of maintenance etc..

Last edited by Sencer (2007-10-05 09:08:41)

Offline

#3 2007-10-05 15:02:18

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: TXP and lighttp?

Thanks for your clear and detailed response. That was helpful.

Offline

Board footer

Powered by FluxBB