Skip to content

Instantly share code, notes, and snippets.

@sebadima
Last active June 19, 2019 09:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sebadima/81dacbb189ba8ca56acad07b4a14eafb to your computer and use it in GitHub Desktop.
Save sebadima/81dacbb189ba8ca56acad07b4a14eafb to your computer and use it in GitHub Desktop.
cd /tmp
curl -O https://wordpress.org/latest.tar.gz
tar xzvf latest.tar.gz
touch /tmp/wordpress/.htaccess
cp /tmp/wordpress/wp-config-sample.php /tmp/wordpress/wp-config.php
cp -a /tmp/wordpress/. /var/www/html/wordpress
chown -R www-data:www-data /var/www/html/wordpress
find /var/www/html/wordpress/ -type d -exec chmod 750 {} \;
find /var/www/html/wordpress/ -type f -exec chmod 640 {} \;
vi /var/www/html/wordpress/wp-config.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment