Downloading and Installing Apache

As in the previous chapter, Apache is in practically all the distributions, although we will see its installation from the sources. We are going to center in the most advanced versions of apache, considered series 2.0.XX stable.

It is recommended install the same packages that are needed for openLDAP2.2.1.

It is possible to be downloaded of: http://httpd.apache.org/download.cgi, the version which we are going to download and decompress in/usr/src is the httpd-2.0.XX.tar.gz

We executed ./configure with the following options:

Generals
-enable-so $\rightarrow$ Support of Dynamic Shared Objects (DSO)
-with-program-name=apache2
-with-dbm=db42 $\rightarrow$ Version of Berkeley DB that we are going to use
-with-external-pcre=/usr
-enable-logio $\rightarrow$ Input and Output Log
-with-ldap=yes
-with-ldap-include=/usr/include
-with-ldap-lib=/usr/lib

suexec Support
-with-suexec-caller=www-data
-with-suexec-bin=/usr/lib/apache2/suexec2
-with-suexec-docroot=/var/www
-with-suexec-userdir=public_html
-with-suexec-logfile=/var/log/apache2/suexec.log

Modules
-enable-userdir=shared $\rightarrow$ mod_userdir, module for user directories
-enable-ssl=shared $\rightarrow$ mod_ssl, module of secure connectivity SSL
-enable-deflate=shared $\rightarrow$ mod_deflate, module to compress the information
-enable-ldap=shared $\rightarrow$ mod_ldap_userdir, module for ldap cache and connections
-enable-auth-ldap=shared $\rightarrow$ mod_ldap, module of authentication in ldap
-enable-speling=shared $\rightarrow$ mod_speling, module for the correction of failures in URL
-enable-include=shared $\rightarrow$ mod_include, module for the inclusion of other configurations
-enable-rewrite=shared $\rightarrow$ mod_rewrite, allows the URL manipulations
-enable-cgid=shared $\rightarrow$ CGI script
-enable-vhost-alias=shared $\rightarrow$ module for aliasing of virtual domains
-enable-info=shared $\rightarrow$ Information of the server
-enable-suexec=shared $\rightarrow$ Change the user and the group of the processes
-enable-unique-id=shared $\rightarrow$ unique Identifier by request
-enable-usertrack=shared $\rightarrow$ Track of the user session
-enable-expires=shared $\rightarrow$ Module for sending of expiration headers
-enable-cern-meta=shared $\rightarrow$ Files meta type CERN
-enable-mime-magic=shared $\rightarrow$ Obtain automatically mimetype
-enable-headers=shared $\rightarrow$ Control HTTP headers
-enable-auth-anon=shared $\rightarrow$ Access to anonymous users
-enable-proxy=shared $\rightarrow$ Allow the use of Apache as a proxy
-enable-dav=shared $\rightarrow$ Able to handle to the WebDav protocol
-enable-dav-fs=shared $\rightarrow$ Supplier DAV for the file system
-enable-auth-dbm=shared $\rightarrow$ Authentication based on database DBM
-enable-cgi=shared $\rightarrow$ Allow CGI scripts
-enable-asis=shared $\rightarrow$ Types of archives as they are
-enable-imap=shared $\rightarrow$ Server side image maps
-enable-ext-filter=shared $\rightarrow$ Module for external filters
-enable-authn-dbm=shared
-enable-authn-anon=shared
-enable-authz-dbm=shared
-enable-auth-digest=shared $\rightarrow$ Collection of authentications according to RFC2617
-enable-actions=shared $\rightarrow$ Active actions according to requests
-enable-file-cache=shared $\rightarrow$ File Cache
-enable-cache=shared $\rightarrow$ Dynamic Cache of archives
-enable-disk-cache=shared $\rightarrow$ Disc cache
-enable-mem-cache=shared $\rightarrow$ Mamory cache
End

Once configured, we must do:

#make && make install

aescanero AT gmail.com