How To Make your Mac a Web Server
|
You may think you are one with the Interwebs, but until you actually create a website, you are merely part of the Interwebs. Follow this tutorial, and you will learn how to become one in about a billion, the exclusive club of people who host sites of some sort.
Hosting an HTTP server used to be an arduous task, but Mac OS X makes it easier than ever. We recognize that there is a built-in Web Sharing feature that allows you to create a server with one click, but we will teach you how to make a more advanced server that can handle server-side scripting languages like PHP.
Difficulty Level:
Medium
What You Need:
>MAMP (free, www.mamp.info)
>A DynDns account (free, www.dyndns.com)
> Access to your router to forward ports (in other words, a home network you control)
> A Mac that’s on and connected to the Internet all the time (in other words, if you try this with a laptop, your site will be down whenever you laptop is off or disconnected)
>Optional: a CMS like Drupal (free, drupal.org) or Wordpress (free, www.wordpress.org)
1. Install MAMP
MAMP (an acronym for Mac, Apache, MySQL, PHP) is an open-source platform for hosting a website on a Mac. Download the MAMP disk image, open it, and drag the MAMP folder to the Applications folder to install it. Then, browse to the /Applications/MAMP folder. You should see something akin to what is in this screenshot.

We like saying the word MAMP repeatedly. It’s a fun word.
This is the control center for your entire installation. Any websites you create will go here, and all the configuration files for your server will go here as well.
2. Configure MAMP
First, open the MAMP.app file in the /Applications/MAMP folder. This will start the HTTP server. Then, click Preferences. The first thing you need to do is deselect “Stop Servers when quitting MAMP” and “Check for MAMP PRO when starting MAMP.” This way, you don’t have to keep the application running all the time to keep the servers on.

Try it: “MAMP, MAMP, MAMP.” It’s just fun to say.
Next, go to the Ports tab, and click the button that says, “Set to default Apache and MySQL ports.” Sticking to standards is always best, because if you leave it as port 8888, for example, your URL will be something like www.example .com:8888, which is annoying.
3. Sharing is Caring
Now, go to System Preferences, and click the Sharing tab. Check File Sharing, but then click the Options button. Make sure “Share files and folders using FTP” is selected. FTP is generally considered the standard for editing websites remotely, and if you plan to use a tool like Dreamweaver or Coda to edit the HTML code, they use FTP (and its more secure sibling, SFTP) to manage sites. Click Done.

Next, make sure Web Sharing is deselected. If it’s selected, the Apache server that comes with your Mac will conflict with the one that MAMP has just installed. Finally, you should check the box for Remote Login, because controlling your computer with SSH is the easiest way to restart the server remotely (for more about SSH, visit www.maclife.com/ssh_surf).
maclover09
April 04, 2011 at 1:56pm
Great tutorial. Made it into a forum. I am almost at the "gather members" stage. I still have a few problems with even moderator ranks not being able to see all of the areas.
FJ
February 12, 2011 at 6:27pm
This is good, but...
"Beware of trying to download too much information from your home-rolled Web server or having too many people browse to it at once—your computer will heat up and might explode or something."
Is this true?
Coz I plan to use my PowerMac G4 Dual 1.25GHz as my web server and I don't want it to be exploded. :(
priya01
November 30, 2010 at 6:21am
Make sure that setting up an HTTP server does not break some agreement you have with your Internet service provider.This is a really good read for me.
boston marketing
http://www.breakmediagroup.com
jenny07
November 17, 2010 at 4:49am
I wanted to thank you for this great blog! I really enjoying every little bit of it and I have you bookmarked to check out new stuff you post..
mobile app developers new york
http://www.loungelizard.com/
joydeb
October 12, 2010 at 10:07pm
Link building company india cheapest SEO Company in India offers free SEO consultation and Search Engine Optimization.
joydeb
October 12, 2010 at 10:06pm
One way link building service cheapest SEO Company in India offers free SEO consultation and Search Engine Optimization.
robert01
October 06, 2010 at 3:43am
I really appreciate posts, which might be of very useful for beginners in blogging as I am. I already have a small collection of blog posts and other articles, from which I step by step learn various aspects of life. Thank you for your resource.
Custom Remodelers Minnesota
http://www.customremodelersstormdamage.com/
robert01
August 30, 2010 at 4:07am
Brilliant post..I am surely going to pass on this information on creating Mac a Web Server. http://www.dallaswebservices.com/
robert01
August 24, 2010 at 12:31am
Its pleasure reading your blog..Please keep on writing.
http://www.utahwebservices.com/
robert01
August 23, 2010 at 5:14am
I truly liked the content of your blog..I would like to make a mac a webserver on my computer.
http://www.wiworks.com/
gurunaina
August 20, 2010 at 12:20am
Computer networking or Data communications (Datacom) is the engineering discipline concerned with the communication between computer systems or devices...
http://www.mobilephoneblog.eu/
adostorer
August 10, 2010 at 3:17pm
I am wondering if anyone out there knows how to host a .net site on a mac?
Helmore
July 27, 2010 at 2:28am
This is a really good read for me, Must admit that you are one of the best bloggers I ever saw.Thanks for posting this informative article.
IT Services
cherylsarah
July 08, 2010 at 7:54pm
I said thanks for you, this useful for learning, especially since I don't have server.server rack cooling
guru naina
June 21, 2010 at 10:08pm
A web server is a computer program that delivers (serves) content, such as web pages, using the Hypertext Transfer Protocol (HTTP), over the World Wide Web....
http://www.downeastwebdesign.com
austin7
June 16, 2010 at 12:59am
Web design is a major industry income earner as long as the internet is concerned. Obviously,anyone and everyone who want to have their presence marked on the internet needs a website.
web design new york
petermariya
July 26, 2010 at 12:01am
Purposing web design is a complex, but essential ongoing activity. Before creating and uploading a website, it is important to take the time to plan exactly what is needed in the website. Thoroughly considering the audience or target market, as well as defining the purpose and deciding what content will be developed, are extremely important....
https://www.hyperstreet.com/index.php
logodesigns1
April 01, 2010 at 3:02am
This article is superb, specially for newbiew plus snapshot explaining by pictures is always easy for learners.
Logo Designs | Logo Design
rinu
March 30, 2010 at 2:59am
With Apache and the DynDNS service, you can turn your Mac into a powerful web server. Anyone will be able to access the website stored on your Mac!
Cheap domain names
ebusinesssubmit
February 28, 2010 at 7:05am
This setup greatly expands the capabilities of my home server - and it's crazy easy! This is, as your publication used to say in the good 'ol days, freakin' awesome! Website Optimization Link Building Service Social Media News Yahoo Answer Posting Service
wrihelp
February 16, 2010 at 9:55pm
This work will use iWeb, if you just do not put there WordPress it? And people can still download the file to their computer use iWeb?
Thesis Writing AND Dissertation Writing AND Essay Writing AND Assignment Writing
petermariya
July 27, 2010 at 9:24pm
web marketing is relatively inexpensive when compared to the ratio of cost against the reach of the target audience. Companies can reach a wide audience for a small fraction of traditional advertising budgets....
http://www.locations4business.com/europe/UK/national-information/tax-issues/value-added-tax-vat-/
![]()
lovestar
November 28, 2009 at 4:35am
vvev شات دردشه شات كويتي دردشه كويتيه ، شات كويت60 شات كازنوفا شات سعودي شاات مصريه شات كويت25 vv
![]()
benet
November 10, 2009 at 9:20pm
Were not smart, but also learn from others bald.omega watchesChing had no water to fish, one to the cheap is invincible.replica watchI left Dragon, White Tiger right shoulder tattooed Mickey Mouse.replica watchesEfforts should be made! ! For your Audi Dior me.8282
galois1832
August 12, 2009 at 6:37am
Enjoyed reading the article. Make sure that setting up an HTTP server does not break some agreement you have with your Internet service provider. And enabling SSH might open your machine to SSH attacks.
swatkins01
August 30, 2009 at 4:58am
Thanks for the great article. I currently run my own web server using Mac OS X's plain vanilla built-in Apache server. This setup greatly expands the capabilities of my home server - and it's crazy easy! This is, as your publication used to say in the good 'ol days, freakin' awesome!
fat1427
October 05, 2010 at 11:40pm
I want to take this moment to say that I really love this blog. It has been a good resource of information for me. Thank you so much admin.
link building servicehttp://linkbuildinglondon.com/
maclover
August 08, 2009 at 7:18pm
Will this work using iWeb if you just don't put wordpress on there? And can people still download files to their computers using iWeb?
petermariya
June 14, 2010 at 10:12pm
Web design is the skill of creating presentations of content (usually hypertext or hypermedia) that is delivered to an end-user through the World Wide Web, by way of a Web browser or other Web-enabled software like Internet television clients, microblogging clients and RSS readers...
http://www.wiworks.com


















