Using SSH to install your WordPress site

This is something that I found myself doing more and more recently is using SSH to perform tasks I previously found tedious.
Let’s assume you would like your wordpress installation in the public_html folder

cd public_html
wget --no-check-certificate https://wordpress.org/latest.tar.gz
tar xfz latest.tar.gz
mv wordpress/* ./
rmdir ./wordpress/
rm -f latest.tar.gz

a breakdown of each command line:

cd public_html

enter the public_html directory. Skip if you are already in the directory you’d like to install WordPress to.

wget --no-check-certificate https://wordpress.org/latest.tar.gz

Downloads the the latest tar.gz file. We use the –no-check-certificate because –secure-protocol doesn’t work with a wildcard domain.

tar xfz latest.tar.gz

untar & uncompress into the wordpress folder

mv wordpress/* ./

Moves everything from the wordpress folder to the current directory

rmdir ./wordpress/

Removes the empty /wordpress folder

rm -f latest.tar.g

Removes the downloaded file

That’s it! Now just visit your site using a browser and start your config process. Happy coding!

Leave a Reply

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