0

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

     http://httpd.apache.org/download.cgi#apache22

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.

0

4 Answers 4

3

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

0
3

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.

2

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.

http://www.mamp.info/en/index.html

10
  • a downvote for recommending MAMP when someone is asking how to run apache/linux/php on their mac... really? unbelievable. Commented Jan 5, 2012 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. Commented Jan 5, 2012 at 2:16
  • this is all very esoteric to me as Im just starting out, I appreciate everyone's imput Commented Jan 5, 2012 at 2:16
  • you're most welcome! :) Commented Jan 5, 2012 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. Commented Jan 5, 2012 at 2:17
2

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

0