How to migrate a website to BeAdmin
Migrating a website to BeAdmin
is a convenient way to quickly deploy a project on a server without manual setup via console and configuration files. All key steps — creating a server block, uploading files, and connecting a database — can be done in just a few clicks. This guide will walk you through the process step by step.
⚠️ Warning
Before you start, make sure you have an archive with your website files and, if the project uses a database, its dump.
Step 1. Preparing the web server
First, you need to configure the web server (NGINX) that will handle requests to your website.
Go to the NGINX section.
ℹ️ Info
If the NGINX module is not yet installed, simply install it.
Click Create
→ Server block and fill in the parameters that match your website. Detailed instructions are available in the guide on how to set up a server block in NGINX.
💡 Tip
When adding a domain, you can immediately issue a free SSL certificate using BeAdmin
. The domain must point to the server’s IP address. If it’s not yet configured, create a block with port 80 (HTTP).
If your project uses a database, go to the MariaDB section.
ℹ️ Info
If the MariaDB module is not yet installed, install it first.
Click Create
→ Database, specify the name, and if needed configure Charset and Collation in the Advanced settings section.
Then go to Users, click Create
→ User, set a name and password, select the created database, and save.
The server preparation is complete.
Step 2. Migrating files and database
You can upload your website files in different ways.
Via FTP
Use any FTP client, such as FileZilla. For details, see the guide on how to connect to a server via FTP.
After connecting, upload your files to the website directory and then import the database.
Via SSH
Connect to the server via SSH. Instructions can be found in the guide on how to connect to a server via SSH.
Copy files with:
rsync -avP root@SOURCE_IP:/path/to/site/ /home/www/your_domain/
Change ownership:
chown beadmin:beadmin -R /home/www/your_domain/
Import the database:
mysql -u db_user -p db_name < /home/www/path/dump.sql
ℹ️ Info
The command will ask for the database user’s password.
Via file manager
ℹ️ Info
Prepare an archive with website files and a database dump.
In the panel, open Files, go to your website’s folder, click Upload
, and select the archive. Once uploaded, right-click the archive and choose Extract
.
To import the database, find the uploaded dump, right-click it, and select Import into database
. Choose the previously created database and click Run
.
Step 3. Configuring and testing the website
After migration, update your project settings so it works correctly on the new server, especially the database connection parameters.
Your website will be available via your domain. You can check it directly or temporarily map the server IP in your local hosts
file.
💡 Tip
If you see a 403 error, check file permissions:
- directories —
755
- files —
644