Enable Ubuntu public_html user directory for Apache

The steps to make http://localhost/~username works in Ubuntu.

  1. Create public_html directory in home directory
    mkdir ~/public_html
  2. Enable the user directory
    cd /etc/apache2/mods-enabled
    sudo ln -s ../mods-available/userdir.conf userdir.conf
    sudo ln -s ../mods-available/userdir.load userdir.load
  3. Restart Apache
    sudo /etc/init.d/apache2 restart

Related

This entry was posted in Linux and tagged , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>