Installing WordPress via SSH Command Line

I have to say, I am impressed! A bit of background – my exposure to WordPress thus far has been fixing it when it is broken. The WordPress “white screen of death” is more scary than the Windows “blue screen of death” because you only have to breath too heavily to break it. So stick around while we kick this up a little.

Wordpress

I recently encountered an installation using W3 Total Cache Plugin – this installation of WordPress was so close to ‘rm -rf wp-*’ at the end.

I’ve never been an FTP person. I hate the logging in part, keeping multiple passwords, waiting for the client to load, having it crash, etc etc. Errgg, its just gets messy. Where possible I use SSH, good old fashioned command line (putty loads in seconds, login is keyed: too simple). Here’s an example of downloading WordPress.

$ wget http://wordpress.org/latest.zip
--00:12:25--  http://wordpress.org/latest.zip
=> `latest.zip'
Resolving wordpress.org... 72.233.56.138, 72.233.56.139
Connecting to wordpress.org|72.233.56.138|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
[                                         <=>                                  ] 2,357,045    115.62K/s
00:12:49 (106.43 KB/s) - `latest.zip' saved [2357045]
$ unzip -q latest.zip
$ ls | grep wordpress
> wordpress/

My people, we are talking seconds here! Seconds!

Downloading themes, plugins, and what not, have been just as simple:

$ cd wp-content/plugins/
$ wget http://downloads.wordpress.org/plugin/demo-mode.zip
--02:13:08--  http://downloads.wordpress.org/plugin/demo-mode.zip
=> `demo-mode.zip'
Resolving downloads.wordpress.org... 72.233.56.138, 72.233.56.139
Connecting to downloads.wordpress.org|72.233.56.138|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2,085 (2.0K) [application/octet-stream]
100%[====================>] 2,085         --.--K/s
02:13:12 (198.84 MB/s) - `demo-mode.zip' saved [2085/2085]
$ unzip -q demo-mode.zip

Click on Plugins in admin and click Activate! Hello! We’re done.

So let’s see how the WordPress sensation works out and how long we can go without a “white screen of death”.

Similar Posts:

VN:F [1.9.22_1171]
Rating: 4.5/5 (2 votes cast)
VN:F [1.9.22_1171]
Rating: +1 (from 1 vote)
Installing WordPress via SSH Command Line, 4.5 out of 5 based on 2 ratings
facebooktwittergoogle_plusredditpinterestlinkedintumblrmail
Tags: , , , , , , .

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>