Web Hosting on OS X

Included in this post is information on those errors and some general suggestions on setting up your own web hosting on your OS X machine.

Setting up your own WordPress installation can be fun and easy, and you can even set it up on your own home computer! When doing so, there are sometimes some very strange errors or screens you’ll start to see that you didn’t see before… for instance, you’ll be asked for FTP information when uploading a plugin or theme, or when you update your version of WordPress. You also may experience strange URL errors or problems browsing to certain areas. Included in this post is information and general suggestions on setting up your own web hosting on your OS X machine. Continue reading “Web Hosting on OS X”

Web Sharing in OS X Mountain Lion

Here's the second in a series of tips on how to get Mountain Lion to work for you. This post discusses the disappearance of "Web Sharing" from the Sharing panel, and what to do in its absence.

Open up the Sharing panel in System Preferences, and you’ll see that Web Sharing is no longer listed here.


Luckily, this is only a visual (GUI) change. You can still turn on web sharing by sending commands to Apache. The quickest fix I found is to use Terminal to send commands:

  1. Open Terminal to use the following commands. You’ll need to be an admin on the computer.
  2. You’ll need to begin all commands with “sudo”. You’ll be asked to enter your password the first time you type a command beginning with “sudo”). This is normal.
  3. To start Apache:
    sudo apachectl start
  4. Top stop Apache:
    sudo apachectl stop
  5. To restart Apache:
    sudo apachectl restart
  6. To list the version of Apache:
    httpd -v
  7. If you want Apache to load every time you restart, type this into Terminal:
    sudo launchctl load -w /System/Library/LaunchDaemons/org.apache.httpd.plist

If you run into any problems, feel free to comment on this and I’ll reply with solutions as I can find them.