Gentoo upgrade to Apache 2.2

I upgraded my server’s apache from 2.0 to 2.2 today (see Overview of new features in Apache 2.2) and it was painless except for a few minor hiccups. I like to keep my server’s packages up to date with Gentoo’s stable packages not just for new features but mainly to make package upgrades as easy as possible. I find that by staying up to date with upstream stable packages, upgrades are more incremental and rarely cause as much difficulty as having to upgrade from multiple major versions behind.

With Gentoo, the Apache 2.2 upgrade came with a routine:

emerge --sync
emerge -uDav world
I noticed the new Apache version, checked out the other packages listed, and then hit enter to proceed. At the end of the compilation, Gentoo reminded me there are new config files in /etc to merge. Luckily for me, I’ve maintained a clean separation of Apache configuration directives and VirtualHosts, so I was able to accept all of the major configuration directive changes without modification (2.2 mostly just moves around the default directives to more logical locations). Staying up to date and close to upstream shows its benefits here.

Apache restarted without complaining, but attempts to access any of my virtualhosts resulted in a 403 Forbidden:

[Sat Sep 08 13:30:55 2007] [error] [client] client denied by server configuration: /home/victor/public_html/
This was caused by Apache 2.2’s /etc/apache2/modules.d/00_default_settings.conf:
<Directory />
        Options FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
You can either override this manually in every vhost.d/*.conf file, or you can just change the “Deny from all” line to “Allow from all” and then make Deny rules manually in each vhost.d file (if you wish). I restarted apache and refreshed my test site, but there was now a new problem - .php files were being parsed as plain text, which meant Apache wasn’t passing off .php files for processing.

I added “-D PHP5” to my /etc/conf.d/apache2’s ...

There are comments.

read more ...


auschwitz Rebecca and I went to Poland a few weeks back, and visiting Auschwitz is one of the most humbling experiences I’ve ever had.

There are comments.

read more ...

I can finally check this off

August 11, 2007
tags: drupal

A little bit of the YUI Library, lots of Drupal, and about two weeks of on and off work has resulted in a new theme for my site. It’s been long overdue for a makeover. The overarching goal was simplicity and good UI, and I’m pretty happy with the results so far.

Yahoo’s YUI is pretty easy to integrate into Drupal, and allowed me to get started quickly. From the YUI library, I’m getting a good Grid-based layout and a ton of rendering and UI improvement tweaks that I would otherwise overlook. I highly recommend the YUI library.

Right now it’s about 75% done, but that last 25% of CSS is where the quirks and bugs start to show up and will take a ton of time to iron out. I think it’s good enough for now, and I’ll try to fix things over the next few weeks as I notice them. If I ever get around to generalizing some of my hacks, I’ll probably put the entire theme up for download.

There are comments.

read more ...