Enabling public_html in a default Apache install

By default, access to the public_html subdirectory is no longer enabled in Apache installations. This has been so since Ubuntu 7.04 or so. To enable it, run the following commands:

sudo a2enmod userdir

followed by

sudo /etc/init.d/apache2 force-reload