Install WordPress Core via SSH

This is a messy but known way to install WordPress core if its ever necessary via SSH where the WP CLI is not available. Simply replace 'projectFolder' with the correct folder and have at it!


cd ~ 
&&  wget https://wordpress.org/latest.tar.gz 
&&  mkdir /var/www/c/projectFolder 
&& tar -C /var/www/c/projectFolder -xvf latest.tar.gz 
&&  mv /var/www/c/projectFolder/wordpress/* . 
&& chown -R /var/www/c/projectFolder madg:madg 
&& find /var/www/c/projectFolder -type d -exec chmod 0755 {} ; 
&&  find /var/www/c/projectFolder -type f -exec chmod 0644 {} ; 
&&  rm ~/latest.tar.gz