Yours may be be different (the first time I did this with my laptop pre-installed with Leopard, I swear it was much, much shorter). My OS was installed from the Mac App Store downloadable version of Lion (a fresh install) and upgraded via the Mac App Store to Mountain Lion. It's main feature is tabbed browsing (which is awesome), but it brings a lot of other enhancements, like a shortcut to show/hide hidden/system files (see View menu). To make those files hidden again, just do the same command, but change YES to NO. If you need to unhide hidden files, enter the following command in the terminal: defaults write AppleShowAllFiles YES Some of these files/directories may be hidden. Note: The /etc folder is actually a symlink (i.e. # hosts file for redirecting URLs to local IP (note: no extension) Here's all the file locations for the files we're going to be working on for reference: # main Apache config file You may ask, "Where is my Apache configuration?" I'll tell you, and I'll put it in a code block so it stands out, cuz it's important. So if I say something like, "Restart Apache" somewhere else in this guide, that's how you do it! Configuring Apache For Mountain Lion: Restart apache with the graceful command. The easiest way to do that is to uncheck the Web Sharing box, then wait for it to be clickable again and rechecking the Web Sharing box. Note: After many of the changes we make, we have to restart Apache before they take effect. There should be something in the info when you select Web Sharing that says something like your personal address is (i.e. It is the recommended way to restart apache if you are just restarting it to read in a new config or anything along those lines. You'll not have to run the following commands in the terminal to manipulate apache: apachectl -k startĪll of those commands are pretty self explanatory, except maybe for graceful, which performs a "graceful" restart. That's it! All you have to do is check that Web Sharing box and Apache will turn on.įor whatever reason, Apple removed this from the System Preferences. To turn on Apache, go to System Preferences > Sharing > Web Sharing. Many of you may have already realized this, but Apache is already installed on your computer. One of the main things that's different is the contents of the original config files, so I will not be including line numbers since they aren't consistent across every OS/scenario. Note: This guide was done with OSX Lion (and now updated for Mountain Lion), but when I did it for Leopard and Snow Leopard, most of it was the same, and nothing's really changed in Mountain Lion, except for what it takes to restart apache.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |