kindling / experiences and experiments

Adding a new site to a DigitalOcean droplet

I added a new site to my DigitalOcean droplet today by following a four-year-old tutorial. There were a few bumps in the road.

I first encountered a problem at step four when creating a virtual host file. This was the instruction: sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/ but I didn’t have such a directory or file. I found out through my FTP client there’s a file called 000-default.conf though, so I guessed that was what I should’ve copied.

I followed the rest of the instructions until sudo a2ensite which threw up Error: does not exist. All I had to do was rename my config file to I also found out 000-default.conf is what newer versions of Ubuntu ships with.

Managing my hosting through the command line interface is intimidating. I want to learn basic BASH eventually, but sometimes I want to move back to shared hosting just so I can use a control panel.