Page 234 - DCAP602_NETWORK_OPERATING_SYSTEMS_I
P. 234

Network Operating Systems-I




                    notes          Build apache

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

                                   make
                                   make install
                                   customize apache

                                   Assuming that there were no troubles, you are ready to customize your Apache configuration.
                                   This really just amounts to editing the httpd.conf file. This file is located in the PREFIX/conf
                                   directory.
                                   vi PREFIX/conf/httpd.conf

                                   Follow the instructions in this file to edit your configuration the way you would like it. More help
                                   is available on the Apache website.

                                   test your apache server

                                   Open a web browser on the same machine and type http://localhost/ in the address box. You
                                   should see a page. It will say in big letters. This is excellent news, as it means your server is
                                   installed correctly.

                                   start editing/uploading pages to your newly installed apache web server

                                   Once your server is up and running you can start posting pages. Have fun constructing your
                                   website.

                                   requirements

                                   The following requirements exist for building Apache:

                                   1.   Disk Space: Make sure you have at least 50 MB of temporary free disk space obtainable.
                                       After installation Apache occupies approximately 10 MB of disk space. The actual disk
                                       space requirements will vary considerably based on your chosen configuration options
                                       and any third-party modules.
                                   2.   ANSI-C Compiler and Build System: Make sure you have an ANSI-C compiler installed.
                                       The GNU C compiler (GCC) from the Free Software Foundation (FSF) is not compulsory
                                       (version  2.7.2  is  fine).  In  addition,  your  PATH  must  contain  basic  build  tools  such  as
                                       make.

                                   3.   Accurate time keeping: Elements of the HTTP protocol are expressed as the time of day.
                                       So, it’s time to examine setting some time synchronization facility on your system. Usually
                                       the ntpdate or xntpd programs are used for this purpose which are based on the Network
                                       Time Protocol (NTP). See the Usenet newsgroup comp.protocols.time.ntp and the NTP
                                       homepage for more details about NTP software and public time servers.
                                   4.   Perl 5 [OPTIONAL]: For some of the support scripts like apxs or dbmmanage (which are
                                       written in Perl) the Perl 5 interpreter is essential (versions 5.003 or newer are sufficient). If
                                       you have multiple Perl interpreters (for example, a system wide install of Perl 4, and your
                                       own install of Perl 5), you are advised to use the --with-perl option (see below) to make
                                       sure the correct one is used by configure. If no Perl 5 interpreter is found by the configure
                                       script, you will not be able to use the affected support scripts. Of course, you will still be
                                       able to build and use Apache 2.0.




          228                              LoveLy professionaL university
   229   230   231   232   233   234   235   236   237   238   239