How to Make your Mac a Server and Run a Website from Home

By installing a software and by doing small bits of configuration you will be able to start a Server and hosting your own website on it. This guide is for intermediate users who knows what is computer and how to open websites and download stuff. If you want to utilize your site for business purposes, you can actually register your domain internationally with the help of sites like .br domains.

Remember this tutorial is for a Mac, but it’s very similar to Windows as well. No great experience is required in making a website or blog. You can host anything on your server like photos, video, music files it just needs internet connection and you will be able to use all the stuff from anywhere.

so let’s start .. one golden rule “Follow the Steps”

How to configure a server on a home computer

  1. Go to xampp
  2. Download xampp for MAC
  3. Install xampp with all services when asked
  4. Open xampp control panel and start the server apacheScreen shot 2009-11-27 at 11.23.26 AM
  5. Confirm by going http://localhost if its not opening you may have done something wrong.

Configuring your router – static IP users don’t require this step

  1. Open http://192.168.1.1
  2. Go to NAT Settings
  3. Open Virtual Servers Setup and add port and server IP address see image belowScreen shot 2009-11-27 at 11.29.36 AM
  4. Server IP will be different as per you IP
  5. Save and reboot your modem/router

Making your Dynamic IP address into Static IP address

  1. Open DynDns website for converting your dynamic IP into static IP
  2. Create a account which is free.
  3. Log in to your account and go to Host ServicesScreen shot 2009-11-27 at 11.38.43 AM
  4. Add a name for your domain like shown in image below and press Use auto detected IP address.  Screen shot 2009-11-27 at 11.41.03 AM
  5. Add it to cart, it’s free so don’t worry about cart or any payment.
  6. Now we to download DynDNS Update Clients for telling DynDns about our IP changing time to time
  7. Download it and configure it by entering your account details of DynDns website.
  8. Also add your hostname you have made above
  9. Now you go to you internet browser and open your hostname that you have selected like mine is http://hiralove.homeip.net/
  10. now open your terminal and write “sudo nano /etc/hosts” for opening host fileScreen shot 2009-11-27 at 11.56.47 AM
  11. write you Server IP like 192.168.1.6 and with a space in between write your domain name like hiralove.homeip.net
  12. Keep in mind 192.168.1.6 is your computer ip provided from your router automatically or you have manually settled it up.
  13. Now go to your http://hiralove.homeip.net domain name see if its working or not.
  14. Place anything in application/xampp/htdocs and that will appear on the webpage like in image below.

Screen shot 2009-11-27 at 12.48.19 PM

That’s it .. I have tried to make is as small as possible and I know it require more stuff to be written I will improve this article as I get responses and questions about it.

Post A Comment

Leave a Reply

Your email address will not be published. Required fields are marked *