Page 40 - Open Soource Technologies 304.indd
P. 40

Unit 3: Apache Server



            2.0.36/srclib’                                                                        Notes
            Making all in apr

            make[2]: Entering directory ‘/home/ryan/dl/apache_guide/httpd-

            2.0.36/srclib/apr’
            ...

            make[1]: Leaving directory ‘/home/ryan/dl/apache_guide/httpd-2.0.36’
            #

            Finally, you’re ready to install your Apache build.
            # make install

            Now Apache is installed.
            3.2.6 Starting Apache

            Let’s take your new Apache installation out for a spin.

            If you installed Apache using a binary or from scratch, as root, type:
            /usr/local/apache/bin/apachectl start

            If you used an RPM, as root, type:
            /sbin/service httpd start

            Point your browser at your brand new Web server, http://localhost/. If everything worked
            you should see the default home page.
            3.2.7 Customize

            Apache uses some rather easy to understand text files for configuration. On a Red Hat system,
            you’ll find them in /etc/httpd/conf. Quite a few Linux distributions place them in this same
            place, but if you can’t find such a directory, do a search for “httpd.conf”. Once you find these,
            you’ve found the main config files. If you’re new to Linux, and need help finding this file, here’s
            how you can find it.

               1.  Login as root
               2.  Type: cd /

               3.  Type: find -name httpd.conf
            Now you should see where the file is located. When you move into the directory containing
            httpd.conf, you should see these three files:

               •    httpd.conf – This has the settings for the overall configuration for the server.
               •  access.conf – This file contains all the security settings for Apache.

               •    srm.conf – This file contains the MIME definitions and default document names for files
                 on the server.






                                             LOVELY PROFESSIONAL UNIVERSITY                                    35
   35   36   37   38   39   40   41   42   43   44   45