Differences between revisions 31 and 32
Revision 31 as of 2012-10-20 08:32:56
Size: 2938
Editor: tuhaihe
Comment: add zh_CN page link
Revision 32 as of 2013-07-02 08:33:55
Size: 2961
Editor: DarkErr
Comment:
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
~-[[DebianWiki/EditorGuide#translation|Translation(s)]]: English - [[it/Apache|Italiano]] -[[zh_CN/Apache|简体中文]] -~ ~-[[DebianWiki/EditorGuide#translation|Translation(s)]]: English - [[it/Apache|Italiano]] -[[zh_CN/Apache|简体中文]] - -[[ru/Apache|Russian]]~

Translation(s): English - Italiano -简体中文 - -Russian~


WebServers > Apache


Apache Web Server

Installing Apache under Debian

Installing apache2 is as easy as running apt-get install apache2.

APT will automatically select one of the four engines, usually apache2-mpm-prefork or apache2-mpm-worker (apache2-mpm-event and apache2-mpm-itk aren't recommended). The package's description contains an overview of their differences.

Script / Dynamic content

Apache can use any external program and scripting language, through CGI or FastCgi (libapache2-mod-fcgid).

Apache can also embed some scripts interpreters or connect to an application server to generate dynamic content:

Modules

Debian has many modules for Apache, which package names are usually prefixed with libapache2-mod

Once installed, modules can be enabled or disabled with the commands a2enmod and a2dismod.

Other stuff

apt-cache search apache | less

  • This will list all the Apache related software available in the Debian repositories. There's "apache" along with all its related packages (-doc, -dev, -common, -perl, ...).

FAQ

Apache user (www-data)
Debian's Apache packages come configured to run as user 'www-data'. This is potentially confusing: files to be served by apache should not be owned by 'www-data', as apache should not normally be allowed to modify them (i.e. as long as you're not running a wiki).
Apache v1.3

Apache.org is officially encouraging users to switch to apache v2.2. DebianLenny and later releases, don't ship Apache v1.x.
(apache 1.3 release notes: "We strongly recommend that users of all earlier versions, including 1.3 family release, upgrade to to the current 2.2 version as soon as possible.")

Upgrading
See /usr/share/doc/apache2.2-common/NEWS.Debian.gz
Hardening

Apache/Hardening

Packaging modules

Apache/PackagingModules

See Also