osx - How to locate httpdocs folder on Mac? -


how find httpdocs folder on mac?

this kinda frustrating, know i have apache installed don't know folder, after need put files in there.

how know have apache installed? when type @ address bar "http://localhost" can see page "it works!".

as can see on picture don't have under library: enter image description here

my mac os x yosemite 10.10.13

how locate folder? define another folder that.

you may find out apache document root command:

$ httpd -s | grep documentroot main documentroot: "/library/webserver/documents" 

in case /library/webserver/documents folder.

you may change editing server's config file. on yosemite /private/etc/apache2/httpd.conf file:

$ httpd -v | grep server_config  -d server_config_file="/private/etc/apache2/httpd.conf" 

you need root password write file.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

c# - Retrieve google contact -

javascript - How to insert selected radio button value into table cell -