Skip to content

Deploy a Website with PHP, NGINX, and MySQL Using BeAdmin

This guide will help you install the necessary software for your website, upload files to the server, configure the NGINX web server, and connect to a MySQL database. At the end, you’ll be able to verify that your website is accessible online.

Requirements Before You Start

  • A server with BeAdmin installed (see Installation Guide)
  • A website file archive
  • A database dump file (if available)
  • A domain name and an A record pointing to your server’s IP address

Accessing the BeAdmin Panel

After successfully installing BeAdmin, you can access the control panel at: https://your_server_ip:8080/ or https://your_domain:8080/ (if you specified a domain during installation).

Replace your_server_ip or your_domain with the actual address, open the link, and log in using the email set during installation (default: admin@local.host).

Step 1. Choose an Installation Wizard and Install Modules

To run a website, you need to install the required components: PHP, NGINX, and MySQL.

To do this:

  1. Go to the main page of the BeAdmin panel.
  2. Select the appropriate installation wizard.
  3. Start module installation.

By default, the latest versions are installed, but you can choose a different PHP version in the next steps if needed.

NGINX installation takes about 15 seconds, after which you can proceed—other modules will install automatically.

Step 2. Create a Server Block

To ensure your website functions correctly, you need to configure the NGINX web server to handle incoming requests. Each website uses a server block, which directs requests to the appropriate files.

Go to Nginx and create a new server block:

  1. Enter your website’s domain name.
  2. Select HTTPS or manually specify another port.
  3. Add index.php to the beginning of the index files list.
  4. Keep the default folder for website files or create/select your own.
  5. Choose the required PHP version (if not installed, the system will prompt you to install it).

Tip

If you do not want the website to be immediately accessible online, toggle off the Enable Host option.

  1. After filling in all the parameters, click Create, then navigate to the newly created server block and select it in the installation wizard.

Step 3. Upload Website Files

Since no website files are currently on the server, the web server cannot process incoming requests. Follow the instructions below to upload files to the server.

How to upload files:

  1. Go to the Files section.
  2. Ensure the website folder is created (it usually matches your domain name).
  3. Right-click on an empty area and select Upload.
  4. Choose your website archive and upload it.

After uploading:

  1. Double-click on the archive to extract files.
  2. Open the folder and verify that all files are in place.
  3. Right-click on the folder and assign it in the installation wizard.

Important

Typically, the archive extracts files into a folder named after your website. However, depending on how the archive was created, the files might end up in the root directory or a different folder. If needed, move them to the correct folder or rename the existing one.

Step 4. Configure MySQL Connection

Most websites require a database to store and process data. Usually, you need to create a database and a user that the site will use to connect. If you already have a database dump, you can import it. Prepare the database for use by following the next steps.

Set up a database:

  1. Go to MySQL and create a database for your website.
  2. Create a user who will connect to this database.
  3. Select the database and user in the installation wizard.

Hint

Database name and credentials are often specified in your website’s code. Check your configuration files for the database name, username, and password, then create them in BeAdmin.

If you have a database dump file:

  • Go to Files.
  • Upload the .sql database dump file (if it wasn’t uploaded with the site files).
  • Right-click the file and select Restore.
  • Choose the target database and start the restoration process.

Once successfully restored, the database will be ready for use.

Important

Some SQL scripts may include CREATE DATABASE commands, which will cause errors if the database has already been manually created. In this case, edit the dump file and remove the database creation commands before importing.

Step 5. Verify Website Functionality

If all steps were completed correctly, the installation wizard will provide a link to check if your website is accessible. Open the link and ensure that the website loads properly.

If you disabled the Nginx host during setup, return to its settings and enable it to make the site accessible.

After opening the link, the installation wizard will close automatically. You can later access your website from the Websites section.

🎉 Done! Your website has been successfully deployed and is ready to use! 🚀

BeAdmin © 2025. All rights reserved.