• Open a Terminal Window
    (Press “Enter” to Execute Commands)

  • Extract Apache

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

    which port

    Installing the MacPorts:

    MacPorts Install Guide
  • Install wget and pcre Library

    sudo port install wget pcre
  • Inject the Required Packages into Apache

    wget http://apache.osuosl.org/apr/apr-1.4.6.tar.gz
    wget http://apache.osuosl.org/apr/apr-util-1.4.1.tar.gz
    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
  • 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: , , , , , , ,