Learn how to install and run WordPress on a IONOS Linux Cloud Server. WordPress is one of the world’s most popular CMS software packages, which is often used as a blogging platform and for website design.
There are two options for installing WordPress:
- On a new server: WordPress is available as a ready-to-use application which can be automatically installed on the server when it is built.
- On an existing server: WordPress can be manually installed and configured on an existing server.
To install on an existing server:
- A IONOS Linux Cloud Server with Apache and MySQL/MariaDB installed and running
Note: Apache and MySQL/MariaDB are installed and running on a standard Linux installation by default. If your server was created with a minimal installation, you will need to install and configure Apache and MySQL/MariaDB before you proceed.
Install WordPress on a New Server
Log in to the Cloud Panel then go to Infrastructure > Servers.
Click + Create to create a new server.
Set a name for the server, and click the server configuration you wish to use.
In the Images section, select the operating system and distribution you wish to use.
Click the Applications tab.
Click the Search icon, and search for WordPress.
Click Create to build the server.
After the server has been built, go to Infrastructure > Servers and select the new server.
Scroll down to the server information section, then click the WordPress Admin Area URL to log in to the WordPress Admin Area.
Log in with the username
user and the password which was created when the server was built.
The WordPress installation is complete.
Install WordPress on an Existing Server
Set up the Database
Connect to the server with SSh then log in to MySQL/MariaDB:
mysql –u root –p
Create a database for the WordPress installation
CREATE DATABASE [database name];
For example, to create a database named
my_blog the command is:
CREATE DATABASE my_blog;
The following command will create a user and grant it access to the database:
GRANT ALL ON [database name].* TO [user name]@localhost IDENTIFIED BY '[password]';
For example, to create a database user
my_blog_user for the
my_blog database with password
oGgteSOR8j the command is:
GRANT ALL ON my_blog.* TO my_blog_user@localhost IDENTIFIED BY 'oGgteSOR8j';
Download and Uncompress the WordPress Files
Move to your home directory:
Download the latest version of WordPress:
curl -O https://wordpress.org/latest.tar.gz
Uncompress the file:
tar -xvf latest.tar.gz
Move the contents of the
wordpress directory to the folder where you want to install WordPress. For example, to install WordPress in the main site's root directory, use the command:
sudo mv wordpress/* /var/www/html/
Edit the WordPress Configuration File
wp-config-sample.php file for editing:
sudo nano /var/www/html/wp-config-sample.php
Change the following values:
- Change database_name_here to the name of the database you created.
- Change username_here to the username you created.
- Change password_here to the password you created.
- Leave DB_HOST as
Save and exit the file. Then rename the file
wp-config.php with the command:
sudo mv /var/www/html/wp-config-sample.php /var/www/html/wp-config.php
Complete the Installation
Visit the URL of your WordPress installation in a browser. You will see the WordPress wizard.
- Site Title: Fill out the title of your website.
- Username: This will be the main administrative username for your site. Note: for security reasons, we recommend that you do NOT use "Admin" or your website's name or URL for this username.
- Password: Make a note of this password before you continue.
- Your Email: This will be the email address for the main administrative username.
Click Install WordPress to complete the installation.