Getting Started with WordPress¶
There are dozens of ways you can deploy WordPress. The following way describes only one way.
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 based, which means you have to select a particular type.
Log in to cockpit.opsone.ch
Choose your server or create a new one
Go to websites, and create a new one
Select website type wordpress and fill in all settings
Tip
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.
If you don’t have an SSH key: Create an SSH key pair
Add your SSH Public Key in the Cockpit: Either for the whole server or within the website.
Now you can log in via SSH. Username is your chosen website name.
Tip
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.