Nothing found inside var folder using SSH

I have logged in as root using SSH. But when I try to access www folder inside var, gettting error = “cd: www: No such file or directory”


@JoelJames - Looks like one-click LAMP was deselected when you created your server. Did you just create this server?

@gndo Thanks. I will check that.

I get following result

dpkg-query: no path found matching pattern /var/www

Run the following to check correct package installation by your LAMP distribution:

# The following should print something like "apache2: /var/www"
dpkg -S /var/www

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hey there,

As @gndo mentioned, it looks like the standard Ubuntu distro was chosen. It looks like you have everything good to go now :)

Happy coding,

Jon Schwenn Platform Support Specialist DigitalOcean