

Creating a website, and maintaining a website, is a science and art that has quickly evolved. It’s easy-to-use, powerful, and flexible. Welcome to the exciting world of WordPress! If you need help along the way, plenty of options for assistance are listed in this article. If you want to use custom hostnames for testing, check out my other article on how to setup Apache with Virtual Hosts.If you are new to WordPress, here is a step-by-step plan for getting started.

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. 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 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): 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. 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
