Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

acme (189)

acme
  (email not shown publicly)
http://www.astray.com/

Leon Brocard (aka acme) is an orange-loving Perl eurohacker with many varied contributions to the Perl community, including the GraphViz module on the CPAN. YAPC::Europe was all his fault. He is still looking for a Perl Monger group he can start which begins with the letter 'D'.

Journal of acme (189)

Wednesday December 05, 2007
07:15 AM

Apache configuration

[ #35047 ]

My, Apache sure can be a little tricky to configure. Following a few tips from Ben Laurie I've just built myself a minimalist Apache / Catalyst / FastCGI configuration:

Listen 8081
ErrorLog manatee_error.log
PidFile manatee_httpd.pid
LockFile manatee_accept.lock

LoadModule alias_module /usr/lib/apache2/modules/mod_alias.so
LoadModule fastcgi_module /usr/lib/apache2/modules/mod_fastcgi.so
LoadModule mime_module /usr/lib/apache2/modules/mod_mime.so

TypesConfig /etc/mime.types

DocumentRoot  /mnt/app/manatee/root
Alias /static /mnt/app/manatee/root/static

FastCgiIpcDir /mnt/app/manatee/tmp
FastCgiServer /mnt/app/manatee/script/manatee_fastcgi.pl -processes 3
Alias / /mnt/app/manatee/script/manatee_fastcgi.pl/

That's it! Nice and low memory usage too...

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • How does FastCGI compare to modperl? In terms of
    - Performance (Memory, CPU usage, etc)
    - Scalability
    - Maintainability, ease of management
    - Compatibility
    - Other (insert your story)
    • The Catalyst Cookbook has a section on this [cpan.org]. On one side, mod_perl is very bloated. On the other, why invent another protocol when HTTP will do.
      • Where's this "bloated" idea coming from? The parts of mod_perl that you don't use shouldn't get in your way. The normal way of deploying it (front-end proxy server + mod_perl app server) is functionally identical to FastCGI.
        • and better may I say. The *only* advantage I see for fastcgi is for deploying multiple applications (written in different languages) through one webserver providing a more complex service.
  • Any particular reason why you don't use lighttpd [lighttpd.net]?
    • Any particular reason you do use lighttpd?
      • Actually, I don't. It is just that the configuration described here seems to be exactly the kind of thing lighttpd is good at. If you are comfortable with Apache, I'm not sure there is any particularly good reason to switch.