questions - Question:Enabling Ubuntu's Apache

Enabling Ubuntu's Apache public_html user directory access:

Ubuntu has broken out the Apache loadable module directives into the directory /etc/apache2/mods-available/. To enable an Apache module, generate soft links to the directory /etc/apache2/sites-enabled/ by using the commands a2enmod/a2dismod to enable/disable Apache modules.


  • [root@node2]# a2enmod
    A list of available modules is displayed. Enter "userdir" as the module to enable.
  • Restart Apache with the following command: /etc/init.d/apache2 force-reload

Note: This is the same as manually generating the following two soft links:

  • ln -s /etc/apache2/mods-available/userdir.conf /etc/apache2/mods-enabled/userdir.conf
  • ln -s /etc/apache2/mods-available/userdir.load /etc/apache2/mods-enabled/userdir.load

asked Sep 13, 2013 in LINUX by anonymous
edited Sep 12, 2013
0 votes

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.