I'm trying to install Magento on an Ubuntu 14.04 server. I created a file called magento-dev.local in the /etc/apache2/sites-available/ directory. that has the following contents:
<VirtualHost *:80>
# ServerName (domain) and admin email
ServerAdmin webmaster@magento-dev.local
ServerName magento-dev.local
# Folder of this site. This is required.
DocumentRoot /var/www/magento-dev.local/public
# Log file locations
LogLevel warn
ErrorLog /var/log/apache2/magento-dev.error.log
CustomLog /var/log/apache2/magento-dev.access.log combined
</VirtualHost>
I get the following error when I try and run this command:
$ sudo mkdir /var/www/magento-dev.local/public
mkdir: cannot create directory '/var/www/magento-dev.local/public': No such file or directory
How do I fix this problem?