Andrew Channels Dexter Pinion

Wherein I write some stuff that you may like to read. Or not, its up to you really.

May 03, 2006

Setting up User Directories under Apache2 on Ubuntu

My Powerbook is once more under the knife so I'm back playing around with Ubuntu on my work laptop.

Whilst perusing this Windows to Ubuntu transition guide I discovered that I can turn on user directories quite easily. Of course the instructions are a little misleading and the top Google hit, this Ubuntu forum thread doesn't quite work for me either.

Under Dapper and with Apache2 installed I had to;

$ sudo a2enmod userdir
$ sudo /etc/init.d/apache2 force-reload
$ cd
$ mkdir public_html

And now it's working like a charm. This change means that I can keep all of my files under my home directory and not pollute /var/www like I was doing.

Posted by Andy Todd at May 03, 2006 01:14 PM

Comments

Any chance of seeing you in one of those Mac "switch" advertisements?

Posted by: Alan Green on May 3, 2006 02:22 PM

Hey, cool. I'm using Ubuntu but didn't know about a2enmod :)

I've "manually" enabled rewrite and proxy too (for developing and testing systems using multiple domain names).

There's quite a list of modules available for enabling too...

Posted by: Richard Jones on May 3, 2006 02:48 PM