Last active
June 19, 2019 09:08
-
-
Save sebadima/81dacbb189ba8ca56acad07b4a14eafb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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