Compter-Fu

Jun. 19th, 2009 09:47 pm
kerravonsen: animated sequence of geeks with the word "geek" around them (geek-anim)
[personal profile] kerravonsen
Well, I have been geeky; I've changed over my web server from apache-mpm-prefork to apache-mpm-worker (with FCGI+PHP)! Well, I did it on my laptop first, earlier this week, as a trial run to see if it would work, and so I knew what I needed to do on my server. For those of you who are totally confused... um... I changed the way my webserver runs.

Why? Because:
a) mpm-worker is faster and takes up less memory (tech: because it's threaded)
b) but then PHP (which is what runs part of my website) had to be reconfigured to work with mpm-worker (tech: mod_php is not thread-safe, but php can be used in CGI mode with FastCGI (mod_fcgid), and it thus runs as fast as it did before)
c) A happy side-effect of PHP + FCGI is that it can be configured to... um... behave nicer with files (tech: one can enable suexec with PHP, which means I don't have to mess with file permissions and file ownership to get my wiki to behave - SQUEE!)

Looking at my server, it does appear to be using less memory (it's gone down from 53% to 42%, yay!).

I found the following two How-Tos very useful: Installing Apache2 and PHP5 using mod_fcgid and How to set up Apache2 with mod_fcgi and PHP5 on Ubuntu.

Date: 2009-06-19 06:00 pm (UTC)
From: [identity profile] izhilzha.livejournal.com
I understand only a few words of this *g* but it's awfully fun to watch you get geeky over programming and other computery stuff.

Date: 2009-06-20 06:56 am (UTC)
From: [identity profile] mistraltoes.livejournal.com
I am too tired to even try to understand this, but computery goodness is always deserving of a yay!
Edited Date: 2009-06-20 06:56 am (UTC)

Profile

kerravonsen: (Default)
Kathryn A.

Most Popular Tags

April 2025

S M T W T F S
  12345
6 7 8 9101112
13141516171819
2021222324 2526
27282930   

Expand Cut Tags

No cut tags

Style Credit

Page generated May. 16th, 2025 05:44 am
Powered by Dreamwidth Studios