httpd-wiki-changes mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Httpd Wiki] Update of "Recipies/DistrosDefaultLayout" by pctony
Date Mon, 16 Oct 2006 22:34:19 GMT
Dear Wiki user,

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

The following page has been changed by pctony:
http://wiki.apache.org/httpd/Recipies/DistrosDefaultLayout

The comment on the change is:
copied from ebp-moin

New page:
= Distros Default Apache Layout =
This guide lists the default installation layouts for apache on various distros.

[[TableOfContents(2)]]

== Apache 2.2 default layout (apache.org source package): ==
{{{
ServerRoot              ::      /usr/local/apache2
DocumentRoot            ::      /usr/local/apache2/htdocs
Apache Config File      ::      /usr/local/apache2/conf/httpd.conf
Other Config Files      ::      /usr/local/apache2/conf/extra/
SSL Config File         ::      /usr/local/apache2/conf/extra/httpd-ssl.conf
ErrorLog                ::      /usr/local/apache2/error_log
AccessLog               ::      /usr/local/apache2/access_log
cgi-bin                 ::      /usr/local/apache2/cgi-bin (enabled by default, but the bundled
scripts are 644)
binaries (apachectl)    ::      /usr/local/apache2/bin
start/stop              ::      /usr/local/apache2/bin/apachectl (start|restart|graceful|graceful-stop|stop)
}}}
== Apache 2.0 default layout (apache.org source package): ==
{{{
ServerRoot              ::      /usr/local/apache2
DocumentRoot            ::      /usr/local/apache2/htdocs
Apache Config File      ::      /usr/local/apache2/conf/httpd.conf
SSL Config              ::      /usr/local/apache2/conf/ssl.conf
ErrorLog                ::      /usr/local/apache2/error_log
AccessLog               ::      /usr/local/apache2/access_log
cgi-bin                 ::      /usr/local/apache2/cgi-bin (enabled by default, but the bundled
scripts are 644)
binaries (apachectl)    ::      /usr/local/apache2/bin
start/stop              ::      /usr/local/apache2/bin/apachectl (start|restart|stop)
}}}
== 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/error_log
AccessLog               ::      /usr/local/apache/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|restart|stop)
}}}
== Debian, Ubuntu (Apache 2): ==
{{{
ServerRoot              ::      /etc/apache2/
DocumentRoot            ::      /var/www/
Apache Config File      ::      /etc/apache2/apache2.conf
Default VHost Config    ::      /etc/apache2/sites-available/default, /etc/apache2/sites-enabled/000-default
Module Locations        ::      /etc/apache2/mods-available/, /etc/apache2/mods-enabled/
ErrorLog                ::      /var/log/apache2/error.log
AccessLog               ::      /var/log/apache2/access.log
cgi-bin                 ::      /usr/lib/cgi-bin/
binaries (apachectl)    ::      /usr/sbin/
start/stop              ::      /etc/init.d/apache2 (start|stop|graceful|configtest)
}}}
=== Notes: ===
 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
Primary Config Fle      ::      /etc/httpd/conf/httpd.conf
DocumentRoot            ::      /var/www/html
ErrorLog                ::      /var/log/httpd/error_log
AccessLog               ::      /var/log/httpd/access_log
cgi-bin                 ::      /var/www/cgi-bin (empty and disabled by default)
binary                  ::      /usr/sbin/httpd
start/stop              ::      /sbin/service httpd {start|stop|restart|condrestart|reload|status|fullstatus|graceful|help|configtest}
}}}
=== Notes: ===
 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 manifested itself in Fedora
Core 3, RHEL 4, and CentOS 4.''
== RedHat 9.0 and older: ==
{{{
ServerRoot              ::      /etc/httpd
Primary Config Fle      ::      /etc/httpd/conf/httpd.conf
DocumentRoot            ::      /var/www/html
ErrorLog                ::      /var/log/httpd/error_log
AccessLog               ::      /var/log/httpd/access_log
cgi-bin                 ::      /var/www/cgi-bin (empty and disabled by default)
binary                  ::      /usr/sbin/httpd
start/stop              ::      /sbin/service httpd {start|stop|restart|condrestart|reload|status|fullstatus|graceful|help|configtest}
}}}
== Mac OS X: ==
{{{
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
Config File             ::      /usr/pkg/etc/httpd/httpd.conf
DocumentRoot            ::      /usr/pkg/share/httpd/htdocs
ErrorLog                ::      /var/log/httpd/error_log
AccessLog               ::      /var/log/httpd/access_log
cgi-bin                 ::      /usr/pkg/libexec/cgi-bin
binaries (apachectl)    ::      /usr/pkg/sbin
start/stop              ::      /etc/rc.d/apache [fast|force|one](start stop restart rcvar
reload status poll)
/etc/rc.conf variables  ::      apache=YES, apache_start="start" (or "startssl")
}}}
=== 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
Config File             ::      /usr/local/etc/apache22/httpd.conf
DocumentRoot            ::      /usr/local/www/apache22/data
ErrorLog                ::      /var/log/httpd-error.log
AccessLog               ::      /var/log/httpd-access.log
cgi-bin                 ::      /usr/local/www/apache22/cgi-bin
binaries (apachectl)    ::      /usr/local/sbin
start/stop              ::      /usr/local/etc/rc.d/apache22.sh (start|restart|stop|reload|graceful|gracefulstop|configtest)
/etc/rc.conf variables  ::      apache22_enable="YES"
}}}
=== Notes: ===
 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 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''
== FreeBSD 6.1 (Apache 2.0): ==
{{{
ServerRoot              ::      /usr/local
Config File             ::      /usr/local/etc/apache2/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/apache2.sh [fast|force|one](start|restart|stop|reload|configtest|rcvar)
/etc/rc.conf variables  ::      apache2_enable="YES"
}}}
=== 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.2): ==
{{{
ServerRoot              ::      "C:/Program Files/Apache Software Foundation/Apache2.2"
Config File             ::      "C:/Program Files/Apache Software Foundation/Apache2.2/conf/httpd.conf"
DocumentRoot            ::      "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs"
ErrorLog                ::      "C:/Program Files/Apache Software Foundation/Apache2.2/logs/error.log"
AccessLog               ::      "C:/Program Files/Apache Software Foundation/Apache2.2/logs/access.log"
cgi-bin                 ::      "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin/"
binaries (apachectl)    ::      "C:/Program Files/Apache Software Foundation/Apache2.2/bin/"
}}}
=== 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
Config File             ::      /etc/apache2/httpd.conf
DocumentRoot            ::      /var/apache2/htdocs
ErrorLog                ::      /var/apache2/logs/error_log
AccessLog               ::      /var/apache2/logs/access_log
cgi-bin                 ::      /var/apache2/cgi-bin
binaries                ::      /usr/apache2/bin
}}}
=== 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.''


== TODO: ==

Add:

 * Gentoo (including setting -DBLAH for <IfDefine> in /etc/conf.d/apache2). See: http://www.gentoo.org/doc/en/apache-developer.xml
 * SUSE
 * OpenBSD
 * Winders 2.0 & 1.3
 * Netware. eek!
 * Slackware

Mime
View raw message