LAMP server and UserDir

Here’s the fastest way I know to get an apache server serving up files from your user’s public_html directory at address “localhost/~USERNAME” in Ubuntu:

sudo tasksel install lamp-server
sudo a2enmod      // (and then select the "userdir" module)
sudo /etc/init.d/apache2 restart
  1. i’ve been out-nerd-ed. what does that even mean?

  2. I’m playing with WordPress for CCFL and Crusade, and I needed a web server running on my laptop. This does the trick in Ubuntu, and also serves up pages from a convenient directory and at a convenient address. :)
    LAMP stands for “Linux, Apache, MySQL and PHP.”
    The first line installs everything in [L]AMP, the second line enables the UserDir module which does the cool directory and address thing, and the third line restarts Apache (the server) so my changes will take effect.
    -Daniel

  1. No trackbacks yet.