Apache
  Home arrow Apache arrow Page 3 - Getting Started with Apache 2.0, Part 1
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
VPS Hosting  
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid  
Request Media Kit
Contact Us  
Site Map  
Privacy Policy  
Support  
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
APACHE

Getting Started with Apache 2.0, Part 1
By: Harish Kamath
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 27
    2005-03-07


    Table of Contents:
  • Getting Started with Apache 2.0, Part 1
  • Getting Off the Blocks
  • Compiling Apache
  • Configuration Options
  • The "httpd.conf" Configuration File: a Quick Overview
  • PHP 5.0.3 with Apache 2.0.52
  • Conclusion

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article

     
     
    ADVERTISEMENT


    Getting Started with Apache 2.0, Part 1 - Compiling Apache
    ( Page 3 of 7 )

    Now that you've downloaded the source code from the Apache website, it's time to start up your Linux console and fire these commands, one-by-one.

    $ cd /usr/local/src/

    $ tar -xzvf /tmp/httpd-2.0.52.tar.gz

    This should create a directory named "httpd-2.0.52" with all of the required files. At this stage, I'll concentrate on the "default" configuration of the Apache Web server, which is sufficient for driving a website consisting of static pages and basic CGI requirements.

    I'm pretty sure that most of our readers wish to run PHP scripts on their Apache-driven Web servers. But, there is no reason to panic - later, I'll also show you how to install PHP version 5.0 and configure the Apache Web server to execute your PHP scripts.

    Coming back to the compilation of the Apache source code - navigate to the location where you have unzipped the downloaded archive file and execute the "configure" script, present therein. Here, I have used only one configuration option, i.e. the "--prefix" option. This option allows you to specify the location where you would like to the install the software on the server.

    $ cd /usr/local/src/httpd-2.0.52/

    $ ./configure --prefix=/usr/local/apache

    Behind the scenes, this "configure" script does a quick check in order to ensure that the settings in the configuration files, to be created later, reflect those of your server. Note that you can always review the contents of the "config.log" file (if generated) in order to investigate any errors that you may have encountered.

    Once the "configure" script completes execution, the Apache Web server is now ready for installation. The next step: you'll need to run the "make" command, as shown below.

    $ make

    While the output of this command does appear daunting (especially for newbies) at first glance, please be assured that all is well - the only time to hit the panic button is when the command stops abruptly with an error message.

    The final step: run the "make install" command:

    $ make install

    Once again, you are subjected to a screen full of cryptic statements. But, if you get to see a final message that looks something like this - make[1]: Leaving directory `/usr/local/src/httpd-2.0.52' - you can afford to give yourself a little pat on the back because you have successfully installed the Apache Web server. Now, it's time to test the installation - start up the Web server using the following command:

    $ /usr/local/apache/bin/apachectl start

    $ lynx http://localhost

    and fire up lynx (or any other Web browser) to navigate to the default location, as shown above. If you are able to view the "Test Page for Apache Installation," you can pop the champagne bottle because your Web server is now ready to serve static HTML websites.



     
     
    >>> More Apache Articles          >>> More By Harish Kamath
     

       

    APACHE ARTICLES

    - Creating a VAMP (Vista, Apache, MySQL, PHP) ...
    - Putting Apache in Jail
    - Containing Intrusions in Apache
    - Server Limits for Apache Security
    - Setting Permissions in Apache
    - Installing Apache
    - Apache Installation and Configuration
    - Apache Tapestry and Custom Components: DateI...
    - Tapestry and AJAX: Autocompleter and InlineE...
    - PropertySelection and IPropertySelectionMode...
    - The DatePicker and Shell Components of Apach...
    - Apache Tapestry: ASO and More Components
    - Apache Tapestry and DirectLink, IoC and DI
    - Making a CelebrityCollector with Apache Tape...
    - Apache Tapestry and Listener Methods, Condit...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
    Stay green...Green IT