Install WordPress via SSH

If you have a WordPress website that is damaged, infected, or just won’t update, you may need to reinstall WordPress to get things kickstarted. Sometimes a site may be so out of whack that you can update/replace from the WordPress dashboard. If that’s the case, use this handy script to pull the latest version from WordPress’ servers and write it over your current version.

wget http://wordpress.org/latest.tar.gz --no-check-certificate --no-check-certificate
tar zxf latest.tar.gz
cd wordpress
yes | cp -rpf * ../
cd ../
rm -rf wordpress/
rm -f latest.tar.gz

And of course the standard “You’ll shoot your eye out!” warning comes with this. Back things up before you try this. It may not necessarily turn out how you thought it would.

Leave a Comment


Powered by Paranoid Hosting™. 'Cause you never know...