A simple step-by-step guide using a subdomain
Open your hPanel dashboard
Example: app.cpst.site
app or system.public_html/app. Leave it as is.Set up MySQL for your system
myapp_db..sql file, and click Go.Put your project into the subdomain folder
public_html/app..zip project file.index.php (or index.html) is directly inside the folder — not in a subfolder.npm run build on your local machine first.
This generates a dist/ folder — that's the only folder you need to upload.
Zip the contents of dist/, upload the zip to your subdomain folder in File Manager, then extract it.
Make sure index.html ends up directly in the subdomain root — not inside a nested dist/ subfolder.
Update your database config file
config.php or .env).<?php define('DB_HOST', 'localhost'); define('DB_NAME', 'u123456_myapp_db'); define('DB_USER', 'u123456_dbuser'); define('DB_PASSWORD', 'YourPassword123');
u123456_). Copy the exact names from the MySQL Databases panel.
Make sure everything is working
Common Errors:
755, files to 644.index.php is not in the right folder.Your system is now deployed and running on Hostinger.
To update your site later, just re-upload the changed files via File Manager.