# Manage a WordPress site

Update WordPress, plugins and themes, manage users, close the site for maintenance and edit wp-config.php safely, without a terminal.

Every WordPress site has its own **WordPress** page: open the site, then **Tools** › **WordPress** (its technical name is *WP-CLI, wp-config.php*). It works for a WordPress site Fuzops installed, a new Bedrock project and Bedrock from your repository. Everything on it runs on your server as the site's own user, one change at a time, and the page shows each change live at the top while it happens.

Reading the page is open to everyone who can see the site. Changing the site needs a role that can manage sites. Users, passwords and **Log in to WordPress** are for **Owners** and **Admins** only. **Show secrets** in a settings file is for Owners and Admins, and for Developers when the team turns that on (Team settings › **Members** › *Passwords and keys in settings files*). None of these work during a support session. Changes are part of the **Pro** and **Business** plans; on **Starter** the overview stays readable, and the Fuzops plugins and **Log in to WordPress** work on every plan.

![The WordPress page: overview with the version, updates and settings](https://internal.fuzops.com/docs-img/site-wordpress.webp "The WordPress page of a site.")

## Overview

The first part says which version of WordPress is installed and whether a newer one is waiting (a fix release of the same version, or a new version), the PHP version, the site and WordPress addresses, the database size, how many plugins, themes and translations have an update, the theme in use, whether the site is a multisite network, whether debug mode is on, the object cache, maintenance mode and when it was last read. **Read again** asks the server for fresh facts; the page opens from the last read, without waiting.

## Updates

WordPress itself, plugins, themes and translations, each with the installed and the offered version, whether it updates by itself and whether it is in use. Update one, tick several and choose **Update selected**, or **Update all**.

- **Take a backup first** is ticked when the site has a backup plan: a restore point of the files and the database is taken before the update. If that backup does not work, nothing is changed and the page offers **Update anyway, without a backup**.
- A new version of WordPress (not only a fix release) asks you to type the two versions to confirm.
- After each update the front page is asked for its answer. When it answers with an error, the page says so and links to the restore points so you can put the site back.

| Kind of site | How updates run |
|---|---|
| WordPress | WP-CLI on your server. |
| New Bedrock (installed by Fuzops) | Composer on your server for WordPress and for the plugins and themes listed in `composer.json`; WP-CLI for the others. |
| Bedrock from your repository | Nothing is updated on the server: your code comes from Git. The page lists the `composer require` commands to run in your repository; commit them and publish an update. |

## Plugins and themes

Turn a plugin on or off, switch the theme, delete one (a plugin in use asks you to type its name), and add new ones from the official WordPress directory with the search field: Fuzops searches the directory for you. A new plugin is added turned off. Must-use plugins and drop-ins are listed, not changed. On Bedrock from your repository, adding and deleting go through Git; turning on and off works here.

## Users

**Owners and Admins only.** Read the users (name, email, role, when they registered), add one, change a role, send a password reset email, or set a new password. A new password is made by Fuzops and shown **once**: copy it then, it is never kept. Deleting a user gives their posts and pages to another user you choose, so nothing disappears. The only administrator cannot lose that role or be deleted. Each change is in the team's activity log, without any password.

A sign-in link without a password is not offered: WordPress can make one only with an extra plugin on the site, and Fuzops does not add plugins on its own.

## Maintenance and tools

- **Maintenance mode** closes the site to visitors with a short "briefly unavailable" message (status 503) until you turn it off.
- **Empty the caches** empties WordPress's object cache and temporary values and rebuilds its address rules; when the site uses Fuzops's page cache, that is emptied too.
- **Update the database** runs the database update WordPress asks for after an update.
- **Scheduled events** lists the events that are due and **Run the due events now** runs them.
- **Check the files** compares WordPress's own files and the plugins from the official directory with the published copies. For a full scan, use the [malware scan](https://internal.fuzops.com/docs/malware-scan).
- **Search and replace in the database**, for example after moving to a new address. **Count the changes** first: it shows how many values would change in each table and changes nothing. **Replace now** is offered only after that, for the same texts, with a backup first when the site has a backup plan. Counting is on Pro; replacing is part of the **Business** plan.
- **Back up now** takes a restore point of the site and its database, kept with the site's [backups](https://internal.fuzops.com/docs/backups).

## Fuzops plugins

Fuzops has three small plugins of its own for WordPress (free software, GPL), each with its switches under **Fuzops plugins** on this page and the same switches in wp-admin under **Settings**. A change made in wp-admin shows here after the next read. They never contact any other server and collect nothing. Deactivating or deleting them leaves the site working as WordPress does on its own.

| Plugin | What it does |
|---|---|
| **Fuzops Connect** | **Log in to WordPress** from Fuzops; a warning in wp-admin when the site cannot send emails; a notice while maintenance mode is on. |
| **Fuzops Cache** | When you publish, update, delete or comment, the changed pages are emptied from the page cache Fuzops runs on the server (all pages when menus, widgets, the theme or plugins change), with **Empty the page cache** in the admin bar. Slows the editor's background checks to once a minute. **Run scheduled events from the server** adds a scheduled job every five minutes (see [Scheduled jobs](https://internal.fuzops.com/docs/background-processes-and-scheduled-jobs)) and stops page visits from starting them. |
| **Fuzops Security** | Hides the WordPress version, turns off the code editor and XML-RPC, stops showing user names to visitors, makes an address wait ten minutes after five wrong passwords (the server's sign-in bans count those too), and sends security headers only where the web server does not already. |

- **A WordPress or new Bedrock site Fuzops installs** gets all three, turned on, as soon as it is ready.
- **A site you brought in** is never changed without you: the page asks **Install the Fuzops plugins?**, with a choice per plugin and **Not now**.
- **Bedrock from your repository**: **Download the Fuzops plugins (.zip)**, unpack them into `web/app/plugins` in your repository and publish an update.
- **Updates** lists a newer version as "by Fuzops"; **Update** puts it in place. **Remove** turns a plugin off and deletes it with its settings, in one click.

### Object cache

**Object cache (Redis)**, under Fuzops Cache, makes WordPress keep the results of its database questions in Redis on your server, so pages are built faster. Turning it on, in one go:

1. installs and starts Redis when the server does not have it, through the server's usual install (sized like the Redis share on the server's recommended settings, and dropping only values that have an expiry when it is full);
2. installs the Redis extension for the PHP version the site runs, from the system's packages, and reloads that PHP;
3. gives the site its own Redis user that can only read and write the site's own keys, so sites on one server never see each other's cached data;
4. installs Fuzops's object cache (`object-cache.php`) and checks it: a value written in one request must come back in the next, the front page must still answer, and the hit ratio is shown.

If anything fails, the object cache is removed and the site works as before. If Redis stops answering later, WordPress keeps working without it. The overview and this tab show hits, misses and the memory this site's keys use. Turning it off removes the object cache and only this site's keys; Redis and the extension stay, because other sites may use them. When nothing else keeps data in Redis any more, the page says so and you can remove Redis from **Services**: Fuzops never removes it by itself. On Bedrock from your repository, copy `object-cache.php` from the downloaded plugins into `web/app` in the repository; the switch then prepares Redis and the connection on the server. The object cache is part of the **Pro** and **Business** plans, since it installs a server service; the page cache stays free.

The overview also reports what the plugins see: a user named "admin", users with application passwords, and an email that could not be sent.

### Log in to WordPress

With Fuzops Connect active, Owners and Admins have **Log in to WordPress** at the top of this page. Choose the WordPress user to sign in as (the list is the site's users as last read; nobody is chosen in advance). Fuzops asks the server for a sign-in link that works **once**, for **one minute**, for that user only, and you open WordPress signed in as them. A user deleted in the meantime cannot sign in. The activity log records which WordPress user was used. The link is made on your server and only a fingerprint of it is kept there; it is refused over plain http when the site has HTTPS, and an address that tries wrong links has to wait. Each sign-in is in the team's activity log. Without Fuzops Connect, the button says so and offers to install it.

## Settings file

For a WordPress site, the known settings of `wp-config.php` are a form, grouped in plain words with the setting's name beside each: debug mode and the log file, memory, automatic updates and file changes, scheduled events, revisions and the trash, HTTPS and addresses, the page cache. **Not set** removes the line so WordPress's default applies. The database name, user and server are shown; the database password never is. **Write new security keys** signs everyone out. Multisite settings and the table prefix are shown, not changed.

**The whole settings file** opens `wp-config.php` in the editor. The database password and the security keys show as `[hidden: kept as it is]` and stay as they are when you save. Owners and Admins can choose **Show secrets** to see them once. **Check and save**:

1. refuses the save if the file changed on the server since you opened it;
2. checks the new file before it is used (PHP must read it, and WordPress must be able to load it); a mistake is refused with its line number and the site keeps the previous file;
3. keeps a copy, writes the file, then checks that WordPress starts and the front page still answers; if it stops answering, the previous file is put back by itself.

**Earlier versions** lists the last ten versions saved from Fuzops, the first being the file as it was before your first change. **Put this version back** goes through the same checks.

### Bedrock

Bedrock keeps its settings per environment: `.env` first, then `config/application.php`, then `config/environments/NAME.php` for the environment in effect (`WP_ENV`). The page shows which environment is in effect and which environment files exist, and opens each of these PHP files in the editor with the same checks, copies and earlier versions. The `.env` file stays on the [Environment](https://internal.fuzops.com/docs/environment) page. On Bedrock from your repository the PHP files belong to Git, so they are shown read-only; `.env` stays editable.

Changing the database password is not offered on this page yet: the database user and the settings file would have to change together in one step.
