Apache не работает на моей машине на OS X 10.7.5


0

После выполнения tail -20 /var/log/apache2/error_log:

[Fri Sep 13 03:14:30 2013] [error] [client ::1] client denied by server configuration: /Library/WebServer/Documents/
[Fri Sep 13 03:17:00 2013] [error] [client ::1] client denied by server configuration: /Library/WebServer/Documents/
[Fri Sep 13 03:17:03 2013] [error] [client ::1] client denied by server configuration: /Library/WebServer/Documents/
[Fri Sep 13 03:17:32 2013] [error] [client ::1] client denied by server configuration: /Library/WebServer/Documents/hello.html
[Fri Sep 13 03:25:08 2013] [notice] caught SIGTERM, shutting down
Warning: DocumentRoot [/usr/docs/dummy-host.example.com] does not exist
Warning: DocumentRoot [/usr/docs/dummy-host2.example.com] does not exist
httpd: Could not reliably determine the server's fully qualified domain name, using Flipkart-MacBookPro-344.local for ServerName
[Fri Sep 13 03:25:08 2013] [notice] Digest: generating secret for digest authentication ...
[Fri Sep 13 03:25:08 2013] [notice] Digest: done
[Fri Sep 13 03:25:08 2013] [notice] Apache/2.2.22 (Unix) DAV/2 PHP/5.3.15 with Suhosin-Patch configured -- resuming normal operations
[Fri Sep 13 03:33:14 2013] [notice] caught SIGTERM, shutting down
Warning: DocumentRoot [/usr/docs/dummy-host.example.com] does not exist
Warning: DocumentRoot [/usr/docs/dummy-host2.example.com] does not exist
httpd : Could not reliably determine the server's fully qualified domain name, using Flipkart-MacBookPro-344.local for ServerName
[Fri Sep 13 03:33:14 2013] [notice] Digest: generating secret for digest authentication ...
[Fri Sep 13 03:33:14 2013] [notice] Digest: done
[Fri Sep 13 03:33:14 2013] [notice] Apache/2.2.22 (Unix) DAV/2 PHP/5.3.15 with Suhosin-Patch configured -- resuming normal operations
[Fri Sep 13 04:15:14 2013] [error] [client ::1] File does not exist: /Users/anushil.sharma/Sources/website/code/www/hello.html
[Fri Sep 13 04:24:00 2013] [notice] caught SIGTERM, shutting down

Что с этим не так?

Любая помощь будет высоко оценена.


Кажется, у apache нет необходимых прав доступа к каталогу Document.

Поэтому я должен сделать chown to www-data в корне документа.

да, вы должны изменить владельца на www-data, а также chmod на 755 в корневой каталог документа.

Как был установлен Apace?
Марк
Используя наш сайт, вы подтверждаете, что прочитали и поняли нашу Политику в отношении файлов cookie и Политику конфиденциальности.
Licensed under cc by-sa 3.0 with attribution required.