How to Install CraftCMS on Ubuntu 18.04 | DigitalOcean | Step by Step Video Guide

Step 1: Create a Droplet with Ubuntu WordPress (watch video if you are wondering why i choose WordPress droplet over LAMP)

Step 2: Download CraftCMS latest version in /var/www/ and unzip it

wget -P /var/www/ "https://craftcms.com/latest-v3.zip"
apt-get update
apt-get install unzip
sudo unzip /var/www/latest-v3.zip -d /var/www

Step 3: Set security key blahblsdasomerandomstringeogihoeihfioh3249863982 in .env file (make sure it dosen’t contain any special characters – very important)

pico /var/www/.env

Step 4: Edit Virtual Host file to change DocumentRoot from /var/www/html to /var/www/web

pico -w /etc/apache2/sites-enabled/000-default.conf
service apache2 restart

Step 5: Install required PHP extensions

apt-get update
apt-get upgrade
sudo apt-get install php-mbstring
sudo apt-get install php-imagick
sudo apt-get install php-curl
sudo apt-get install php-xml
sudo apt-get install php-zip

Step 6: Update Permissions

sudo chown -R www-data:www-data /var/www
service apache2 restart

Step 7: Copy database credentials from /root/.digitalocean_password file

db: wordpress
un: wordpress
pw: get it from /root/.digitalocean_password

Step 8: Install SSL (optional)

sudo certbot --apache -d mydomain.com

Step 9: Run the setup wizard and follow the instructions

http://mydomain.com/admin

Like me to install it for you?

If you want me to install it for you, then contact me via form below or contact me directly using:

Skype: waqar.ul.hassan94

PK Phone: +92 345 7296120