How to make own web hosting

Find out What's Going On

How to create a web host in your home: 10 steps (with pictures)

    Edit Article

    To have a website people usually buy such a service called web hosting. Businesses use services of paid professionals if they like to have their web hosting in their own premises. If you have an old laptop or PC and are connected to a broadband line you can create your own website free, as a rewarding do-it-yourself hobby.

    Steps

    1. Image titled Create a Web Host in Your Home Step 1

      1

      Get the Apache server software. Your old computer will be called your "Web Server" from now on. Download public license Apache HTTP Server to your old computer. This free software is also the most widely used server on the Internet.
    2. Image titled Create a Web Host in Your Home Step 2

      2

      Double click on the downloaded file to install it. Fill the dialogue required fields. It is quite arbitrary information and later you can change them.

    3. Image titled Create a Web Host in Your Home Step 3

      3

      Select the custom install from options in the next dialogue. Change the install directory of Apache to your desired folder.

    4. Image titled Create a Web Host in Your Home Step 4

      4

      Go to that directory and find "conf" folder. In that folder open the "httpd.conf" file. Now in your "Web Server" create a root directory for your web site; for example, "C:\Web\MyWeb"

    5. 5

      Inside the "httpd.conf", change the Apache default serving document root to your web root.
      • Before
        Image titled Create a Web Host in Your Home Step 5Bullet1
      • After
        Image titled Create a Web Host in Your Home Step 5Bullet2
    6. 6

      Also in the same file change the default Apache web directory to your own web directory.
      • Before
        Image titled Create a Web Host in Your Home Step 6Bullet1
      • After
        Image titled Create a Web Host in Your Home Step 6Bullet2
    7. Image titled Create a Web Host in Your Home Step 7

      7

      Use a basic knowledge of writing HTML code and create a test page; write in it "I am a winner!" Save it as "C:\Web\MyWeb\index.html"

    8. Image titled Create a Web Host in Your Home Step 8

      8

    9. Image titled Create a Web Host in Your Home Step 9

      9

      Locate your site. Now in your "Web Server" open your favorite browser and type in the address bar, http://localhost/ Your winner page will be served by the Internet on your browser.

    10. 10

      Get the IP of your home, (look in the Open Your Port 80 Behind a Firewall tips). That is the address of your broadband given by your Internet Service Provider, on the Internet. Ask a friend of yours to type it in his browser. Your site is open to public now.
      • If your IP number is, say, 98.227.112.49 then your friend types http://98.227.112.49/
        Image titled Create a Web Host in Your Home Step 10Bullet1
      • This IP is subject to change and difficult to remember. It needs to be maintained dynamically, and pointed by a name like other sites, say [www.i_am_homesite_proud.com] .
        Image titled Create a Web Host in Your Home Step 10Bullet2

    Community Q&A

    Add New Question
    • How can I create a web host, such as the ones ending in .com or .org?

      wikiHow Contributor

      To have a .com or .org means you have to get a domain name. To get a domain name, such as example.com, you have to buy one from an internet registrar such. Then, once you have that domain name, you can point it to a web hosting server at your house or buy web hosting from an online host.

    • Will it work on Windows XP?

      mukul sharma

      Yes, it will work on Windows XP and on other versions, you just have install Apache server software.

    • Do I need a router to make a web host in my home?

      wikiHow Contributor

      Yes, you need a router. Without a router you can't do anything on the internet.

    • Is it okay if I have Ethernet without a router?

      wikiHow Contributor

      I believe it's even better, because routers act like an extra device between your computer and the internet. So if you have a router, you'd have to do port redirects from the routers settings, while being directly connected to your internet service providers network means you have direct connection to your ports.

    • What will happen if I made my laptop to a web server while using it daily?

      mukul sharma

      You can make your laptop a web server, but it is not recommended as a server takes too much memory to run its functionality. It will make your laptop slow.

    Ask a Question

    Tips

    • You need to get a free/paid subscription from a "dynamic DNS service provider." They also provide you with a mnemonic as your web site name, and a free client software to be installed on your web server to maintain your changing IP address. People can watch your site using that name. But if you like to have your desired website name, it is necessary to purchase one with some less than $10 per year. Then point that name to "dynamic DNS service provider" using their simple instructions.

    Warnings

    • Become sure you are doing these experiments on a computer that is not of daily use of you and your family.
    • XP should no longer be used for this purpose as it is vulnerable to issues without a service patch, linux is an easy-to-install alternative supported by many popular web service applications.

News How to make own web hosting