# Automatic updates

Security holes in content management systems usually become known quickly and are exploited quickly. With automatic updates, Sitequest installs new versions for you at a quiet hour, without you having to think of it.

They are available for **WordPress**, **Joomla**, **TYPO3** and **Drupal** installed from the dashboard.

## Setting them up

1. Open your webspace under [Webspaces](https://site.quest/dashboard/webspaces/)
2. In the sidebar, open the entry under **Overview** named after your application (for example **WordPress**)
3. In the first section, choose at **Update WordPress automatically** (or Joomla, TYPO3, Drupal) how far the updates go
4. Below it, switch on whether plugins, themes, extensions or modules are updated too
5. At **Time window**, choose the hour in which updates run

## Time window

You can choose from twelve windows of one hour each: 00:00–01:00, 02:00–03:00 and so on up to 22:00–23:00. The time is in your time zone, which you set under **Settings → Appearance**, where every time zone is available. If someone in your team chose the window in another time zone, the dashboard shows it; when you choose again, yours applies.

Without a choice of your own, updates run from 02:00 to 03:00 in the owner's time zone. Daylight saving time moves nothing: 02:00 stays 02:00 local time. On the night the clocks go forward and 02:00 does not exist, they run an hour later.

On every new installation the core updates are on from the start, plugins, themes, extensions and modules off.

## What is updated

### The core

| CMS | Choices | Example |
| --- | --- | --- |
| WordPress | Only security updates · All updates · No updates | 7.1.4 to 7.1.5 · also 7.1 to 7.2 |
| Joomla | All updates within the major version · No updates | 6.2.0 to 6.2.2 and 6.2 to 6.3, never 7 |
| Drupal | Only security updates · All updates within the major version · No updates | 11.4.13 to 11.4.14 · also 11.4 to 11.5, never 12 |
| TYPO3 | Only security updates · No updates | 13.4.40 to 13.4.41, never 14 |

We never move Joomla, Drupal or TYPO3 to the next major version automatically: extensions and your own code have to follow, so that remains your decision. In WordPress, a step like 7.1 to 7.2 is a regular release that existing plugins usually keep supporting.

Joomla only ever offers its newest release, so there is no bugfix-only choice for it.

For TYPO3 and Drupal we stay within the versions your website's `composer.json` allows. The database updates (`drush updatedb` or `extension:setup`) run afterwards. There an update also runs when security advisories are known for packages of your website.

**No updates means off:** for WordPress we then switch WordPress' own updates off too. You install new versions yourself, for example with **Update now**.

### Plugins, themes, extensions and modules

- **WordPress:** one switch each for **plugins** and **themes**
- **TYPO3:** one switch for **extensions**
- **Drupal:** one switch for **modules and themes**
- **Joomla:** Joomla cannot update extensions from the command line, so there is no switch here.

For TYPO3 and Drupal, Composer then updates every package of your website, within the versions your `composer.json` allows. The switches work also when the core is set to **No updates**.

They are off by default: a plugin update can break a website in ways our check of the home page does not see, such as a shop's checkout. If you switch them on, we include them in the copy and roll them back together with the core on an error.

### WordPress' own updates

WordPress installs maintenance releases by itself, but without a copy first. As soon as Sitequest updates the core, we switch WordPress' own updates of it off, so only one runs: the one with a copy. On **No updates** we switch them off as well. For plugins and themes whose switch is off, what you set per plugin and theme in WordPress stays. For this we add the file `wp-content/mu-plugins/sitequest-updates.php` and remove it when it is no longer needed.

## How an update runs

Every day, in the time window you chose, we check whether there is something new. If an update is due, this happens:

1. **Copy:** code and database are saved outside your webspace. This does not count towards your storage. Uploaded files such as `wp-content/uploads` or `images` stay where they are; an update does not change them.
2. **Update:** the new version is installed, then the database updates run and the cache is cleared.
3. **Check:** we load your home page and compare the response with the one from before.
4. **Rollback on errors:** if a step fails or the home page responds differently than before, we restore code and database from the copy. Your website then runs exactly as before the update.

An update usually takes about a minute. During a Drupal update to a new minor version your website shows the [maintenance page](/en/docs/webspace/maintenance-mode/) in that time. WordPress shows its own maintenance notice for a few seconds while it replaces its files. Otherwise your website stays reachable.

After every update you get a short notification. If an update was rolled back or skipped, we tell you why.

## Update now

When an update is ready, the **Version** row shows it, with the **Update now** button. It runs the update right away, even when automatic updates are off. It runs just like in the time window, with a copy and rollback. Plugins, themes, extensions and modules are included when their switch is on. With the core set to **No updates**, the button takes your CMS's smallest level.

A version that was rolled back is not tried again automatically. With **Update now** you can try it again yourself, for example after adjusting a plugin or module. The next new version comes automatically again.

## When an update does not start

- **Storage is almost full** (from 95 %): the update needs space for the new files. Free up space or upgrade your webspace.
- **TYPO3 and Drupal: `composer.json` and `composer.lock` do not match**, for example after someone edited `composer.json` by hand. Run `composer update --lock` once over [SSH](/en/docs/webspace/ssh-access/).
- **The installation differs from the standard**, for example a Drupal installation without Composer or a WordPress whose files are somewhere else. You update these sites yourself.

## Permissions

**Owners** and **Administrators** may set up automatic updates and use **Update now**.

## Next steps

- [Create and restore backups](/en/docs/webspace/backups/)
- [Maintenance mode](/en/docs/webspace/maintenance-mode/)
