I do not have a /var/www directory in my ubuntu. Isn't it a default directory which comes with os installation.
I am sorry if the question is silly or has already been asked. I ended up asking here after not getting any solution elsewhere.
I do not have a /var/www directory in my ubuntu. Isn't it a default directory which comes with os installation.
I am sorry if the question is silly or has already been asked. I ended up asking here after not getting any solution elsewhere.
Shravya,
www directory is the web root for applications, you need to **install apache**
on your ubuntu in order to get the www directory.
it in not there by default.
apache2
–
Antitrust /var/www
is Apache's default root and not Linux / Ubuntu's.
Other Webservers might use different directories aswell, e.g. NGINX uses /usr/share/nginx/html
by default.
If you want to create that directory, simply run:
mkdir /var/www
Encounters:
Basically I just had the same problem, I installed and reinstalled Ubuntu, did the same with apache but I was still getting the same error of no directories.
Solution:
Install Ubuntu GUI
What I found out was you won't be able to see most of the directories unless you make them using sudo mkdir
. Otherwise you can only have access to them when you install the ubuntu GUI
© 2022 - 2024 — McMap. All rights reserved.
mkdir /var/wwww
and you'll have one. There must be something else you're really asking, something like 'how do I configure the root of my nginx` or similar. – Catheterize