Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing apache 2.4 on OS X Mavericks 10.9

I wanted to install apache 2.4 on my OS X Mavericks and having problem with ./configure and make.

like image 997
Mr. Crowley Avatar asked Feb 08 '14 11:02

Mr. Crowley


3 Answers

  1. First thing you need homebrew on your mac. You can get with:

    ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
    

    command from official homebrew website.

  2. Then you need to install pcre and libtool via:

    brew install pcre
    brew install libtool
    
  3. After that, download latest stable apache 2.4 from Apache

  4. After extraction go inside directory and run the following:

    ./configure --prefix=/usr/local/apache-<VERSION> LTFLAGS=--tag=CC
    

    ex:

    ./configure --prefix=/usr/local/apache-2.4.7 LTFLAGS=--tag=CC
    

    which I found here.

  5. After these steps, you just need to run

    make
    make install
    

    and the httpd configs and bash alters from here. Except make sure to use substitute in the correct paths.

  6. In the end run

    httpd -k start working
    httpd -v
    

    you will get (except with your version number):

    Server version: Apache/2.4.7 (Unix)

    Server built: Feb 8 2014 14:34:44

Hope this saves your time.

like image 104
Mr. Crowley Avatar answered Sep 29 '22 12:09

Mr. Crowley


Just a note that Apache httpd is by default installed on Mac OS X 10.9.x Mavericks. It can be started by the following command:

sudo apachectl start

The config file can be found at this path:

/private/etc/apache2/httpd.conf
like image 32
Saeed Avatar answered Sep 29 '22 13:09

Saeed


I had to download apr and apr-util in srclib; unpack both and remove the versions at the end of the directory names. Then run:

./configure --with-included-apr
like image 39
Alan Cabrera Avatar answered Sep 29 '22 12:09

Alan Cabrera