Jul 11 2008 at 9:11am
Quick Wordpress plugin installation with ssh and wget
Have you ever wanted an easier way to install Wordpress themes and pugins? If you have ssh access to your website you can install them directly on the sever with a few simple commands. No more downloading to your computer, extracting the zip file, and uploading again. This also works really well with Drupal Modules or any other script you need to download from another site.
(Unfortunately, most shared hosting accounts don’t have ssh access, but hopefully this will be useful for anyone on virtual hosts or dedicated servers who don’t already know how to do this!)
- SSH into your website. Don’t know how? Try this:
- open a terminal
- type ssh username@yourwebsite.com
- agree to any host authenticity messages
- enter your password at the prompt
- Navigate to your wp-content directory. Depending on your hosting setup the command will look something like this:
cd httpdocs/wp-content/plugins/orcd httpdocs/wp-content/themes/ - Get the URL for the plugin or theme you want to download. The full url to the zip file. (This makes it really annoying when plugin developers hide the full url!)
- Type in
wget http://linkto.com/theplugin.zip - Wait for the plugin to download onto your server
- Unzip the file by entering
unzip theplugin.zip. If you have a .tar.gz file usetar xfc theplugin.tar.gz.
Done! Now you can go into your wordpress admin panel and activate the plugin or theme.



Immeëmosol August 12th, 2008 at 10:01 pm
Maybe you can add the command to cleanup as well.
Just to be more complete and tidy.
rm theplugin.zip
OR
rm theplugin.tar.gz
on Ubuntu it looks like the tar-command should be different;
tar -xvzf theplugin.tar.gz
-x extraxt
-v be verbose
-z pass through gzip
-f The name of the archive