![mamp for mac 10.9 mamp for mac 10.9](https://static.filehorse.com/screenshots/developer-tools/mamp-screenshot-03.png)
If you want to use custom hostnames for testing, check out my other article on how to setup Apache with Virtual Hosts. If you think anything could be done easier or better in some way, please drop me a comment. This was just a quick tutorial to get your local development server up and running. And remember to do a restart of Apache after each change before you test. So if you have linked folder ~/Dropbox/MySites/SiteA, you have to use chmod on both ~/Dropbox, ~/Dropbox/MySites and ~/Dropbox/MySites/SiteA. To fix this you have to use chmod +x on every folder in the path from user root.
Mamp for mac 10.9 update#
Update : You might run into some permission issues with Dropbox. With the following we grant access to the entire Projects folder, but you can be more/less restrictive: Due to some probably quite reasonable security restrictions, we have to grant Apache access to read and serve files from this Dropbox folder. Ln -s ~/Dropbox/Projects/MyWebsite ~/Sites/MyWebsite Let’s say you have a web project in ~/Dropbox/Projects/MyWebsite, let’s create a symbolic link to it in our ~/Sites folder: It would be quite a pain to copy the project to ~/Sites every time we make a change, so why not just create a reference to it? Now we actually want to develop and test some websites locally, and if you are like me, they are all located in Dropbox. To test that PHP is now working, create a PHP test file in your new user level web root (~/Sites) with the following command: Restart Apache for the change to kick in: Press CTRL+ O and then CTRL+ X to save and exit. LoadModule php5_module libexec/apache2/libphp5.so Uncomment the first line you find (remove the #): Use CTRL+ W to search within nano and search for “php”. Mavericks comes with PHP 5.4.17, so now we need to turn it on: Now we want to enable PHP, so you can actually develop something. Options Indexes MultiViews FollowSymLinks
![mamp for mac 10.9 mamp for mac 10.9](https://www.usablewp.com/wp-content/uploads/2019/05/1_how-to-find-mamp-in-mac-finder.png)
Paste the following config into the Terminal editor: Then we need to create a new user config for Apache (substitute your own user account short name):
![mamp for mac 10.9 mamp for mac 10.9](https://documentation-4.mamp.info/en/MAMP-PRO-Mac/Settings/Editor/Editing.png)
We want to create a user level web root for our own projects, and we’ll do it all from the Terminal: The document you are seeing is served from the system level web root, located in /Library/WebServer/Documents. Now you can test that Apache is running by opening in a browser. This will show you the installed version of Apache, which is Apache/2.2.24 on Mavericks. I had a similar problem and could solve it by starting on the command line the apachectl included in MAMP: /Applications/MAMP/Library/bin/apachectl start. ApacheĪs I said everything you need should already be installed on your new Mavericks machine, so go ahead and and write the following in a Terminal window: how to start it).Īfter this tutorial you will have a working local Apache server with PHP, and I will show you how to create sub sites for each of your web projects directly from Dropbox. Some familiarity with the Terminal is presumed (e.g. Everything you need is preinstalled, and just needs to be configured. This a quick writeup of how to get a local web development server up and running on your Mac. Update : I have created an updated article on how to setup Apache and PHP in OS X Yosemite. Article by Ole Michelsen posted on Decem, updated November 25, 2014