Skip to content

Instantly share code, notes, and snippets.

@lvnilesh
Forked from yumyo/install WP with Terminal
Last active December 22, 2015 14:39
Show Gist options
  • Save lvnilesh/6487467 to your computer and use it in GitHub Desktop.
Save lvnilesh/6487467 to your computer and use it in GitHub Desktop.
wget http://wordpress.org/latest.tar.gz
tar xfz latest.tar.gz
mv wordpress /var/www
rm -f latest.tar.gz
cd /var/www
mv wordpress cloudmaster.thencta.com
DB PART
mysql -u root -p
mysql> create database wordpressdb;
mysql> create user 'wordpressuser'@'localhost' identified by 'password';
mysql> grant usage on *.* to wordpressuser@localhost identified by 'password';
mysql> grant all privileges on wordpressdb.* to wordpressuser@localhost;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment