Install WordPress Quickly Using SSH

You are currently viewing Install WordPress Quickly Using SSH
  • Post author:
  • Post category:how-to

Installing WordPress via FTP can take up quite a long time, as you´ll have to upload hundreds of files to the server. Installing via the console is much faster, but you really need to know what you´re doing. Still, confused why you should install WordPress SSH than any other method? Let me help you with that!



Well, the process to Install WordPress Quickly Using SSH is faster and much convenient than any regular WordPress download and install plugin. Besides the control I have as an admin WordPress from SSH through one-click that most hosting providers offer is incomparable. Finally, as SSH access WordPress, you won’t face the complication of uploading anything over the control panel. You can perform this action by a single command interface.

Now, let’s get down to the procedure!

Personally, I´m using a hybrid install process to install WordPress SSH. This is accompanied by using the control panel and command prompt. I found this to be the easiest way to get up admin WordPress from ssh and running it quickly.

Below are the steps I take when I need to Install WordPress Quickly Using SSH from scratch. I´m using a Debian Squeeze based VPS with the DirectAdmin control panel. FTP is completely disabled on this machine. But remember that you don’t need to know wordpress plugins how to install procedures in this setup. Although, you might require some WordPress download and install plugins at the end of the process to auto-update your site.


how to manually

1) Create a database

I start with creating the database and user in my DirectAdmin control panel. Other control panels like Cpanel or phpMyAdmin can also be helpful to Install WordPress Quickly Using SSH.

2) Download WordPress


Using the shell to download and install WordPress is a real timesaver. As I´m on a Windows machine I use Putty to login to my server over the admin WordPress from SSH.

Browse to the directory where you want to install WordPress and execute the following commands:

  1. Download and unpack the latest WordPress package:
    wget && tar xfz latest.tar.gz
  2. Move the contents of the WordPress folder one level up:
    mv wordpress/* ./
  3. Delete the empty WordPress directory and the compressed package:
    rmdir ./wordpress/ && rm -f latest.tar.gz

3) Edit wp-config.php

You could do this using a console editor like Nano or Vi but as it involves quite a few steps I prefer to do it on the desktop. Download wp-config-sample.php from the server, rename it to wp-config.php and open it in your favorite text editor and:

  1. Add your database name, user and password
  2. Add the authentication keys and salts
  3. Change the WordPress database table prefix (optional)

I also disable WordPress post revisions and set the autosave interval to a really high number by adding these two constants just above the line /* That’s all, stop editing! Happy blogging. */:

  1. define('AUTOSAVE_INTERVAL', 35000);
  2. define( 'WP_POST_REVISIONS', false );

When done, upload the wp-config.php file to the server. WordPress allows you to save the file one level above your WordPress install. This is usually one level above the public_html directory (unless you´re installing WordPress in a subdirectory of your site).

4) Change the owner/group as you download and install wordpress

One of the major drawbacks of installing WordPress via SSH is that all files are now owned by the user who uploaded the files. This means you won´t be able to use WordPress auto update features.

To get auto update to work we need to change the owner or group to the user Apache runs under. How to do this depends on your OS and server configuration. I use the below command as root:

chgrp -R apache public_html

but Apache might use a different name on your server (www-data or nobody are common names).

5) Run the SSH access WordPress installation script

Install WordPress by running the script at

6) Enable WordPress SSH updates as you install WordPress SSH


As I install WordPress over SSH, I need to make sure that the updates are enabled. To allow WordPress auto-updates over SSH/SFTP I need to install one additional plugin: the brilliant SSH SFTP Updater Support 

Like me, you can find this WordPress download and install plugin with ease. Instead of spending heaps of time over the internet to find wordpress plugins how to install.

Using the same shell commands as above, this will only take a minute. Browse to the plugins folder and execute the following commands (update the plugin version number if a newer versions is available):

  1. wget
  2. unzip
  3. rm -f
  4. chgrp -R apache plugins (note: execute this command as the root user!)

Also, note that the unzip command requieres the package with the same name in Debian Squeeze.

That´s all to install WordPress SSH!


So, this was my short tutorial blog post on how to Install WordPress quickly using SSH. As your SSH access WordPress, make sure to go through SSL certificate installation, as this will make your site prominent and secure and help it receive proper SEO rankings on Google.

You can archive this by following our other posts like Set Up SSL (HTTPS) on WordPress Multisite.Also, if you find this article useful, make sure to check our other blog posts on How To Move a 3GB WordPress Site To Digital Ocean (In Less Then 15 Minutes), Easily add a domain alias to Google Apps (without the sent via) or Install WordPress Quickly Using SSH. In the end, if you have any queries or questions and still confused, make sure to reach out through comments. I will try to answer each of them.

Frequently Asked Questions

Q1, How to login as admin WordPress from SSH?

First of all,  configure SSH access to your account by using the specific SSH key. Then, log in to your hosting container, through unlocked STP, with the aid of your IP address and SFTP username. You can find the detailed guide on applying for admin WordPress from ssh by clicking here.

Q2, How to install WordPress plugins manually?

After installing the specific plugin in zip formate, go through your WordPress dashboard and click on “Plugins,” then “Add new.” After that, choose the desired Plugin file from your computer and select “Upload.” I hope you won’t be wasting time on searching for WordPress plugins how to install over the internet.