Page 187 - DCAP106_OPERATING_SYSTEM_TOOLS
P. 187

Operating System Tools




                    Notes          z z  PosgreSQL  supposed  to be already installed  on your system  if you want Apache  and
                                       PostgreSQL database connectivity support.
                                   z z  MM  should  be already installed on your system  if you want Apache  and MM  high-
                                       performance RAM-based session cache support.

                                   z z  OpenLDAP should be already installed on your system if you want Apache and LDAP
                                       directory connectivity support.
                                   z z  IMAP & POP should be already installed on your system if you want Apache and IMAP
                                       & POP capability.
                                   Before you decompress the tarballs, it is a good plan to make a list of files on the system before
                                   you install Apache, and one afterwards, and then compare them using diff to find out what file
                                   it placed where. Simply run find /* > Apache1 before and find /* > Apache2 after you install the
                                   software, and use diff Apache1 Apache2 > Apache-Installed to get a list of what changed.
                                   To compile, decompress the tarballs (tar.gz).
                                    [root@deep ]/# cp apache_version.tar.gz /var/tmp
                                    [root@deep ]/# cp mod_ssl-version-version.tar.gz /var/tmp
                                    [root@deep ]/# cp mod_perl-version.tar.gz /var/tmp
                                    [root@deep ]/# cp php-version.tar.gz /var/tmp
                                    [root@deep ]/# cd /var/tmp/
                                    [root@deep ]/tmp# tar xzpf apache_version.tar.gz
                                    [root@deep ]/tmp# tar xzpf mod_ssl-version-version.tar.gz
                                    [root@deep ]/tmp# tar xzpf mod_perl-version.tar.gz
                                    [root@deep ]/tmp# tar xzpf\ php-version.tar.gz
                                   Configuring Your Server for Apache

                                   Once you’ve got the files, you need to tell your machine where to find everything by configuring
                                   the source files. The easiest way is to believe all the defaults and just type:
                                   ./configure
                                   Of course, most people don’t want to accept just the default choices. The most significant option
                                   is the prefix=PREFIX option. This specifies the directory where the Apache files will be installed.
                                   You can also set specific environment variables and modules. Some of the modules we like to
                                   have installed include:
                                   z z  mod_alias – to map different parts of the URL tree
                                   z z  mod_include – to parse Server Side Includes
                                   z z  mod_mime – to associate file extensions with its MIME-type
                                   z z  mod_rewrite – to rewrite URLs on the fly

                                   z z  mod_speling (sic) – to help your readers who might misspell URLs
                                   z z  mod_ssl – to allow for strong cryptography using SSL
                                   z z  mod_userdir – to allow system users to have their own web page directories
                                   Build Apache

                                   As with any source installation, you’ll then require to build the installation:

                                   make
                                   make install



          180                              LOVELY PROFESSIONAL UNIVERSITY
   182   183   184   185   186   187   188   189   190   191   192