Categories
Server

Install WordPress

I want to show you how easy it is to instlal WordPress on your own Server.

Download and extract WordPress

  • Use VS Code to connect to your Server via SSH

  • Navigate to your Web Folder where you want to install the WordPress ( The Worpress Archive include a wordpress Folder already )

  • Download WordPress: wget https://wordpress.org/latest.tar.gz
  • Unzip the Archive: tar -xzvf latest.tar.gz

Create a Database for WordPress

  • Open MySQL: mysql
  • Create a Database for WordPress: CREATE DATABASE aulus_wordpress;
  • Create a User ( Optional if already exist ): CREATE USER 'aulus'@'localhost' IDENTIFIED BY '<New Password>';
  • Grant Privileges to the new Database: GRANT ALL PRIVILEGES ON aulus_wordpress.* TO 'aulus'@'localhost' WITH GRANT OPTION;
  • Refresh Privileges: FLUSH PRIVILEGES;

Configure wp-config.php

  • Rename wordpress/wp-config-sample.php to wordpress/wp-config.php
  • Open wordpress/wp-config.php
  • Set DB_NAME, DB_USER, DB_PASSWORD
  • Get Salts from following URL: https://api.wordpress.org/secret-key/1.1/salt

  • Copy them from the Browser Window to the wp-config.php File by just replacing the whole Section

Connect your Domain with the wordpress Folder

  • Login to Plesk
  • Open Websites & Domains
  • On your desired Domain click Hosting Settings

  • Point the Root Folder to the new wordpress Folder and click OK

Start WordPress Setup Process

  • Open your URL which points to the new wordpress Folder
  • Set Site Title, Username, Password, Email
  • Click Install WordPress
  • Click Login or open the new WordPress Site via your Domain