These commands will do the following on a Turnkeylinux LAMP install
- Download and unzip wordpress into the current directory
- Create a database called wordpress
- Create a database user called WordpressDBUser and set their database password to myWorppresspassword
Install Wordpress on TurnkeyLinux LAMP via the commandline
wget http://wordpress.org/latest.tar.gz
tar xfz latest.tar.gz
mv wordpress/* ./
rmdir ./wordpress/
rm -f latest.tar.gz
mysql -u root -p
create database wordpress;
create user 'WordpressDBUser'@'localhost' identified by 'myWorppresspassword';
grant usage on *.* to WordpressDBUser@localhost identified by 'myWorppresspassword';
grant all privileges on wordpress.* to WordpressDBUser@localhost;
use wordpress;
exit
Install Wordpress CLI
wget https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
chmod +x wp-cli.phar
mv wp-cli.phar /usr/local/bin/wp
wp help