Tero Karvinen - Articles - Downloads - Courses - Contact

Table of Contents

Apache Notes of Ubuntu Feisty and Gutsy

Install

$ sudo apt-get install apache2

Try it out with a web browser: http://localhost

$ ip addr

Use your own ip address in host command.

$ host 10.0.0.1

$ ifconfig $ hostname

User Home pages

Root Does

$ sudo a2enmod userdir
$ sudo /etc/init.d/apache2 restart

$ cd /etc/apache2/mods-enabled/ $ sudo cp -s ../mods-available/userdir* .

Each User Does

$ cd
$ mkdir public_html
$ cd public_html
$ nano foo.txt

Write some text, save ctrl-x y enter.

Test Home Pages

$ whoami

Surf to http://localhost/~username , http://ipnumber/~username

Last modified: 2007-11-27. Permanent url: http://www.iki.fi/karvinen/apache_feisty_notes.html

Tero Karvinen www.iki.fi/karvinen - Top - Validate HTML - Validate CSS