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?
Thank you for the response!
– user21839 Sep 29 '14 at 19:08sudo mkdir -p /var/www/magento-dev.local/public– g_p Sep 29 '14 at 19:08-pcreate parent directory if it doesn't exits – g_p Sep 29 '14 at 19:09Yes I created a file called magento-dev.local in the /etc/apache2/sites-available/ directory
– user21839 Sep 29 '14 at 19:10/var/www/magento-dev.local/publicdirectory. see @muru answer. – g_p Sep 29 '14 at 19:15