Mada za sehemu hiiHosting and publishing websitesMada 2
- Setting up web servers
- Deploying website
Deploying a Website
When you build a website on your computer, it is only visible to you. To make your website available to everyone on the internet, you need to deploy it. Deployment is the process of uploading your website files to a web server so that people can access them using a web browser.
A deployed website allows:
- Anyone with internet access to view your pages
- Your business or school project to reach a wider audience
- Your work to be accessible from any device anywhere in the world
Step 1: Prepare Your Website Files
Before deploying, make sure all your website files are organized in a single folder. These typically include:
- HTML files (like
index.html,about.html) - CSS files for styling
- Images, videos, or other media files
- JavaScript files if used
Your main page must be named index.html because web servers look for this file first when someone visits your site.
Step 2: Choose a Hosting Service
A web host is a company that provides space on their servers to store your website files. For Form 2 level, you can use:
- Free hosting services — such as 000webhost, GitHub Pages, or Netlify
- Local servers — like XAMPP or WAMP for practice within a school network
Step 3: Upload Files to the Server
Once you have a hosting account, you need to upload your files. This is done through:
- File Manager in your hosting control panel
- FTP (File Transfer Protocol) using software like FileZilla
Simply drag and drop your files from your computer into the public_html or www folder on the server.
Step 4: Configure Your Domain Name (Optional)
A domain name (like www.myschoolproject.tz) is the address people type to visit your site. If you purchased a domain:
- Log into your domain registrar account
- Update the DNS (Domain Name System) settings to point to your web host's servers
- Wait a few hours for the changes to propagate across the internet
If you are using free hosting, you will receive a subdomain (like yourname.000webhostapp.com) automatically.
Scenario: Amina has created a personal portfolio website for her Form 2 ICT project. The website has three files: index.html, style.css, and a folder called images containing her photo. She wants to deploy it using a free hosting service.
Solution:
- Prepare files — Amina checks that
index.htmlis in the main folder withstyle.cssand theimagesfolder. - Sign up for free hosting — She registers on 000webhost and creates a new website.
- Upload files — She opens the File Manager, navigates to
public_html, and uploads all three items. - Access the site — The system provides a link like
https://amina-portfolio.000webhostapp.com. Amina tests the link to confirm her website is live. - Share — She copies the link and shares it with her teacher and classmates.
After uploading, verify that:
- All pages load correctly without broken links
- Images and styles appear as expected
- The website works on different browsers (Chrome, Firefox)
If something is wrong, re-check that all files were uploaded to the correct folder.
| Term | Meaning |
|---|---|
| Server | A computer that stores website files and serves them to visitors |
| Hosting | The service of storing files on a server |
| Domain | The address people type to visit a website |
| Upload | Transferring files from your computer to the server |
| FTP | A method used to transfer files to a web server |
In Tanzania, small businesses and youth entrepreneurs can use website deployment to promote their products. For example, a student in Dar es Salaam who learns web design can deploy a simple online shop for a local vendor selling vitunguu (onions) and mboga (vegetables), allowing customers to browse products and place orders using mobile money — extending the business beyond the physical market location.
Jinsi utakavyotathminiwaTathmini ya mchakato · Tathmini ya matokeo · Tathmini ya maarifa
Tathmini ya mchakato
- Upload website files to a web server.
- Configure domain and DNS settings.
- Test the deployed website for accessibility.
Tathmini ya matokeo
An accessible website hosted on a server, with correct DNS and URL configurations is deployed.
Tathmini ya maarifa
Detailed knowledge of:
Method used: The student should explain how to:
- website deployment process.
Principles: The student should explain the principle of:
- DNS, domains, and hosting.
Theories: The student should explain: - the concepts of name resolutions
- DNS translation process of domain names to IP addresses.
Circumstantial knowledge:
Detailed knowledge about:
- FTP, SFTP, and hosting platforms.
Swali
What does "deploying a website" mean?
Ingia ili kuwasilisha jibu lako na lihesabiwe katika umahiri wako.
Ingia ili kufanya mazoeziMwalimu
Umekwama? Niulize chochote kuhusu mada hii.
Ingia ili kumuuliza Mwalimu wa AI wa Sonza kuhusu swali hili.
Ingia ili kuulizaMajadiliano
Hakuna maswali bado