How to Host a Blog

Check the terms of service agreement used by your Internet service provider., Plan to keep your computer online as much as possible., Disable any firewalls you have running., Assign a static IP address to your machine., Configure your router for...

9 Steps 4 min read Medium

Step-by-Step Guide

  1. Step 1: Check the terms of service agreement used by your Internet service provider.

    Some service providers will not allow you to host your own web content.

    Make sure hosting your blog does not violate your agreement before proceeding.
  2. Step 2: Plan to keep your computer online as much as possible.

    You will be hosting your blog from your own computer, so remember that when your computer is turned off or offline, your blog will be inaccessible over the Internet.

    Schedule Windows updates to occur at a time when most users will not be online (in the middle of the night, for example), because they will restart your computer.

    Also, make sure to set your virus scanning software to only scan once per day, instead of scanning in real time.

    This will free up your computer's resources for hosting the blog. , To host a website, your computer needs unrestricted communications access to the Internet.

    Open the firewall control panel in Windows, and click on the "Exceptions" tab.

    Click the "Add Port" button, and enable the following 3 ports:
    HTTP (80), HTTPS (443), and MYSQL (3306). , For general web use, most computers will be set up to obtain an IP address automatically, which means the address may change.

    To run a web server, however, you need an IP address that doesn't change, so that you can point your domain name (your blog's URL) to that IP address.

    Click on the "Start" button and click "Run." Type "cmd" into the text field and press Enter.

    In the command prompt that appears, type "ipconfig /all." This will display the network settings configured for your computer.

    Under the heading "Local Area Connection," look for the entries marked "IP Address," "Subnet Mask," "Default Gateway," and all the IP addresses listed under "DNS Servers." Write all this information down and then close the window.

    Open the Network Connections menu in the Control Panel.

    Right-click on the "Local Area Connection" icon and click "Properties." In the window that appears, select the "TCP/IP" option and click the "Properties" button.

    The window that appears will have 2 options: "Obtain an IP address automatically," and "Use the following." Select "Use the following," and enter all the information you wrote down into the appropriate fields.

    In the IP address field, however, you want to enter a different number.

    Enter the IP address you wrote down, but change the last set of digits (after the final decimal point) to something much higher than what you wrote down.

    For example, if you have written "67.168.129.10," then you could change the address to "67.168.129.250." Click the "OK" button to save the changes.

    Open your web browser to make sure you're still connected to the Internet after making the changes. , Access your router's configuration screen; this is usually done by opening a web browser and navigating to the address "192.168.0.1." If that doesn't work, consult the manual or support website for your particular router.

    Find the menu for port forwarding in the configuration screen, and specify the static IP address that you chose above in the appropriate field.

    Then, enable TCP ports 80, 443, and 3306 to forward to that IP address. , Your blog will need a domain name (for example, www.myblog.com) and a service for pointing that domain name to your IP address.

    DynDNS is a company that offers a free service to accomplish this; simply download their software and keep it running on your computer.

    When users type your blog's URL into the browser, DynDNS's service will point their browser to the website that you are hosting from your own computer. , You will need 3 things to host your blog at home: the Apache web server, the PHP scripting language, and the MySQL database server.

    You don't actually have to know how any of these work in depth, as you won't need to interface with them directly.

    The easiest way to install these components is by downloading a free application called XAMPP, which will install all of them with a few simple clicks. , The default installation for XAMPP doesn't enable any security features, so you will want to add them.

    Open your web browser, type in the address "http://localhost" and press Enter.

    This will take you to the XAMPP configuration screen.

    Click on the "Security" menu, and select the option to password protect your MySQL root and XAMPP settings.

    Choose a password to protect the settings. , The only thing left to do is put all your web content where it needs to be.

    Navigate to the location where you installed XAMPP, and locate the "htdocs" folder inside the XAMPP folder.

    Store all of your blog's files (web pages, images, etc.) in this folder.

    If you are using software such as WordPress to build your blog, refer to their manual for hosting your content from home.
  3. Step 3: Disable any firewalls you have running.

  4. Step 4: Assign a static IP address to your machine.

  5. Step 5: Configure your router for port forwarding.

  6. Step 6: Register a domain name and sign up for a static DNS service.

  7. Step 7: Install the necessary software for hosting web content.

  8. Step 8: Enable password protection in your XAMPP setup.

  9. Step 9: Store your blog's files in the correct place.

Detailed Guide

Some service providers will not allow you to host your own web content.

Make sure hosting your blog does not violate your agreement before proceeding.

You will be hosting your blog from your own computer, so remember that when your computer is turned off or offline, your blog will be inaccessible over the Internet.

Schedule Windows updates to occur at a time when most users will not be online (in the middle of the night, for example), because they will restart your computer.

Also, make sure to set your virus scanning software to only scan once per day, instead of scanning in real time.

This will free up your computer's resources for hosting the blog. , To host a website, your computer needs unrestricted communications access to the Internet.

Open the firewall control panel in Windows, and click on the "Exceptions" tab.

Click the "Add Port" button, and enable the following 3 ports:
HTTP (80), HTTPS (443), and MYSQL (3306). , For general web use, most computers will be set up to obtain an IP address automatically, which means the address may change.

To run a web server, however, you need an IP address that doesn't change, so that you can point your domain name (your blog's URL) to that IP address.

Click on the "Start" button and click "Run." Type "cmd" into the text field and press Enter.

In the command prompt that appears, type "ipconfig /all." This will display the network settings configured for your computer.

Under the heading "Local Area Connection," look for the entries marked "IP Address," "Subnet Mask," "Default Gateway," and all the IP addresses listed under "DNS Servers." Write all this information down and then close the window.

Open the Network Connections menu in the Control Panel.

Right-click on the "Local Area Connection" icon and click "Properties." In the window that appears, select the "TCP/IP" option and click the "Properties" button.

The window that appears will have 2 options: "Obtain an IP address automatically," and "Use the following." Select "Use the following," and enter all the information you wrote down into the appropriate fields.

In the IP address field, however, you want to enter a different number.

Enter the IP address you wrote down, but change the last set of digits (after the final decimal point) to something much higher than what you wrote down.

For example, if you have written "67.168.129.10," then you could change the address to "67.168.129.250." Click the "OK" button to save the changes.

Open your web browser to make sure you're still connected to the Internet after making the changes. , Access your router's configuration screen; this is usually done by opening a web browser and navigating to the address "192.168.0.1." If that doesn't work, consult the manual or support website for your particular router.

Find the menu for port forwarding in the configuration screen, and specify the static IP address that you chose above in the appropriate field.

Then, enable TCP ports 80, 443, and 3306 to forward to that IP address. , Your blog will need a domain name (for example, www.myblog.com) and a service for pointing that domain name to your IP address.

DynDNS is a company that offers a free service to accomplish this; simply download their software and keep it running on your computer.

When users type your blog's URL into the browser, DynDNS's service will point their browser to the website that you are hosting from your own computer. , You will need 3 things to host your blog at home: the Apache web server, the PHP scripting language, and the MySQL database server.

You don't actually have to know how any of these work in depth, as you won't need to interface with them directly.

The easiest way to install these components is by downloading a free application called XAMPP, which will install all of them with a few simple clicks. , The default installation for XAMPP doesn't enable any security features, so you will want to add them.

Open your web browser, type in the address "http://localhost" and press Enter.

This will take you to the XAMPP configuration screen.

Click on the "Security" menu, and select the option to password protect your MySQL root and XAMPP settings.

Choose a password to protect the settings. , The only thing left to do is put all your web content where it needs to be.

Navigate to the location where you installed XAMPP, and locate the "htdocs" folder inside the XAMPP folder.

Store all of your blog's files (web pages, images, etc.) in this folder.

If you are using software such as WordPress to build your blog, refer to their manual for hosting your content from home.

About the Author

E

Eric Morgan

Enthusiastic about teaching DIY projects techniques through clear, step-by-step guides.

43 articles
View all articles

Rate This Guide

--
Loading...
5
0
4
0
3
0
2
0
1
0

How helpful was this guide? Click to rate: