Manual Migration
If you'd rather migrate your project yourself, follow the steps below to set up your server and migrate your project.
Step 1. Install the Required Software Copy link
If you don't plan to use a control panel, we recommend installing LAMP automatically when you create your server.
LAMP (Linux, Apache, MySQL, PHP) is the software stack needed to run and correctly display dynamic websites and web applications.

Alternatively, you can create a server with a clean OS and install LAMP manually later.
Step 2. Set Up Your Domain Copy link
Once your server is ready, add your domain in the dashboard under Domains & SSL.
If you're migrating between two Hostman accounts, move the domain to the destination account and point its A record to the new server's IP address. If the domain uses Hostman nameservers, you can do this from the Domains & SSL section. Otherwise, you'll need to do this from your nameserver provider's dashboard.
Step 3. Upload Your Site Files Copy link
The easiest way to upload your files is via SFTP, using an app like FileZilla.
When connecting, use:
- Your server's IP address.
- Your server login and password.
- Port 22.
Upload your files to the correct directory:
-
If LAMP was installed automatically when you created your server, upload your files to
/var/www/html. -
If you installed LAMP manually, the directory depends on your configuration. For example, it can be
/var/www/site1/public_html.
Step 4. Set Up Your Database Copy link
Connect to your server via SSH and create a database:
mysqlRun the following commands. We recommend using the database name, username, and password already specified in your site's configuration file.
Create the database:
CREATE DATABASE 'database_name';Create a database user:
CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';Grant the user full privileges on the database:
GRANT ALL PRIVILEGES ON 'database_name'.* TO 'username'@'localhost';Reload privileges:
FLUSH PRIVILEGES;Upload your database dump to the server (for example, to the /var/www/ directory via SFTP), then import it:
mysql -u"username" database_name -p"password" < /var/www/dump_name.sqlIf you'd like a GUI for managing your database, you can also install phpMyAdmin on your server.