See the previous post about install and configure apache2 with multiplue hosts

Download and unzip wordpress:

cd /srv/www/brianwilliams.pro
sudo wget http://wordpress.org/latest.tar.gz
sudo tar -zxvf latest.tar.gz
sudo mv wordpress/* .
sudo rm -r wordpress
sudo chown -R www-data /srv/www/brianwilliams.pro

cd /srv/www/allaboutyoushelby.com
sudo wget http://wordpress.org/latest.tar.gz
sudo tar -zxvf latest.tar.gz
sudo mv wordpress/* .
sudo rm -r wordpress
sudo chown -R www-data /srv/www/allaboutyoushelby.com

Configure mysql:

mysql -u root -p
create database brianwilliamspro;
create database allaboutyoushelbycom;
create user wordpressuser;
set password for wordpressuser = password(“wppassword”);
grant all privileges on brianwilliamspro.* to wordpressuser@localhost identified by ‘wppassword’;
grant all privileges on allaboutyoushelbycom.* to wordpressuser@localhost identified by ‘wppassword’;
flush privileges;
exit

Leave a Reply