Before we begin on how to install WordPress using SSH, let’s have an introduction about WordPress and SSH.
WordPress is a free and open-source content management system based on PHP and MySQL. Features include a plugin architecture and a template system. It is most associated with blogging, but supports other types of web content including more traditional mailing lists and forums, media galleries, and online stores.
There are a couple of ways to install WordPress to your server. In this tutorial, I will show you how to install WordPress using SSH.
SSH, also known as Secure Socket Shell, is a network protocol that provides administrators with a secure way to access a remote computer. SSH also refers to the suite of utilities that implement the protocol.
Before you proceed with this tutorial on how to install WordPress using SSH, make sure to setup your database name, username and password.
Here are the steps:
Login to your SSH terminal and navigate to your root directory of your website. In my case, it’s under the public_html folder.
Download the latest WordPress using the following command:
Extract the downloaded file using this command:
tar xfz latest.tar.gz
Move the contents of the WordPress files into the root directory of your website using this command:
mv wordpress/* ./
Delete the WordPress directory using this command:
Delete the downloaded file using this command:
rm -f latest.tar.gz
Make sure to navigate to your website and complete the WordPress configuration wizard.
You’re done! That’s how you install WordPress using SSH. You can install your desired plugins and themes.
The steps above can be done in one command:
wget http://wordpress.org/latest.tar.gz && tar xfz latest.tar.gz && mv wordpress/* ./ && rmdir ./wordpress/ && rm -f latest.tar.gz
Don’t forget to navigate to your website and complete the WordPress configuration wizard.
Let me know your thoughts about on “How to Install WordPress Using SSH” by commenting below.