Belajar PHP untuk PEMULA | 24. WEB HOSTING & DOMAIN NAME GRATIS
3 min read
6 days ago
Published on Oct 23, 2024
This response is partially generated with the help of AI. It may contain inaccuracies.
Table of Contents
Introduction
In this tutorial, we will explore how to set up your website on the internet using free web hosting and domain name services. This guide is ideal for beginners looking to showcase their projects or personal websites without incurring costs. We will use InfinityFree for hosting and Freenom for domain registration.
Step 1: Sign Up for Free Web Hosting
- Go to InfinityFree.
- Click on the "Sign Up" button.
- Fill in the required details to create your account.
- Email address
- Password
- Confirm your email address by clicking the link sent to your inbox.
- Log in to your InfinityFree account.
Step 2: Create a New Hosting Account
- After logging in, navigate to the "Control Panel."
- Click on "Create Account."
- Choose a domain:
- You can use a domain from Freenom (we'll cover that next) or create a subdomain.
- Fill in the necessary details:
- Domain name (or select a subdomain)
- Choose a password
- Click on "Create Account" to finalize the process.
Step 3: Register a Free Domain Name
- Visit Freenom.
- In the search bar, enter your desired domain name.
- Select a domain from the available options (e.g., .tk, .ml, .ga, .cf, .gq).
- Click "Get it now" and proceed to checkout.
- Fill in your account details or create a new account.
- Confirm your registration and set the domain to be managed by InfinityFree.
Step 4: Point Your Domain to Your Hosting Account
- Go back to the InfinityFree control panel.
- Find the nameservers provided by InfinityFree (usually ns1.epizy.com and ns2.epizy.com).
- Return to Freenom and navigate to the "Manage Domain" section.
- Update the nameservers to the ones given by InfinityFree.
- Save the changes and wait for the DNS to propagate (this may take a few hours).
Step 5: Upload Your Website Files
- In the InfinityFree control panel, go to the "File Manager."
- Click on "htdocs" to access the root directory.
- Upload your website files (HTML, CSS, PHP, etc.) to this directory.
- Ensure your main file is named
index.php
orindex.html
for it to be recognized as the homepage.
Step 6: Test Your Website
- Open a web browser and enter your domain name.
- Check if your website loads correctly.
- If you see any errors, verify the file uploads and the configuration settings.
Conclusion
You have successfully set up a free website using InfinityFree and Freenom. By following these steps, your website is now accessible to anyone on the internet. Next steps could include exploring more advanced features of hosting or enhancing your website with additional content and functionalities. Happy coding!