It's time for free sites

Hey %username%!

It's time for free sites

Today, many novice web developers make a big mistake, and more than one. They make up something, and then they buy hosting. Next, buy a domain. Register and connect an SSL certificate. I, escaping from negative karma, will simply tell you how don't waste money for your test projects.

By the way, there are absolutely no ads here, even if it seems so to you - this is just another tutorial, with a description of the necessary resources and maximally clear.

I recommend creating a new mail for each such project and registering everywhere using it, and not your personal email.

Hosting

When requesting “Free hosting“Google is the first, naturally after advertising, to offer 000webhost.com. This is a very interesting hosting - having been using it for two years now, I noticed that the allowed number of free sites and other conditions change all the time, but the main thing is that it remains the most convenient.

So, today they offer: 

  • 1 free site
  • 1 MySQL database
  • PHP Multiple Versions
  • Domain connection
  • 300mb SSD space (was a gigabyte, miser!)
  • FTP

It used to be better, but I think this one is also suitable for our test projects. Moreover, these disadvantages are compensated by a convenient control panel, which not many of its competitors can boast of.

What to do?

  1. Signing up - it's easy!
  2. Click "Create a site", do what they ask.

That's all. We will return to 000webhost later. For now…

Domain name

There is no ideal option for work projects. But we're going to do mini-projects and we don't need much - just any second-level domain. Help us - I freenode, it is also the first in the search results, it has no analogues - they bought them all and received from some countries a monopoly on the sale of their domains.

Here we are approaching the problem www.freenom.com only domains of all distant African countries are available, where they decided to promote the Internet by giving away their domains for free: “.tk",".ml", ".gq", ".cf", ".ga". Naturally, they are as money lovers as 000webhost and only provide a free domain for 12 months. maximum, but it can be re-registered later.

So, we choose.

Action sequence #1

  1. Signing up - it's easy!
  2. We go to the "Services" tab from the top, and then - "Register a new domain".
  3. After that, the service itself will tell you everything.
  4. After successfully registering the domain, click "Services" again, and there - "My domains". Do not close this tab.

Back to our free hosting…

Action sequence #2

  1. We go to 000webhost again and see our site with an ugly third-level domain name (sitename.000webhost.com). Let's fix this.
  2. We move the cursor over a beautiful picture - appeared. the inscription '"Manage the site", click.
  3. In the left sidebar we see "Tools", follow the link.
  4. Intuitively select the item "Specify a web address"
  5. There is a button - "+ Add domain", click!
  6. A beautiful modal window appears, where we select the first item - we will “park” our domain.
  7. Enter "Domain name", click on the "magic button" [leave this tab in the background] and go to the tab where you left Freenom.

Action sequence #3

  1. Here, in the table, opposite the domain, click on the "Manage domain" button.
  2. When you click on the "Management Tools" tab, a select box will appear where you need to select Nameservers.
  3. Switch "Use default nameservers (Freenom Nameservers)" to "Use custom nameservers (enter below)"
  4. Enter “ns01.000webhost.com” at the bottom, and “ns02.000webhost.com” in the next line, and then “Change nameservers”
  5. We return to the “Webhost” and opposite our “pending” domain, select in the “Manage” select “Check name servers”
  6. We see that our domain has become active, click "Manage" again and bind it to our sitename.000webhost.com

Yes, now we have everything ready, but we have not solved the last problem that needs to be solved for free - SSL certificate.

Cloudflare

«Cancer of the Internet“is a great alternative name for such a great free service. I think it suits us. Besides that CloudFlare protect us from DDOS attacks and cache our site, speeding it up, they will give us a free certificate. It is very comfortable.

Easily

  1. Sign up for CloudFlare by choosing a free plan.
  2. Adding our site: you need to go again and change the nameservers in Freenom - remove the old ones and install the ones that the service offers.
  3. You will immediately be prompted to configure SSL, I recommend the “Flexible” item.
  4. There are a lot of interesting things in the settings.

Instead of a conclusion

So, your site is set up and is no worse than if you paid money for it. But I recommend adding

<head>

your site, to all pages, like this:

<style>img[alt="www.000webhost.com"] {display: none;}</style>

This way you will hide the annoying 000webhost logo. Many engines, for example Aegea, magically remove it themselves.

With some skill, it is possible to do all these steps in ~45 minutes. Thus was bornPair of Strings".

I do not hope that this article has benefited you momentarily, but you can always bookmark it on Habré 🙂 Thanks for reading!

Source: habr.com

Add a comment