Update native apache from 2.2.21 to 2.4.2 - Lion 10.7.4

As indicated in the header, I have apache 2.2.21, which is executed initially as part of my LAMP stack. I would like to update apache to the latest version - 2.4.2. Is there any recommended or best practice for safely performing this operation without disrupting the loss of existing settings, etc.?

Thanks for the time and direction.

+3
source share
1 answer

I was able to install the latest version (2.4.2) using the following steps.

Install pcre (a perl compatible regex library) using fink (or whatever osx package manager you use)

$ fink install pcre

Install the latest version (2.4.2 at the time of writing) using the following steps

$ sudp apachectl stop
$ cd ~/Downloads/
$ curl -O http://mirror.uoregon.edu/apache//httpd/httpd-2.4.2.tar.gz
$ gzip -d httpd-2.4.2.tar.gz
$ tar xvf httpd-2.4.2.tar
$ cd httpd-2.4.2
$ ./configure
$ make
$ sudo make install

/usr/local , , OSX. config.nice , apache.

apache httpd, apachectl ab /usr/sbin. - , , , , /usr/local/bin /usr/sbin .

$ cd /usr/sbin

# backup the original files ...

$ sudo ln -s ../local/bin/ab ab
$ sudo ln -s ../local/bin/apachectl apachectl
$ sudo ln -s ../local/bin/httpd httpd 

, , , - .

+2

All Articles