Compile Apache WebServer In Redhat Linux

  1. Download Unix Source from http://httpd.apache.org/download.cgi.
  2. Extract the file by issue the following command :
    #gunzip http-xxx.tar.gz (Skip this if file extension is .tar)
    #tar -xf http-xxx.tar
  3. Execute following command :
    # ./configure –prefix=/opt/apache –enable-mods-shared=most
    Note: (Set the prefix directory where you want to install Apache, Eg in this case is /opt/apache)
  4. Issue the following command : # make
  5. Issue the following command : # make install
  6. Apache should successfully install in /opt/ folder now.
  7. To start Apache, go /opt/apache/ then issue this command : # ./apachectl start
  8. Verify examples at http://localhost, to make sure Apache start successfully 🙂

Note: Please make sure Gnu C Compiler (gcc) is install before compile Apache.

 

dicksonkho

 

2 thoughts on “Compile Apache WebServer In Redhat Linux

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.