How to Compile and Install Apache 2.4.3 from Source on Mac Snow-Leopard

August 18, 2012 | By Regaz | Filed in: Uncategorized.

This post Show How to Get Installed the Apache 2.4.3 Server from Source on Mac OSX Snow-Leopard.

The Content give Focus Only to the Essentials Instructions and Commands to make it Easier to Follow.

Apache on Apple
  1. Download Apache:

    Httpd 2.4.3 tar.gz
  2. Open a Terminal Window
    (Press “Enter” to Execute Commands)

  3. Extract Apache

    mv /path/To/httpd-2.4.3.tar.gz /tmp
    cd /tmp
    tar xvzf httpd-2.4.3.tar.gz
  4. Check if MacPorts are Installed:

    which port

    Installing the MacPorts:

    MacPorts Install Guide
  5. Install wget and pcre Library

    sudo port install wget pcre
  6. Inject the Required Packages into Apache

    tar zxf apr-1.4.6.tar.gz
    tar zxf apr-util-1.4.1.tar.gz
    mv apr-1.4.6 httpd-2.4.3/srclib/apr
    mv apr-util-1.4.1 httpd-2.4.3/srclib/apr-util
  7. Compile and Install Apache

    cd httpd-2.4.3
    /configure --prefix=/opt/apache24 
    sudo make install

Thanks to: loi-bien-dich-apache-2-4-tren-centos-6

Tags: , , , , , , ,