Apache web server install on Gentoo

Emerge steps


Note that apache will fail silently in case you haven't set an alias between localhost and the name of your machine. To see this, check if httpd is running. If not, see the log file in /var/log/:

  gesundheit apache2 # cat /var/log/apache2/error_log 
  [Sun Jun 07 14:04:24 2009] [alert] (EAI 2)Name or service not known: mod_unique_id: unable to find IPv4 address of "gesundheit"
  Configuration Failed

This can be fixed (ref) setting the alias in /etc/hosts

  gesundheit apache2 # cat /etc/hosts 
  # IPv4 and IPv6 localhost aliases     localhost       gesundheit
  ::1           localhost       gesundheit


Tomcat can be installed by running

  emerge -av tomcat
  /etc/init.d/tomcat-6 start

Visit http://localhost:8080 to check your configuration.


Author: <philippe.veber [AT] googlemail.com>

Date: 2009-06-08 dim.

HTML generated by org-mode 6.21b in emacs 22