By Boopoopo
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?
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!
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.
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.