![]() ![]() ![]() Whenever you put sudo in front of a command you will need to enter your administrator/user password when prompted to do so. Set up Apache Enter the following into the command line/shell (Terminal): sudo nano -w /etc/apache2/nf Alternatively, for you lazy ones out there, you can just copy and paste these commands. Whenever I ask you to type something into Terminal you have to hit return for the command to go through. I will be using the GNU nano text editor in my examples since it already comes with the Mac, but if you’d like to use another text editor like BBEdit or TextMate just replace nano with bbedit or mate respectively and remove any nano-specific options (e.g. Open up the Terminal application in /Applications/Utilities or if you prefer use iTerm. If you haven’t already, download and install Xcode. If you screw up my directions there are copies of the Apache configuration files you’ll be editing in /etc/apache2/original so don’t despair. Preparation Please be warned that I’m assuming you have a clean and updated install of Mac OS X, I doubt anything you do here can cause any serious damage but still remember to backup everything you modify. While I’m a big fan of the nginx (pronounced: “engine x”) web server this tutorial uses Apache 2.4, which comes preinstalled on Mac OS X and has a larger market share. If you know what you’re doing this guide should also work for Leopard, Snow Leopard, Lion, Mountain Lion, and Mavericks with minor changes as the setup hasn’t changed much since I originally wrote about this in 2007. I should note I mainly program in Scala these days, but PHP is a really popular and useful programming language to know. This tutorial is a good reference for PHP developers who want to set up a local MAMP development environment. This is a tutorial on how to set up Apache 2.4, PHP 5.5, and MySQL 5.6 on Mac OS X 10.10 Yosemite. How to set up Apache, PHP & MySQL on Mac OS X 10.11 El Capitan & OS X 10.10 Yosemite ![]()
0 Comments
Leave a Reply. |