- ssh root@domain.com
- cd /var/www/vhosts/domain.com/httpdocs/
- wget http://wordpress.org/latest.zip
- unzip latest.zip
- cp -rf ./wordpress/* ./
- mysql -uusername -ppassword
- create database dbname
- grant usage on *.* to username@localhost identified by ‘password’
- grant all privileges on dbname.* to username@localhost
- mv wp-config-sample.php wp-config.php
- vi ./wp-config.php
Related posts: