Compter-Fu
Jun. 19th, 2009 09:47 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
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.
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.
no subject
Date: 2009-06-19 06:00 pm (UTC)no subject
Date: 2009-06-20 05:10 am (UTC)no subject
Date: 2009-06-20 06:56 am (UTC)