Create Database
mysql -u root -p
CREATE DATABASE cdn;
CREATE USER 'cdnadmin'@'localhost' IDENTIFIED BY 'cdn@dm1n';
GRANT ALL ON cdn.* TO 'cdnadmin'@'localhost' IDENTIFIED BY 'cdn@dm1n' WITH GRANT OPTION;
FLUSH PRIVILEGES;
EXIT;
Wordpress installation
cd /tmp && rm latest.tar.gz
wget https://wordpress.org/latest.tar.gz && tar -zxvf latest.tar.gz
mv wordpress /var/www/cdn.enablr.co
chown -R www-data:www-data /var/www/cdn.enablr.co
chmod -R 755 /var/www/cdn.enablr.co
Setup virtualhost
cp /etc/apache2/sites-available/cdn.enablr.co.conf
a2ensite cdn.enablr.co.conf
a2enmod rewrite
systemctl restart apache2.service
Configure Word Press
mv /var/www/cdn.enablr.co/wp-config-sample.php /var/www/cdn.enablr.co/wp-config.php
vi /var/www/cdn,enablr.co/wp-config.php
Edit the following
1. Change the database prefix to "cdn"