2011-06-22

Apache2 PHP Ubuntu User Directory

  1. cd /etc/apache2/mods-enabled
  2. sudo ln -s ../mods-available/userdir.load .
  3. sudo ln -s ../mods-available/userdir.conf .
  4. sudo apache2ctl restart
  5. The items in ~/public_html should be accessible from http://host/~username

By default, PHP is disabled in user directories. To enable it:
  1. Edit /etc/apache2/mods-enabled/php5.conf
  2. Delete/comment out the lines related to disabling the user directory execution.

No comments: