/var/www Directory not found
Asked Answered
C

3

8

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.

Charmion answered 28/8, 2014 at 6:33 Comment(1)
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
A
5

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.

Applicatory answered 28/8, 2014 at 6:35 Comment(1)
I see this even after install apache2Antitrust
A
4

/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
Arris answered 28/8, 2014 at 6:50 Comment(0)
D
0

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

Doriandoric answered 10/10 at 1:15 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.