HomeCommunity & Content › How to Migrate a MyBB Forum from Shared Hosting to Hostinger VPS

How to Migrate a MyBB Forum from Shared Hosting to Hostinger VPS

Updated 2026-07-04 · Hosting Reviews

Hosting Reviews is reader-supported. This page contains affiliate links to Hostinger; we may earn a commission if you sign up through them — at no extra cost to you.

Why Move Your MyBB Forum to Hostinger VPS?

Running a MyBB forum on shared hosting works fine when traffic is low, but as your community grows you’ll hit limits on CPU, memory, and database connections. Migrating mybb forum to hostinger vps gives you dedicated resources, better control over PHP and MySQL versions, and the ability to install security patches without waiting for a shared‑host provider. Hostinger’s VPS plans start around $3‑$15 per month, making it an affordable upgrade for small to medium‑sized forums.

What You Need Before the Migration

Choosing the Right Hostinger Plan for Your Forum

Hostinger offers three main hosting types: Shared, Cloud, and VPS. For forums that need more than the shared tier’s limits, VPS is the sweet spot. It’s cheaper than dedicated servers, gives root access, and scales as members increase.

Deal alert
Get Forum & Community Site online
Build an online community or forum — the hosting that handles traffic plus the software to run discussions and groups.
Build Your Community on Hostinger →

Typical VPS price ranges on Hostinger:

Renewal rates will be higher than the introductory offer, so budget for that when you commit.

Step‑by‑Step: Migrating Your MyBB Forum

  1. Backup on Shared Host
    Export the database using phpMyAdmin or MyBB’s built‑in backup feature. Zip the entire public_html folder (or wherever MyBB is installed).
  2. Prepare the VPS
    Log into the Hostinger VPS via SSH (use a client like PuTTY or the terminal). Install the LAMP stack if not pre‑installed:
    sudo apt update
    sudo apt install apache2 php php-mysql libapache2-mod-php
    sudo systemctl restart apache2
    
    Create a new MySQL user for the forum.
  3. Upload Forum Files
    Use SCP or an SFTP client to transfer the zipped folder to the VPS. Unzip it into a directory under /var/www/html/ (e.g., /var/www/html/yourforum). Set permissions:
    sudo chown -R www-data:www-data yourforum
    sudo find yourforum -type d -exec chmod 755 {} \
    
    
  4. Import the Database
    Log into MySQL on the VPS:
    mysql -u root -p
    CREATE DATABASE mybb;
    GRANT ALL PRIVILEGES ON mybb.* TO 'mybbuser'@'localhost' IDENTIFIED BY 'strongpassword';
    FLUSH PRIVILEGES;
    EXIT;
    
    Then import the SQL file:
    mysql -u mybbuser -p mybb < /path/to/backup.sql
    
  5. Configure config.php
    Edit the config.php file in your forum folder. Update the database name, user, and password to match the VPS credentials. Also set the $dbhost to localhost if you’re using the same server.
  6. Adjust Apache Virtual Host
    Create a new virtual host file for your domain:
    sudo nano /etc/apache2/sites-available/yourforum.conf
    
    Add:
    <VirtualHost *:80>
        ServerName yourforum.com
        DocumentRoot /var/www/html/yourforum
        
            AllowOverride All
        
    </VirtualHost>
    
    Enable the site and reload Apache:
    sudo a2ensite yourforum
    sudo systemctl reload apache2
    
  7. Update DNS
    Point your domain’s A record to the VPS IP address. DNS propagation can take up to 24 hours, but usually updates faster.
  8. Test the Forum
    Visit http://yourforum.com and log in with your admin account. Verify that threads, uploads, and plugins work.
  9. Secure the Server
    Enable UFW firewall, install fail2ban, and obtain a free Let’s Encrypt SSL via Certbot:
    sudo ufw allow OpenSSH
    sudo ufw enable
    sudo apt install certbot python3-certbot-apache
    sudo certbot --apache -d yourforum.com
    
  10. Monitor Performance
    Use tools like htop and MySQL’s slow query log to spot bottlenecks. Adjust PHP memory limits or MySQL cache settings if needed.
  11. Cleanup
    Once the forum is stable, delete the old files and database on the shared host to avoid duplicate traffic.

Speed and Security Basics for Forum Hosting

Speed:

Security:

When to Stick With Shared Hosting or Upgrade to Cloud

If your forum has under 500 members and traffic spikes rarely, a Hostinger shared plan might suffice. Look for plans that allow at least 1 GB RAM and 20 GB SSD. However, once you hit >1,000 members or notice CPU throttling, moving to VPS is the next logical step. For ultra‑high traffic or when you want multiple services (email, media hosting) on the same server, consider Hostinger’s Cloud hosting – it offers auto‑scaling but at a higher cost.

FAQ

Can I keep my domain registered elsewhere when moving to Hostinger VPS?

Yes. Just update the domain’s A record to point to the new VPS IP. Hostinger also offers domain registration if you prefer to manage everything in one place.

How long does the migration typically take?

For a small forum, the entire process can be done in 2–3 hours. Larger forums with more data might take a full day, especially if you need to tweak performance settings.

What if something goes wrong during migration?

Keep a full backup on your shared host until you confirm the VPS forum is functioning. If the migration fails, you can revert by restoring the backup and pointing the domain back to the shared host.

Ready to buy?
Get Forum & Community Site online
Build an online community or forum — the hosting that handles traffic plus the software to run discussions and groups.
Build Your Community on Hostinger →