Thursday, June 18, 2026

Complete Tutorial: Deploying a Website on InfinityFree

 

Complete Tutorial: Deploying a Website on InfinityFree

InfinityFree is one of the most popular free web hosting platforms. It allows you to host HTML, CSS, JavaScript, PHP, WordPress, and MySQL websites without paying for hosting. It includes free subdomains, FTP access, MySQL databases, SSL support, and Softaculous for WordPress installation.


Step 1: Create an InfinityFree Account

  1. Visit InfinityFree
  2. Click Register.
  3. Verify your email address.
  4. Login to the Client Area.

Step 2: Create a Hosting Account

  1. Click Create Account.
  2. Choose either:
    • A free subdomain (e.g., mywebsite.epizy.com)
    • Your own custom domain
  3. Click Create Account.
  4. Wait for account activation (usually a few minutes).

Step 3: Open the Control Panel

After your hosting account is created:

  1. Go to Accounts.
  2. Click Control Panel beside your hosting account.
  3. InfinityFree will open VistaPanel, which functions similarly to cPanel.

Step 4: Prepare Your Website Files

Your website should be organized like this:

website/
├── index.html
├── about.html
├── css/
│ └── style.css
├── js/
│ └── script.js
└── images/

For PHP websites:

website/
├── index.php
├── config.php
├── assets/
└── includes/

Step 5: Upload Files

Option A: Using Online File Manager

  1. Open Online File Manager.
  2. Navigate to:
htdocs
  1. Delete any default files.
  2. Upload your website files.
  3. Ensure your homepage is named:
index.html

or

index.php

All website files must be uploaded into the htdocs directory.


Option B: Using FileZilla (Recommended)

Download:

FileZilla FTP Client

Then:

  1. Login to InfinityFree.
  2. Open FTP Details.
  3. Copy:
    • FTP Host
    • FTP Username
    • FTP Password
  4. Open FileZilla.
  5. Enter:
Host: FTP Hostname
Username: FTP Username
Password: FTP Password
Port: 21
  1. Connect.
  2. Navigate to:
htdocs
  1. Drag your website files from your computer into the htdocs folder. FTP is the most reliable upload method on InfinityFree.

Step 6: Create a Database (For PHP or WordPress Sites)

If your site uses MySQL:

  1. Open MySQL Databases.
  2. Create a database.
  3. Create a database user.
  4. Assign the user to the database.
  5. Note:
    • Database Name
    • Username
    • Password
    • Database Hostname
  6. Open phpMyAdmin.
  7. Import your SQL backup file.

Step 7: Configure Database Connection

Update your PHP configuration:

<?php

$host = "sqlXXX.infinityfree.com";
$user = "your_username";
$pass = "your_password";
$db = "your_database";

$conn = mysqli_connect($host,$user,$pass,$db);

?>

InfinityFree usually uses a specific database hostname rather than localhost.


Step 8: Connect Your Custom Domain

If you already own a domain:

Example:

ccyiglobalenterprise.com
  1. Go to your domain registrar.
  2. Change nameservers to those provided by InfinityFree.
  3. Add the domain inside InfinityFree.
  4. Wait for DNS propagation (up to 24–72 hours).

Step 9: Enable SSL (HTTPS)

  1. Open SSL/TLS section.
  2. Request a free SSL certificate.
  3. Install the certificate.
  4. Force HTTPS using .htaccess:
RewriteEngine On

RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

InfinityFree supports free SSL certificates and HTTPS.


Step 10: Install WordPress (Optional)

InfinityFree includes Softaculous.

  1. Open Softaculous Apps Installer.
  2. Select WordPress.
  3. Click Install.
  4. Enter:
    • Site Name
    • Username
    • Password
  5. Finish installation.

WordPress can be installed without manually uploading files.


Common Errors and Solutions

ProblemSolution
Blank pageEnable PHP errors and check file paths
404 ErrorEnsure files are inside htdocs
Database errorVerify DB hostname and credentials
Website not loadingWait for DNS propagation
FTP connection failedVerify FTP credentials
SSL not workingInstall SSL and force HTTPS

Recommended Workflow for Your CCYI Website

Since you manage websites and Moodle platforms:

  1. Design locally using WordPress or HTML.
  2. Test on XAMPP.
  3. Upload via FileZilla.
  4. Use a custom domain.
  5. Enable SSL.
  6. Configure Cloudflare for better performance.
  7. Regularly back up files and databases.

This approach works well for:

  • CCYI Global Enterprise
  • CCYI Digital Academy
  • Portfolio websites
  • Small business websites
  • Student projects

If you want, I can also provide a step-by-step guide for deploying a WordPress website on InfinityFree with your own domain name from Nigeria (Whogohost, DomainKing, SmartWeb, etc.), including screenshots and DNS settings.

No comments:

Post a Comment

Step-by-Step Guide: Deploying a WordPress Website on InfinityFree with a Custom Domain

  Step-by-Step Guide: Deploying a WordPress Website on InfinityFree with a Custom Domain This guide assumes you have: A domain name from...