Deploy static site with PHP
This guide will help you install the necessary software for your website, upload files to the server, and configure the NGINX web server. 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 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, and NGINX.
To do this:
- Go to the main page of the BeAdmin panel.
- Select the appropriate installation wizard.
- 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:
- Enter your website’s domain name.
- Select HTTPS or manually specify another port.
- Add
index.php
to the beginning of the index files list. - Keep the default folder for website files or create/select your own.
- Choose the required PHP version (if not installed, the system will prompt you to install it).
If you do not want the website to be immediately accessible online, toggle off the Enable Host
option.
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:
- Go to the Files section.
- Ensure the website folder is created (it usually matches your domain name).
- Right-click on an empty area and select
Upload
. - Choose your website archive and upload it.
After uploading:
- Double-click on the archive to extract files.
- Open the folder and verify that all files are in place.
- 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. 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! 🚀