How to Host Your Own Website for Free

Let’s imagine a world wherever hosting an internet site yourself is as straightforward and reliable as browsing the net. you may host your company’s website, your personal portfolio, your email server, and even electronic messaging apps, whereas studying Amazon’s feed or reading the newest Hacker News highlights, all from the comfort of your couch. the net will surely be a a lot of democratic place, from each AN information-serving and information-browsing perspective.

Though the first vision for the globe Wide net enclosed items of this idealism (e.g., directly showing filesystem content mistreatment hyperlinks), the truth clad somewhat otherwise. sadly, hosting your own web site still has some serious obstacles, together with dynamic informatics addresses, information measure constraints, and electricity prices.



In this article, we glance at a way to host your own web site on Microsoft Windows and on Linux, and conjointly a number of the drawbacks to doing this. For each platforms, we are going to install and use the AMP (Apache, Mysql, PHP) net stack. This AMP stack is often known as WAMP on Windows and LAMP on Linux for obvious reasons.. You can do this on both Windows and Mac computers by using a server creator called MAMP, though you must first take a few steps to ensure that your computer is ready to begin hosting.

Part One of Three: Preparing to Host a Website

Make sure your Internet service contract allows hosting. Many Internet service providers (ISPs) expressly forbid personal hosting unless you have a business plan, which often costs significantly more than a standard use plan. This shouldn't be an issue if your site only generates a few hits per month, but any kind of significant traffic will draw attention to your hosting.
If your ISP prohibits home-hosting, either upgrade your plan to one that allows hosting or switch to a different ISP before you continue.
Failing to heed your ISP's policy for home-hosting can result in anything from getting your Internet turned off to having to pay fines.
Ensure that your equipment can handle hosting. In order to host a website, you must have a computer on and connected to the Internet 24 hours per day, seven days per week. This is easier to accomplish with a secondary, older computer than it is with your primary computer.
Restarting your computer to update will occasionally be necessary. During these updates, your website will be inaccessible.
Update your computer. Make sure that your computer is up-to-date with the latest operating system, security features, and drivers. Make sure you update your Windows computer or update your Mac computer before continuing.
Move your website's source code onto your computer. If your website's source code isn't already in a file on your computer, copy it from your web service's settings into a text document on your computer and save it as a PHP file.
If the website's source code is stored on your computer, make sure you know where to find it.
If you haven't yet programmed your website, you'll need to do so before continuing.
Download the MAMP program. MAMP is a free website hosting application that works on both Windows and Mac machines. To download MAMP:
Go to https://www.mamp.info/en/ .
Click DOWNLOAD below the "Free" version.
Click the orange Download button.
Wait for the file to finish downloading.

Part Two of Three: Setting up Hosting on Windows

Double-click the MAMP setup icon. It looks like a white elephant on a grey background.
Click Yes when prompted. This will open the MAMP installer.
Complete the setup process. To do so:
Select a language and click OK
Click Next
Uncheck the "MAMP PRO" box and click Next
Check "I accept" and click Next
Click Next three times, then click Install
Go to your website's source code document. While MAMP is installing, find the document on your computer that you pasted the website's source code into earlier. To do so:
Open Start
Open File Explorer
Click the document's folder in File Explorer's left-hand sidebar.
Select the document by clicking it.
Copy the source code document. Press Ctrl and C at the same time to copy the selected source code document.
Double-click the MAMP icon. It resembles a white elephant on a grey background.
Make sure you aren't clicking the setup icon here.
Click OK when prompted. You'll see a warning about port 80 appear; clicking OK on the warning window dismisses it.
Click Preferences… . This gear-shaped icon is on the left side of the MAMP window. Doing so opens the Preferences window.
Click the Ports tab. It's at the top of the Preferences window.
Click Set MAMP ports to default . This button is in the middle of the page. Doing so will reset the ports that MAMP uses, which will resolve the port 80 error.
Click the Web Server tab. It's at the top of the Preferences window.
Click Open . This button is near the bottom of the window.
Paste the source code document into the folder. Press Ctrl and V at the same time. The source code document will appear in the MAMP root folder.
Click OK on the MAMP window. This will save your settings.
Close and re-open MAMP. Click Quit in the bottom-left corner of the MAMP window, then double-click the MAMP icon to re-open MAMP.
Click Start Servers . It's on the right side of the MAMP window. Doing so will start the MAMP server with your website's source code and port preferences. Your website should now be live; people will be able to access it by entering your public IP address into a search engine.
Unless you pay for a dynamic IP service, your local IP address—and, by extension, your website's address—will change from time to time.
You cannot use your local IP address to view the website from your own network, since entering it will just take you to your router's page.

Part Three of Three: Setting up Hosting on Mac

Double-click the MAMP setup file. It resembles a brown box.
If you receive a warning message that says the file can't be opened, verify the download before continuing.
Complete the MAMP installation process. To do so:
Click Continue on each of the first three pages.
Click Agree
Click Install for all users of this computer, then click
Continue
Click Install
Enter your Mac's username and password, then click
Install Software
Wait for MAMP to finish installing. This process will likely take around five minutes.
Open Finder. Click the blue, face-shaped app in your Mac's Dock.
Go to your website's source code document. Click the folder in which the source code document that you copied or created earlier is located.
You may have to click through several folders to get to the document, depending on where you saved it.
Copy the document. Click the document to select it, then click Edit and click Copy.
Click Applications . This folder is on the far-left side of the Finder window.
Double-click the MAMP folder. It's in the middle of the Applications folder.
Double-click the htdocs folder. You'll find this folder in the middle of the MAMP folder. This folder is where your website's resources, including the source code document, go.
Paste the source code document into this folder. Click Edit, then click Paste Item.
Open MAMP. Click the MAMP icon, which resembles a white elephant on a grey background. You may have to type MAMP into Spotlight to find MAMP.
Click Preferences… . This gear-shaped icon is on the far-left side of the MAMP window.
If you receive an error window, first click OK to exit the window.
Click the Ports tab. It's at the top of the Preferences window.
Click the Set to default button. You'll find this in the middle of the Ports tab. Doing so resets the ports that MAMP uses, which will prevent your website from being blocked by your router's default firewall.
Click OK . It's at the bottom of the page. This saves your settings.
Close and re-open MAMP. Click Quit, then click the MAMP icon again to re-open MAMP.
Click Start Servers . It's on the right side of the MAMP window. Doing so will start the MAMP server with your website's source code and port preferences. Your website should now be live; people will be able to access it by entering your public IP address into a search engine.
Unless you pay for a dynamic IP service, your local IP address—and, by extension, your website's address—will change from time to time.
You cannot use your local IP address to view the website from your own network, since entering it will just take you to your router's page.
How to Host Your Own Website for Free How to Host Your Own Website for Free Reviewed by Unknown on October 18, 2017 Rating: 5

No comments:

Powered by Blogger.