Install WordPress via SSH
- SSH into your server, then navigate to your domain’s web root:
cd /var/www/vhosts/example.com/httpdocs
- Grab the latest WP install
wget http://wordpress.org/latest.tar.gz
- Get the files out of the archive:
tar xfz latest.tar.gz
- Navigate to the
wordpress
subfolder:
cd wordpress
- Copy everything back up to the web root:
cp -rpf * ../
- Navigate back up to web root:
cd ..
- Remove the
wordpress
subfolder:
rm -rf wordpress
- Remove the downloaded archive file:
rm -f latest.tar.gz
Source : http://code.garyjones.co.uk/install-wordpress-ssh
No comments:
Post a Comment