![]() We want to create a user level web root for our own projects, and we’ll do it all from the Terminal: mkdir ~/Sites 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. Start Apache with the following command: sudo apachectl start This will show you the installed version of Apache, which is Apache/2.4.9 in Yosemite. Apache and PHPĪs I said everything you need should already be installed on your new Yosemite machine, so go ahead and and write the following in a Terminal window: httpd -v Thanks to the people at Webucator this guide is now also available as a video, so check out their Apache Web Server training if you want to learn more. Update : This guide will also work with MacOS 10.11 El Capitain. This is an updated version of my article on Mavericks, as a few things have changed with OS X Yosemite and the upgraded Apache 2.4. 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. ![]() Article by Ole Michelsen posted on Novem, updated October 15, 2015
0 Comments
Leave a Reply. |