This guide will help you upload your website files and import the database correctly.
✅ Step 1: Upload Website Files
- Login to your cPanel account
- Open File Manager
- Navigate to:
public_html(for main domain)
- Click Upload
- Upload your website file (ZIP recommended)
- After upload:
- Right-click → Extract
✅ Step 2: Create Database & User
- Go to MySQL Databases
- Create:
- Database Name (e.g.
yourdb) - Username (e.g.
youruser) - Strong Password
- Database Name (e.g.
- Scroll down → Add User to Database
- Select:
- User + Database
- Click Add
- Tick ALL PRIVILEGES
✅ Step 3: Import Database
- Go to phpMyAdmin
- Select your database (left side)
- Click Import
- Choose your
.sqlfile - Click Go
✅ Step 4: Connect Website to Database
You must update the config file inside your website.
For WordPress:
Open wp-config.php and edit:
define('DB_NAME', 'cpanel_dbname');
define('DB_USER', 'cpanel_username');
define('DB_PASSWORD', 'your_password');
define('DB_HOST', 'localhost');
define('DB_USER', 'cpanel_username');
define('DB_PASSWORD', 'your_password');
define('DB_HOST', 'localhost');
For Custom Websites:
Edit file like config.php or .env:
$host = "localhost";
$user = "cpanel_username";
$password = "your_password";
$database = "cpanel_dbname";
$user = "cpanel_username";
$password = "your_password";
$database = "cpanel_dbname";
✅ Step 5: Check Website
Open your domain and confirm:
- Website loads
- No database errors
- Login works
⚠️ Common Issues
❌ Database Connection Error
- Wrong DB credentials
- User not added to database
❌ Website Shows Error / Blank Page
- Check PHP version in cPanel → Select PHP Version
- Check
.htaccessfile
❌ Links Not Working (WordPress)
- Update:
siteurlhome
inside phpMyAdmin →wp_options
Pro Tip (Recommended by Netpoa)
For easier migration:
- Use WordPress plugins like:
- All-in-One WP Migration
- UpdraftPlus
- Or request support via: support@netpoa.com
