Set up Apache2 (Dapper)

From a clean install

  1. apt-get install apache2
    
  2. Enable PHP5 and Python support
    apt-get install php5 php5-gd libapache2-mod-python php5-mysql
    

Apache configuration is now split accross a few locations, rather than a central file. I would copy the default site .conf in /etc/apache2/sites-available to the FQDN of the site (as a filename), then change config and delete the original default. Before you do that, enable the new one with a2ensite site and disable default with a2dissite default.

Similarly, enable and disable modules with a2enmod/a2dismod.

More details on apache .conf files later. That'll be a big one.

Posted 20 Aug 2007, tagged with apache ubuntu