Getting Started with WordPress

There are dozens of ways you can deploy WordPress. The following way describes only one way.

Hint

If you have any questions or feedback, don’t hesitate to contact us.

Create Environment

First you have to create a website on your server. Our website module provides everything you need to manage, deploy and run your website. Every Website is type and environment based, which means you have to select a particular type (e.g. wordpress) and environment (e.g. PROD).

  1. Log in to cockpit.opsone.ch

  2. Choose your server or create a new one

  3. Go to websites, and create a new one

  4. Select website type wordpress and fill in all settings

Hint

You don’t need to remember your DB credentials. We always provide them as environment variables.

According to those settings, our automation will setup the server/vhost as required.

Access with SSH

On the server you can work with SSH. Due to security reasons, we allow key based logins only.

  1. If you don’t have an SSH key: Create an SSH key pair

  2. Add your SSH Public Key in the Cockpit: Either for the whole server or within the website.

  3. Now you can log in via SSH. Username is your chosen website name, not your own Username.

Hint

Wondering why your existing SSH key is not working? Maybe it does not meet our minimum requirements.

Install WordPress

You can download and unzip WordPress normally. However, we recommend using WP-CLI (already pre-installed). This allows you to install WordPress with just four commands.

# switch to your webroot
$ cd ~/www

# download wordpress
$ wp core download

# generate your config
$ wp config create --dbname=$DB_NAME --dbuser=$DB_USERNAME --dbpass=$DB_PASSWORD

# create your first user
$ wp core install --url=example.com --title="Example Site" --admin_user=admin --admin_email=john@example.com

You are now ready to use your installation of WordPress.

Hint

Do you encounter some inexplicable errors like 403, maybe you just got acquainted with our web application firewall.

Still got some questions?

Read our FAQ section for further information.