A
A
Askhat Bikmetov2014-01-29 21:07:12
Apache HTTP Server
Askhat Bikmetov, 2014-01-29 21:07:12

How to set up Apache in OS X Mavericks?

Solely out of sporting interest, I'm trying to raise Apache built into OS X. After entering sudo apachectl start, at the localhost address, of course, appeared

It works!
However, the default configuration is not entirely convenient, namely the location of the DocumnetRoot . I edited httpd.conf : DocumentRoot "/Users/askhat/Dropbox/Sites"and <Directory "/Users/askhat/Dropbox/Sites">, however now on localhost is the following:
Forbidden
You don't have permission to access / on this server.
What should I do to make this thing finally work, please tell me.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nikolai Vasilchuk, 2014-01-29
@askhat

Dropbox changes rights. You need to change the permissions on the directory so that Apache can access it. The problem has been chewed a hundred times and googled for "dropbox apache forbidden"

S
scipe, 2014-01-29
@scipe

You need the Sites folder to be accessible to the user under which you are raising Apache. Are you sure you are doing this as root?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question