WordPress. Managing sites
The BeAdmin panel can create WordPress sites and connect MariaDB databases to them right from the form, then manage the sites you've already created — open the admin area, change the state of the virtual host, and delete a site along with its data.
Creating a site
Every WordPress site is a bundle of an Nginx virtual host, the WordPress files on the server, a MariaDB database, and a user of that database. The panel creates all four entities from a single form.
- On the module page, click "New WordPress website".
- In the "Basic settings" block, specify the domain, the files path, the WordPress version, the PHP version, and the connection mode — HTTP or HTTPS.
- In the "Database" block, fill in the name and user of a new database, or select existing ones.
- Click "Create".
The panel deploys the virtual host, the database with its user (unless they were picked from existing ones), and the WordPress files, then adds the site to the "Websites with WordPress" list in the module's side menu. What each form field means and what its limits are — in WordPress site creation form reference. If the module isn't ready yet — Nginx, PHP, and MariaDB are installed from the module page, this step is covered in WordPress. Quick start.
Site card
Clicking a site in the "Websites with WordPress" list opens its card — from here, every action with an already created site is available.
- "Go to Admin" — opens this site's
/wp-admin/; appears once the virtual host is enabled. The first visit opens the standard WordPress setup wizard — how to go through it is described in the Finishing the WordPress installation section of the quick start. - "Host enabled" / "Host disabled" — the state of the site's virtual host. It looks like a toggle, but it's a link to the host page in the Nginx module — the state itself is changed there.
- "Edit host params" — opens the same virtual host page: domain, files path, PHP version, connection mode, and host state.
- "Go to DB" — opens the MariaDB module, from where you can go into phpMyAdmin for this site's database.
Enabling and disabling a host
A site's host is enabled and disabled the same way as any other Nginx virtual host — on its own page; you can get there straight from the site card. A disabled host stops responding to requests, while the site and its settings are kept and can be re-enabled at any time. What exactly happens when a host is disabled — in the Enabling and disabling a host section of the article on working with Nginx virtual hosts.
Deleting a site
The "Delete" button on the site card opens the "Confirm site deletion" dialog. Enter the site's domain to confirm and, if needed, tick the checkboxes:
- "Delete files" — the directory with the WordPress files on the server.
- "Delete database" — this site's MariaDB database.
- "Delete database user" — the MariaDB user the site uses to work with the database.
By default, all three checkboxes are off — without an explicit choice, only the virtual host is deleted, while the files and the database stay on the server.
‼️ Deletion is irreversible
If you tick the files and the database, you will not be able to restore them after deletion — the site will have to be created from scratch.