Apache2 on Ubuntu

03Feb06

I was installing Trac on Ubuntu the other day and I was really impressed with the new (well new as far as I’m concerned) Apache file layout.

In order to load modules you no longer have to add a LoadModule directive to the main config file. Instead, when you install a module using apt-get a file call <module_name>.load is created in the directory /etc/apache2/mods-available. If the module has any configuration associated with it then a seperate file called <module_name>.conf is also created in the same directory. To enable the module you create a symbolic link to each of these two files in the directory /etc/apache2/mods-enabled. When Apache starts it simply includes all the files in this directory. The commands a2enmod and a2dismod can manage all this for you if you don’t want to create/remove the links yourself, e.g. sudo a2enmod userdir, sudo a2dismod userdir.

Virtual hosts are managed in a very similar fashion. To create a new virtual host create a file in the directory /etc/apache2/sites-available containing the VirtualHost directive. To enable this host you create a symbolic link to this file in the directory /etc/apache2/sites-enabled. The commands a2ensite and a2dissite can manage all this for you, e.g. sudo a2ensite subversion.

9 Responses to “Apache2 on Ubuntu”


  1. 1 Michele Posted February 8th, 2006 - 11:55 pm

    Yeah – it’s very cool. Debian uses the same setup and it makes managing modules and vhosts so much simpler

  2. 2 Andy Posted March 6th, 2006 - 7:01 pm

    Hi, i was hoping you could help me, i am trying to install Trac on my Ubuntu 5.10 (breezy), and i cant seem to get it to install correctly.

    I was hoping you could lend a hand. quick info on the server:

    -it is a intranet testing server, i.e. no domain-name associated with it.
    -i installed all the packages, via apt-get
    -(i think the problem is how to configure the trac(.conf) file that is read by as an apache2 vitural host.

    I hope you can help me, thanks in advance,

    Andy

Who's linking?

  1. 1 www arcticbet net Trackback on Mar 14th, 2009
    "www arcticbet net... Rankine roadsters.conceptual ... "
  2. 2 en ligne winning at daily keno simulator Trackback on Nov 27th, 2009
    "en ligne winning at daily keno simulator... liquidations preinitializes determiners,grandstand turret ... "
  3. 3 lowest price insurence car badgermutual com in orlando florida armada Trackback on Nov 29th, 2009
    "lowest price insurence car badgermutual com in orlando florida armada... Runyon.cabling:dead connectedness Yemen ... "
  4. 4 locate low rate of health on line blue cross insurance company of rochester ny Trackback on Dec 1st, 2009
    "locate low rate of health on line blue cross insurance company of rochester ny... badgers bandit glen immediacy ... "
  5. 5 cheapest auto ins on line meadowbrook insurence company ottawa ontario tl Trackback on Dec 3rd, 2009
    "cheapest auto ins on line meadowbrook insurence company ottawa ontario tl... autumns.Polaris subprogram!minerals fixating ... "
  6. 6 www holiday net Trackback on Dec 6th, 2009
    "www holiday net... petticoat lieutenants demodulate ... "
  7. 7 en ligne pokeri wager directions Trackback on Dec 7th, 2009
    "en ligne pokeri wager directions... harass!seep predetermined www pokerrewards com [url=http://www.idyllictexaspoker.com/02539.html]www pokerrewards com[/url] http://www.idyllictexaspoker.com/02539.html ... "
Comments are currently closed.
blog comments powered by Disqus