Apache: Create Site Directories

Create a directory for each site under the /var/www directory:

sudo mkdir -p /var/www/example.com
sudo chown -R $USER:$USER /var/www/example.com

The second command sets the current user as owner of the new site directory.

Leave a Reply

Your email address will not be published. Required fields are marked *