Spectivis Cloud
WordPress
WordPress on Spectivis Cloud
How Cloud runs WordPress, what is kept across deploys and how the WordPress page works.
Cloud runs classic WordPress: you install plugins and themes from wp-admin as you would on any host. Each deploy brings WordPress core, and your wp-content folder is kept.
Uploaded WordPress
Section titled “Uploaded WordPress”A WordPress app made from uploaded files is a live site. Upload your whole site, core included, and it runs from those files as it would on a classic host:
- Every file is writable. WordPress can update core, plugins and themes itself, and the installer can write
wp-config.php. - If the upload has no
wp-config.php, Cloud writes one for the app’s database when the site first starts. After that the file is yours and Cloud never replaces it. If your upload brings its ownwp-config.php, set its database name, user, password and host to the values on the Database page. - If the upload has no WordPress core, Cloud adds the current release next to your files.
- The rest of this page describes WordPress built from a repository, where core is read-only and only
wp-contentis kept. The WordPress page and the PHP version work the same for both.
Defaults
Section titled “Defaults”| Setting | Default |
|---|---|
| Source | A GitHub repository, a public repository or uploaded files. If your code has no WordPress core, the build adds the current release. A repository with only wp-content in it works. |
| Web server | FrankenPHP. The document root is the top folder. |
| PHP version | Automatic, or the one you pick in Settings. See PHP version. |
| Persistent folder | wp-content. It survives deploys. |
| Database | A MySQL 8.4 database, always. WordPress cannot run without one. |
| Health path | /spx-health. Cloud answers it without the database, so a site passes before you finish the install. |
| Release command | None. |
| Size | 1 GB. Pick more for WooCommerce or page builders. |
After the first deploy, open the app’s address and finish the WordPress install. After that, Open admin on the Overview and on the WordPress page signs you in to wp-admin in one click. See Open the admin in one click.
What is kept and what is not
Section titled “What is kept and what is not”Core files (wp-admin, wp-includes and the files in the top folder) come from the build and are read-only. Everything in wp-content is kept: plugins, themes, uploads, and anything a plugin writes there.
- A deploy does not roll back plugins or themes. What you installed or updated from wp-admin stays as it is when you deploy or roll back. A rollback changes only the core and code that came with that build.
- Backups. The database has nightly backups you can download and restore yourself.
wp-contentis in the nightly off-site copy of the whole server, which you cannot restore yourself. See Backups. Keep your own copy of anything you cannot afford to lose. - PHP files. PHP runs from plugins and themes in
wp-content, but not fromwp-content/uploads.
Updating WordPress
Section titled “Updating WordPress”Core cannot update itself, because its files are read-only. To get a new WordPress release, deploy again: the build adds the current release when your code has no core. If your code includes core, update it there and deploy.
Plugins and themes update from wp-admin as usual.
wp-config.php
Section titled “wp-config.php”Cloud writes wp-config.php when the app starts, from the environment’s variables. Do not add your own.
| Variable | Value |
|---|---|
DB_HOST, DB_PORT, DB_DATABASE, DB_USERNAME, DB_PASSWORD |
The environment’s database. |
WP_AUTH_KEY, WP_SECURE_AUTH_KEY, WP_LOGGED_IN_KEY, WP_NONCE_KEY |
Made when the environment is created: 64 random characters each, saved as secrets. |
WP_AUTH_SALT, WP_SECURE_AUTH_SALT, WP_LOGGED_IN_SALT, WP_NONCE_SALT |
The same. |
WP_HOME, WP_SITEURL |
The environment’s address, or its custom domain once that is live. |
The keys and salts are ordinary secret variables. You can change them in Settings, Variables, and the next deploy uses the new values. Changing them signs everyone out. To move a site from another host and keep its logins, paste its keys and salts in on the New app form.
WP_HOME and WP_SITEURL mean a site moved from another host answers on its Cloud address straight away, instead of sending visitors and wp-admin back to the address saved in its database. When a custom domain goes live, the Domains page asks you to redeploy, and the site moves to the domain. To pin another address, add a variable with the same name. Links inside your posts still hold the old address. Change them with Change the site’s address in the database on the WordPress page, or run wp search-replace 'https://old.example.com' 'https://www.example.com' in the Terminal.
Other constants, such as WP_MEMORY_LIMIT, go in a wp-config-extra.php file in the top folder of your code, which wp-config.php loads. See Variables.
The WordPress page
Section titled “The WordPress page”A WordPress app has a WordPress page in the sidebar, under Database. It shows what the site runs and makes the everyday wp-admin changes, so you can look after many sites from one place. It works on the running site through WP-CLI, the same way as the Commands tab, and anyone who can run commands can use it.
- Site. WordPress and PHP versions, the site’s address, the active theme, the database prefix, whether debug is on, and whether search engines may index the site. When a WordPress release is out, the page says so. Deploy again to get it, because core is read-only.
- Plugins. Each plugin’s status, version and any update. Activate, deactivate, update, delete (an inactive plugin only), update all, or install one from wordpress.org by its slug.
- Themes. Activate, update, or delete one that is not in use.
- Users. Login, name, email, role and when they joined. Change a role, email a password reset link, set a new password, add a user, or delete one and give their posts to someone else. The page never removes or demotes the only administrator. It lists the first 200 users. Manage the others in wp-admin.
- Maintenance. Clear the object cache, rebuild permalinks, and change the site’s address in the database. The address change counts the matches first and changes nothing until you confirm. It skips the
guidcolumn, as WordPress recommends.
Opening the page reads the site, which wakes it if it sleeps. One change runs at a time, and each says when it is done, with WP-CLI’s own message when it fails. Every change goes in the activity log with who made it.
A new password, for a new user or an existing one, is made on the server and shown to you once. Copy it then: Cloud does not keep it. A password reset email needs a mail plugin, because the server sends no mail of its own. See Sending mail.
Maintenance mode is not offered, because WordPress turns it on with a file next to core, which is read-only. Use a maintenance plugin instead. A plain PHP app with WordPress in it has no WP-CLI, so the page asks you to create it as a WordPress app.
WP-CLI
Section titled “WP-CLI”Run any other wp command in the Terminal tab, for example wp plugin list or wp search-replace.
PHP version
Section titled “PHP version”Pick a PHP version for each environment in Settings, Build and deploy. Automatic reads it from composer.lock and otherwise uses the platform default. 8.2 and newer run on FrankenPHP. 7.4, 8.0 and 8.1 run on PHP-FPM and are labelled “past end of life”: they no longer get security fixes, and are there for old sites that need them. A new version applies on the next deploy.
Things to know
Section titled “Things to know”- Sleep. WordPress runs its scheduled tasks (WP-Cron) on page views, so they pause while the site sleeps. Turn off “Sleep when idle” if they must run on time. See Sleep and wake.
- Mail. Port 25 is blocked, and WordPress’s own mail fails with a line in the logs that says so. Use an SMTP plugin with a mail service. See Sending mail.
- Uploads. One request can carry up to 100 MB. See Cloudflare limits.
- A home page that fails. If the home page answers with a server error after a deploy, for example because of a broken plugin or theme in your code, the new version does not go live and the previous one keeps serving.