You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wiki-changes@httpd.apache.org by Apache Wiki <wi...@apache.org> on 2010/06/28 12:54:28 UTC

[Httpd Wiki] Update of "DistrosDefaultLayout" by jmcg

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Httpd Wiki" for change notification.

The "DistrosDefaultLayout" page has been changed by jmcg.
http://wiki.apache.org/httpd/DistrosDefaultLayout?action=diff&rev1=39&rev2=40

--------------------------------------------------

  binaries (apachectl)    ::      /usr/local/apache2/bin
  start/stop              ::      /usr/local/apache2/bin/apachectl (start|stop|graceful|configtest)
  }}}
+ 
+ 
- == Apache 1.3 default layout (apache.org source package): ==
- {{{
- ServerRoot              ::      /usr/local/apache
- DocumentRoot            ::      /usr/local/apache/htdocs
- Apache Config File      ::      /usr/local/apache/conf/httpd.conf
- ErrorLog                ::      /usr/local/apache/logs/error_log
- AccessLog               ::      /usr/local/apache/logs/access_log
- cgi-bin                 ::      /usr/local/apache/cgi-bin (enabled by default, but the bundled scripts are 644)
- binaries (apachectl)    ::      /usr/local/apache/bin
- start/stop              ::      /usr/local/apache/bin/apachectl (start|stop|graceful|configtest)
- }}}
  == Debian, Ubuntu (Apache 2): ==
  {{{
  ServerRoot              ::      /etc/apache2
@@ -63, +54 @@

   1. ''The Debian/Ubuntu layout is fully documented in /usr/share/doc/apache2/README.Debian''
   1. ''Debian/Ubuntu use symlinks to enable vhosts and modules. Configuration files are created in their respective sites-available and mods-available directories. To activate vhosts and modules, symlinks are created in the respective sites-enabled and mods-enabled directories to the config files in either sites-available and mods-available. Debian provides scripts to handle this process called 'a2ensite' and 'a2enmod' which enables vhosts and modules.''
   1. ''The default DocumentRoot is specified in the default vhost config file, /etc/apache2/sites-available/default''
+ 
+ 
+ 
- == Debian, Ubuntu (Apache 1.3): ==
- {{{
- ServerRoot              ::      /etc/apache
- DocumentRoot            ::      /var/www
- ErrorLog                ::      /var/log/apache/error.log
- AccessLog               ::      /var/log/apache/access.log
- cgi-bin                 ::      /usr/lib/cgi-bin
- binaries (apachectl)    ::      /usr/sbin
- start/stop              ::      /etc/init.d/apache (start|stop|graceful|configtest)
- }}}
  == Fedora Core, CentOS, RHEL: ==
  {{{
  ServerRoot              ::      /etc/httpd
@@ -91, +75 @@

   1. ''There is an extra config file in /etc/sysconfig/httpd which can be used to change to the worker mpm /usr/sbin/httpd.worker.''
   1. ''Extra config files named *.conf are loaded from /etc/httpd/conf.d. This directory is used by packages like mod_python for drop-in configs''
   1. ''If you're having issues with authorization and your permissions are correct make sure that you try testing with SELinux turned off. Run 'setenforce 0' and use 'chcon' to fix permissions. Run 'ls -alZ' to view the current permissions.' SELinux first appeared in Fedora Core 3, RHEL 4, and CentOS 4.''
+ 
  == RedHat 9.0 and older: ==
  {{{
  ServerRoot              ::      /etc/httpd
@@ -129, +114 @@

   1. apachectl graceful is equivalent to apachectl restart and doesn't keep running connections alive. Similarly, graceful-stop is not graceful.
   1. The {{{/usr/sbin/envvars}}} script is ineffective for setting environment variables. See http://lists.apple.com/archives/web-dev/2008/Apr/msg00059.html
  
+ 
+ 
- == Mac OS X (Tiger and earlier, Apache 1.3): ==
- {{{
- ServerRoot              ::      /usr
- Primary Config Fle      ::      /etc/httpd/httpd.conf
- DocumentRoot            ::      /Library/WebServer/Documents
- ErrorLog                ::      /var/log/httpd/error_log
- AccessLog               ::      /var/log/httpd/access_log
- cgi-bin                 ::      /Library/WebServer/CGI-Executables (empty by default)
- binary                  ::      /usr/sbin/httpd
- start/stop              ::      apachectl (start|stop|restart|fullstatus|status|graceful|configtest|help)
- }}}
  == NetBSD Apache 2.0 and 1.3 from pkgsrc (layout is identical): ==
  {{{
  ServerRoot              ::      /usr/pkg
@@ -154, +130 @@

  }}}
  === Notes: ===
   1. ''The "apache" script must be copied from the installation default /usr/pkg/share/examples/rc.d to /etc/rc.d (for automatic rc.conf usage) or /usr/pkg/etc/rc.d (for advanced usage).''
+ 
  == FreeBSD 6.1 (Apache 2.2): ==
  {{{
  ServerRoot              ::      /usr/local
@@ -170, +147 @@

   1. ''Other variables to insert in rc.conf are listed in the comments at the top of the start/stop script''
   1. ''To start 2.2 on freebsd 6.1 the [[HttpreadyAcceptFilter|accf_http]] kernel module must be loaded. To do this once, run `kldload accf_http `. To do so at boot time, add accf_http_load=”YES” to /boot/loader.conf''
   1. ''Apache 2.2.6 in the FreeBSD 6.2 release will start regardless of the [[HttpreadyAcceptFilter|accf_http]] kernel module being loaded, and by default doesn't use it. To reverse this, add apache22_http_accept_enable="YES" to /etc/rc.conf (which will cause the kernel module to be loaded and Apache to use it).''
+ 
  == FreeBSD 6.1 (Apache 2.0): ==
  {{{
  ServerRoot              ::      /usr/local
@@ -184, +162 @@

  }}}
  === Notes: ===
   1. ''Other variables to insert in rc.conf are listed in the comments at the top of the start/stop script''
+ 
+ 
+ 
- == FreeBSD (Apache 1.3): ==
- {{{
- ServerRoot              ::      /usr/local
- Config File             ::      /usr/local/etc/apache/httpd.conf
- DocumentRoot            ::      /usr/local/www/data
- ErrorLog                ::      /var/log/httpd-error.log
- AccessLog               ::      /var/log/httpd-access.log
- cgi-bin                 ::      /usr/local/www/cgi-bin
- binaries (apachectl)    ::      /usr/local/sbin
- start/stop              ::      /usr/local/etc/rc.d/apache.sh
- rc.conf variables       ::      apache_enable="YES"
-     (other variables to insert in rc.conf are listed in the comments at the top of the start/stop script)
- }}}
- === Notes: ===
-  1. ''See: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-apache.html''
  == Win32 (2.2): ==
  {{{
  ServerRoot              ::      "C:/Program Files/Apache Software Foundation/Apache2.2"
@@ -211, +177 @@

  }}}
  === Notes; ===
   1. ''There are extra config files in "C:/Program Files/Apache Software Foundation/Apache2.2/conf/extra" that can be included for options such as vhosts''
+ 
  == Solaris 10 (Apache 2.0): ==
  {{{
  ServerRoot              ::      /usr/apache2
@@ -223, +190 @@

  }}}
  === Notes: ===
   1. ''Config needs to be copied from example file to httpd.conf. Apache-1.3 is the default installation in /etc/init.d and /etc/rc3.d files.''
+ 
+ 
- == Solaris 10 (Apache 1.3): ==
- {{{
- ServerRoot              ::      /usr/apache
- Config File             ::      /etc/apache/httpd.conf
- DocumentRoot            ::      /var/apache/htdocs
- ErrorLog                ::      /var/apache/logs/error_log
- AccessLog               ::      /var/apache/logs/access_log
- cgi-bin                 ::      /var/apache/cgi-bin
- binaries                ::      /usr/apache/bin
- start/stop              ::      /etc/init.d/apache (start|startssl|sslstart|start-SSL|restart|stop)
- }}}
- === Notes: ===
-  1. ''Config needs to be copied from example file to httpd.conf.''
-  1. ''Apache-1.3 is the default installation in /etc/init.d and /etc/rc3.d files. Also Apache Tomcat is included in 1.3 installation.''
  
  == Slackware 10.1, 10.2 and 11.0 (Apache 1.3): ==
  {{{
@@ -254, +209 @@

  on-line docs ("manual") ::     /var/www/htdocs/manual
  proxy cache             ::     /var/cache/proxy
  }}}
- 
  == Slackware 12.0 (Apache 2.2): ==
  {{{
  ServerRoot              ::     /usr
@@ -270, +224 @@

  cgi-bin                 ::     /svr/httpd/cgi-bin
  on-line docs ("manual") ::     /svr/httpd/htdocs/manual
  }}}
- 
- 
  == openSUSE and SLES (Apache 2.2): ==
  {{{
  ServerRoot              ::      /srv/www
@@ -281, +233 @@

  SSL Config File         ::      /etc/apache2/ssl-global.conf
  ErrorLog                ::      /var/log/apache2/error_log
  AccessLog               ::      /var/log/apache2/access_log
- cgi-bin                 ::      /srv/www/cgi-bin 
+ cgi-bin                 ::      /srv/www/cgi-bin
  binaries (apachectl)    ::      /usr/sbin
  start/stop              ::      /etc/init.d/apache2 (start|restart|restart-graceful|reload|graceful|graceful-stop|stop|configtest)
  }}}
@@ -308, +260 @@

   1. ''To enable a module, "-D MODULENAME" must be added to APACHE_OPTS in /etc/conf.d/apache2''
  
  == TODO: ==
- 
  Add:
  
   * OpenBSD
-  * Winders 2.0 & 1.3
   * Netware. eek!