Question

/var/www/ does not exist despite placeholder website and apache2 working normally

Newbie question, thanks for your patience. I’m in a mac environment

Neither can I find the directory /etc/apache2/sites-available

I set up droplet web hosting with LAMP, followed one of the tutorials I found on the Digital Ocean forum. The status of the placeholder website hasn’t changed since I set it up successfully, but I can’t find the path now that I wanna change the html file.

I did a basic “index.html” search on all the files, but didn’t manage to find the one that’s hosted.

Would it be at a different place? What am I missing?


Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hello, @Boopoopo

I believe the location of the Apache files will be different depending from the install method you’ve used. You might have install it from source or using any package manager brew

You can also share the exact steps/commands you’ve used to install Apache on your machine.

Could you please let me know what is the output of the following commands:

sudo apachectl start
httpd -v

Let me know how it goes.

Regards, Alex

If you can find the httpd.conf file you can search it for the DocumentRoot setting and it will tell you where your default files are located. On Mac I believe it is in /etc/apache2/httpd.conf. If I remember correctly the default web directory on Mac is actually /Library/WebServer/Documents.