Whereis Apache on Ubuntu

One of the real problems is later finding where Apache puts the various files you need to manager Apache (in many different directories in Ubuntu).

Get a Linode SliceI can highly recommend Linode installations. Easy, fully functional, optimized, ready to go, LAMP stack.

Apache Configuration Files

Apache2 is configured by placing directives in plain text configuration files. These directives are in these directories:

  • apache2.conf file: the main Apache2 configuration file. Contains global settings.
  • conf.d directory: configuration files which apply globally to Apache2. Other packages that use Apache2 to serve content may add files, or symlinks, to this directory.
  • envvars file: Apache2 environment variables.
  • httpd.conf: file for USER specific configuration options.
  • mods-available directory: contains configuration files to both load modules and configure them.
  • mods-enabled file: symlinks to the files in /etc/apache2/mods-available. When a module configuration file is symlinked it will be enabled the next time apache2 is restarted.
  • ports.conf file: set which ports Apache2 listens on.
  • sites-available directory: configuration files for Apache2 Virtual Hosts.
  • sites-enabled: like mods-enabled, sites-enabled contains symlinks to the /etc/apache2/sites-available directory. Similarly when a configuration file in sites-available is symlinked, the site configured by it will be active once Apache2 is restarted.

The executable files are located in /usr/sbin

  • apache2
  • apache2ctl

Configuration Files are located in /etc/apache2

    Whereis Apache on Ubuntu

  • apache2.conf
  • httpd.conf
  • ports.conf
  • envvars
  • sites-available
  • sites-enabled
  • mods-available
  • mods-enabled
Configuration Modules are located in /etc/apache2/conf.d

Default website root for apache2 is /var/www

  • index.html

The start-up script is located in /etc/init.d

  • apache2

The log file is located in /var/log/apache2

  • access.log
  • error.log

You may also like...