Getting Started with WordPress¶
There are dozens of ways you can deploy WordPress. The following way describes only one way.
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).
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
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, not your own Username.
Wondering why your existing SSH key is not working? Maybe it does not meet our minimum requirements.
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 --email@example.com
You are now ready to use your installation of WordPress.