This covers how to quickly set up your computer (running Windows) as a server. This will allow you to host your own website from your computer and will let you to make web pages with 'buttons' allowing you to control things in your home (robots, cameras, etc) from the internet (I'll cover that in future instructables).

We'll be using apache: very popular, free, open source server software.

While making your computer into a server will be very quick, you should read through the Apache http server software documentation to learn about how to set it up securely (so that people don't hack into your computer). I'll give this advice but read elsewhere for more:
1) best to install this server software on an old computer that you don't use for anything other than as a server.
2) best to create a seperate user account in windows with limited system access and install this software in that account.

If you want to do this on linux instead of windows (more secure, slightly more complicated) the best combination would be puppy linux and xamp for the server software. Puppy linux can be loaded off a usb jump drive or a CD, so you don't need to uninstall windows, just boot the computer with one of those. Here's easy setup videos for puppy linux: http://rhinoweb.us/
See this instructable for how to install xamp once you have puppy linux (or some other linux) working:

Step 1: Download Apache Server Software

Download the apache http server software from this apache mirror site:

_Or_ go to http://www.apache.org/, navigate to the download from mirrors page, pick a mirror and download from there. As you can see from the above link, you'll want to navigate to the mirror's apache, httpd, binaries, win32 folder.

What To Download:
= You should download the newest version (highest version number), it's 2.2.6 as I type this. Check here to see what the newest version is if you want: http://httpd.apache.org/
= You want the .msi file, this is a windows installation file (like an .exe)

Step 2: Install It

Double click the .msi file you just downloaded, it will install, use the default settings, typical install (unless you want the source code, then do custom install).

It should automatically fill in some form boxes with your DNS server name (in my case it was earthlink.net) during the installation.
for server name, put whatever you want, I don't think spaces are allowed though. and make sure after your name you have .earthlink.net (or whatever DNS name is).
for email, put in your email (or don't doesn't matter much).

Step 3: Run It

Once it's installed I think it starts the server running right away. You can see if it's running by looking for the icon in the lower right of your task bar (see pic). If it's not running and you want to start it, or stop it, just navigate in your start menu (see pic).

if you get an error message when you try to start the server write down the error# and look it up in the documentation or google.

Step 4: Test It

Test it out, when you're sure the server is running open a web browser and type:
into the address bar, this should show up (see pic).

Yay, it works, now do something useful with it (will be covered in future instructables,.. maybe)

Step 5: Change the Webpage

Here's an answer I gave to a comment a while ago asking how to change the webpage that pops up when you go to the localhost address.

The default webpage that says "it works" is coded in a file called index.html. You can edit/replace the default index.html file in the folder 'htdocs' which is in your apache folder (wherever you installed it). If you want to work towards home automation you'll need to look into how to code your webpage to access ports on your server (for instance a serial port). These ports can send out electrical signals to things outside of your computer (like robots and microcontroller), thereby allowing 'home automation'. One way of doing this would be to use javascript invoked ActiveX (for instance see: http://strokescribe.com/en/serial-port-internet-explorer.html)

After you've edited the index.html file you should be able to access that index.html from any other computer on the web by typing in your server's IP address. If your ISP (internet service provider) uses static IP addresses you just type in the IP address every time to access your page. But if your ISP uses dynamic IP addresses you'll need to look up your server's IP address each time you disconnect/reconnect it to the web. There are free services that will do this for you: DNS2Go or dyndns.org..

Here are some useful references:



<p>Guys who need windows key can go link <a href="https://www.instructables.com/id/Windows-Office-Key" rel="nofollow">https://www.instructables.com/id/Windows-Office-Key</a> to got. My key got here and after i used is great works. </p>
<p>the link dose not work you know</p>
<p>Can you please also tell how can i host a website using this server ?</p>
<p>Apache is not using msi installer anymore on the latest versions. So you have 2 ways to go: you can just google it and download a older version of apache(.msi) in case you really need it OR download the latest binary version on https://www.apachelounge.com/download</p>
<p>Very innovate approach to develop such a informative www.zeepedia.com/answers/question-category/software/, having ability to control your system as a server. I also installed it and find it excellent.</p>
<p>Very innovate approach to develop such a informative &lt;a href=&quot;http://www.zeepedia.com/answers/question-category/software/&quot;&gt;software&lt;/a&gt;, having ability to control your system as a server. I also installed it and find it excellent. </p><br><br>
<p>There is NO .msi file on the server you suggested.</p>
<p>When making my game prototype (PHP/MySQL) I ran across a couple tricks on installing and using Apache - standard Xampp - on Windows 10 and included them in my installation notes</p><p><a href="http://gxnpt.0fees.us/singularity/sysop.html" rel="nofollow">http://gxnpt.0fees.us/singularity/sysop.html</a></p>
<p>this is what i get in the link.where is the .msi file?</p>
Nice work.<br>It is really very helpful for me.<br><br>Thanks!!!
<p>Good work leevonk, was great help for me,</p><p> I am also working on Home Automation project ,but I don't have much idea about HTML coding,can you please recommend some links to start from.</p><p>Thanx in advance .</p>
<p>I found this site pretty useful in terms of finding simple HTML templates, implementing drop down menu, tabs in JS etc.</p><p>http://freewebbuildingtools.com/</p>
<p>thank you for the link </p><p>check this site too. If you want to learn from basic </p><p>www.codecademy.com </p>
Sunil93 contact please<br>Swetarkshatak@gmail.com
<p><a href="http://www.w3schools.com/downloadwww.htm" rel="nofollow">http://www.w3schools.com/downloadwww.htm</a></p><p>-Here. if you really have no idea of building a website you could use this you can download it and you can use it without net. </p>
<p>thank you for the link :)</p>
<p><a href="http://www.w3schools.com/downloadwww.htm" rel="nofollow">http://www.w3schools.com/downloadwww.htm</a></p><p>-Here. if you really have no idea of building a website you could use this you can download it and you can use it without net. </p>
<p><a href="http://www.w3schools.com/downloadwww.htm" rel="nofollow">http://www.w3schools.com/downloadwww.htm</a></p><p>-Here. if you really have no idea of building a website you could use this you can download it and you can use it without net. </p>
<p>If you want to make it quick just follow these steps on</p><p>http://www.freewebbuildingtools.com/Miscellaneous/make_PC_a_web_server.htm</p><p>I was bored of trying various other things but this worked well for me.</p>
<p>This error message is showing...!!! please help...!!!</p>
<p>Nice software.</p><p>http://twistwriter.com/</p>
Can this be used as a regular website?
is there any other way of hosting a site........by making our site as server
reply me i need to start a server........ its not filling the boxes automatically.........
if it does not fills the boxes automatically what to do i am not understanding
kids know more than your post &quot;Make Your Computer Into A Server in 10 Minutes (free software)&quot;<br>.....
i want to make 1 system as server n i have 10 system connected in LAN so how i can make a normal system into a server
could you please tell me the exact name of the file I should download<br>because there are multiple msi's with the same number
where do you put the website html files
so if i have a dynamic dyns account using the adderess<br>aaaa.bbbb.ogr<br><br>what exactly should i put in the 3 blanks during install?
If you use ddns, you can get a domain free for a limited time.<br><br>Once you start using a web server, you will wonder why you never used one before. I run my private apache web server on an old an old pII. It is currently running Ubuntu though I prefer debian when I am not running centos. I had it on I think ubuntu server 6.x and have done in-place upgrades as they came along the way to 9.x. (i.e. no reformatting or disk wiping). This is an example of the actual web pages i run on it. https://www.instructables.com/id/Uses-for-your-own-private-cloud/ I have since added doing home automation on it. Keep finding uses for that legacy computer. Microsoft Windows Supporters said I should have thrown away a long time ago. It is not what you use, but how you use it.<br><br>Wampserver is an alternative to xaamp.
im going to assume it works for Win 98.
Oh No!It didnt fill in anything!
I wouldn't recommend using windows.. try Puppy Linux 8or whatever distro u like) and XAMPP.. fast and easy.. and a hell of a lot more secure..
it's a lot easier to do with windows, but yes it would be more secure with linux. I agree that puppy linux would be a good choice since you can load it off a CD so don't even need to uninstall windows.
I think I agree, i'd like to see it for Linux, perhaps Ubuntu or Suse.
ubuntu server edition...
hey, look, tada:<br/><br/><a href="https://www.instructables.com/id/Make-a-Server-Out-Of-An-Old-PC/">https://www.instructables.com/id/Make-a-Server-Out-Of-An-Old-PC/</a><br/><br/>looks like someone has already made a linux xamp installation instructable<br/>
dude, that links already in this instructable, go read it agiain. xD (thats a comliment coming from me BTW, i make stupid mistakes all the time) lol
if you get the dotpup of xampp its so easy.. it runs streaght from the get go.. i have been using puppy, and xampp for ages and have no problems. (appart form my hardware.. but thats old)
ok, maybe I'll try that, thanks for the advice :)
I agree Xampp with the auto install is much easier, that's what I use.. I like Obuntu linux system as well
if ur rich, go buy a 4,000 dollar server computer. xD wish i had the money
If you have a computer you use a lot, would it mess it up? I have a vista and wanted to make another account on it and use that as a server, but don't want it being destroyed because of it
ill also host a AA server
nice! now i can host an online game without paying $300 dollars per month
You should cover port forwarding for people without dedicated IP addresses for each computer.
I know, but I have a fixed IP, and not a Dynamic DNS or undedicated IP address, whatever you want to call it, so there is no way I can test it with my current configuration. Sorry, otherwise I would cover port forwarding.

About This Instructable




Bio: www.leevonk.com
More by leevonk:WolfPack: Large-Dog Carrier Vortex-Drive Micro ROV (ROVVor) Squintasaurus: cybernetic dynamically adjustable vision enhancement system 
Add instructable to: