I don't know much about this but I am attempting to learn. I am on the following page:


Firstly, which one do I download between:

  Unix Source: httpd-2.2.21.tar.gz [PGP] [MD5] [SHA1]
  Unix Source: httpd-2.2.21.tar.bz2 [PGP] [MD5] [SHA1]
  Win32 Source: httpd-2.2.21-win32-src.zip [PGP] [MD5] [SHA1]
  Win32 Binary without crypto (no mod_ssl) (MSI Installer): httpd-2.2.21-win32-x86-      no_ssl.msi [PGP] [MD5] [SHA1]
  Win32 Binary including OpenSSL 0.9.8r (MSI Installer): httpd-2.2.21-win32-x86-openssl-0.9.8r.msi [PGP] [MD5] [SHA1]
 NetWare Binary: apache_2.2.21-netware.zip [PGP] [MD5] [SHA1]

Other files

I am guessing Unix but don't know quite honestly. After I download this, how do I install. Thanks.

closed as off topic by Wesley, John Gardeniers, pauska, Shane Madden, Sven Jan 5 '12 at 11:45

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here. If this question can be reworded to fit the rules in the help center, please edit the question.

migrated from stackoverflow.com Jan 5 '12 at 2:52

This question came from our site for professional and enthusiast programmers.


Apache and PHP are already pre-installed on OS X Lion. Simply go to System Preferences and turn on web sharing. The ~/Sites folder will automatically become your site on http://localhost/~<local username>.

For MySQL: it's offered as a Mac download on mysql.com


This may seem strange but of the choice you've listed it's a fair bet you can eliminate the Windows and NetWare files. That leaves you with two choices, with the only difference being how they're compressed, so you could even toss a coin for it.


unless you have some explicit reason not to, i would strongly urge you to use MAMP. It's a package that contains all the things you are looking for and requires no configuration of any kind. It just works out of the box.


  • a downvote for recommending MAMP when someone is asking how to run apache/linux/php on their mac... really? unbelievable. – Dr.Dredel Jan 5 '12 at 2:13
  • The downvote wasn't mine, but I can think of plenty of reasons not to use MAMP. The official MySQL install is quite a bit nicer IMO. – Abhi Beckert Jan 5 '12 at 2:16
  • this is all very esoteric to me as Im just starting out, I appreciate everyone's imput – SamYoungNY Jan 5 '12 at 2:16
  • you're most welcome! :) – Dr.Dredel Jan 5 '12 at 2:16
  • I actually totally agree, but given the question and the person saying they're "trying to learn" that's a much better place to get up and running than to try to configure everything from scratch. – Dr.Dredel Jan 5 '12 at 2:17

Apache and PHP are pre-installed. You can also install a second copy by purchasing Mac OS X Server off Apple in the Mac App Store. The free version you've already got works perfectly, but the paid one is cheap and comes with a few nice extra tools.

Apache is enabled in System Preferences -> Web Sharing (for the pre-installed one. The Mac OS X Server version comes with a separate GUI tool).

PHP is enabled by editing /etc/apache2/httpd.conf and do a search for "php". The first result is a LoadModule command for PHP 5, which is likely to be commented out on your system. Uncomment and save changes (requires an admin password). You will need to restart apache to apply any changes to this file, easiest just to go into System Preferences -> Web Sharing and turn it off/on.

You can install MySQL from this page: http://dev.mysql.com/downloads/mysql/

Download "Mac OS X ver. 10.6 (x86, 64-bit), DMG Archive", it comes as an installer package, nice and easy to install.

PS: We have more detailed (and kept up to date) instructions here: http://www.sequelpro.com/docs/MySQL:Installing_on_Mac_OS_X