Enabling Modules in Apache 2 under Ubuntu

January 23, 2009 – 2:17 pm

The Apache enabled modules are found in “/etc/apache2/mods-enabled” as a set of .load and .conf files. If the modules you want are in the /etc/apache2/mods-available folder but not in “/etc/apache2/mods-enabled” folder, just copy the .load and .conf files over (note that the .conf file may not exist).

If there is no file in the mods-availble folder, you will need to create a new .load file in the mods-available folder to point to a module in “/usr/lib/apache2/modules”. To do this, create a .load file containing the line “LoadModule xxx /usr/lib/apache2/modules/yyy.so” where xxx is the name of the module and yyy is the file name. After creating this file, you can just copy it over to the mods-enabled folder and restart apache using “sudo /etc/init.d/apache2 restart”

Reblog this post [with Zemanta]
  • Twitter
  • FriendFeed
  • Digg
  • StumbleUpon
  • Yahoo Buzz
  • Google Reader
  • Facebook
  • Share/Bookmark
  1. View Comments to “Enabling Modules in Apache 2 under Ubuntu”

  2. Thanks :-)

    By Ivan on Jul 14, 2009

  3. No problem. Glad I could help.

    By dangoldin on Jul 14, 2009

  4. No problem. Glad I could help.

    By dangoldin on Jul 14, 2009

Sorry, comments for this entry are closed at this time.

blog comments powered by Disqus