Installing Apache2 on OS X using Fink

Installing the Apache2 HTTP web server on OS X is extremely simple when one uses Fink. The usual source based installation procedure (with docs found on the official ApacheHTP Server documentation page) requires manual download of the server and all the modules you wish to use. Fink simplifies this considerably.

Installing Apache

To install Apache2, simply call…

$ fink install apache2

or, if you prefer the SSL-enabled version, call…

$ fink install apache2-ssl

During the installation you may run into a few dependency disambiguation issues, but they can be superficially resolved. The first dependency issue you may see has to do with the server client-handling model:

fink needs help picking an alternative to satisfy a virtual dependency. The candidates:
(1) apache2-ssl-mpm-worker: Apache2 Server Binary
(2) apache2-ssl-mpm-perchild: Apache2 Server Binary
(3) apache2-ssl-mpm-prefork: Apache2 Server Binary
(4) apache2-ssl-mpm-leader: Apache2 Server Binary
(5) apache2-ssl-mpm-threadpool: Apache2 Server Binary

Unless you have a preference or a reason for doing otherwise, use the default setting [1].

The second dependency issue has to do with the underlying embedded Apache database:

fink needs help picking an alternative to satisfy a virtual dependency. The candidates:
(1) db44-aes: Berkeley DB embedded database - crypto
(2) db44: Berkeley DB embedded database - non crypto

Again, unless you have a preference the default [1] will work just fine. Personally, I prefer the default– I’d use the AES-encrypted database over the unencrypted one unless I had a reason not to want my settings/data encrypted.
Note, this installation will not replace the existing apache/apache2 server found on all base OS X systems. However, it will reconfigure the apache command line tools to use the version installed by Fink. The two Apache installations can peacefully coexist, and even simultaneously run, as long as they are not bound to the same port at the same time.

Once everything is finished compiling, you can check to make sure everything went smoothly by issuing…

$ sudo apachectl start

and the pointing your web browser of choice to

http://localhost/

If all goes well you chould see the Apache welcome page.

More information on the command line apache control utility can be found on the apachectl documentation page.


0 Comments to “Installing Apache2 on OS X using Fink”

No Comments. Send your comment.

Leave a Reply