[ Поиск ] - [ Пользователи ] - [ Календарь ]
Полная Версия: Не работает сайт
ahristovsky
Здравствуйте. Сегодня я установил Apache и настроил его. Но, видимо не правильно т.к. сайт в браузере не отображается. Вот мои действия:
1. Установил Apache.
2. Открыл файл httpd и указал адрес к папке с сайтами.
3. Убрал # перед Include conf/extra/httpd-vhosts.conf.
4. Создал сайт в vhosts:
<VirtualHost *:80>
ServerAdmin ahristovsky@mail.ru
DocumentRoot "d:/sites/ahristovsky/www"
ServerName ahristovsky
ServerAlias ahristovsky
ErrorLog "d:/sites/ahristovsky/logs/error.log"
CustomLog "d:/sites/ahristovsky/logs/access.log" common
</VirtualHost>

5. Добавил сайт в hosts:
127.0.0.1               ahristovsky

6. Перезапустил Apache.
Вывод: user posted image
RimusWolker
логи апача в студию
ahristovsky
error:
[Sat Jan 12 14:21:04 2013] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Sat Jan 12 14:21:04 2013] [notice] Child 2984: Exit event signaled. Child process is ending.
[Sat Jan 12 14:21:05 2013] [notice] Child 2984: Released the start mutex
[Sat Jan 12 14:21:05 2013] [notice] Child 2984: All worker threads have exited.
[Sat Jan 12 14:21:05 2013] [notice] Child 2984: Child process is exiting
[Sat Jan 12 14:21:05 2013] [notice] Parent: Child process exited successfully.
[Sat Jan 12 14:21:06 2013] [notice] Apache/2.2.22 (Win32) configured -- resuming normal operations
[Sat Jan 12 14:21:06 2013] [notice] Server built: Jan 28 2012 11:16:39
[Sat Jan 12 14:21:06 2013] [notice] Parent: Created child process 5588
[Sat Jan 12 14:21:07 2013] [notice] Disabled use of AcceptEx() WinSock2 API
[Sat Jan 12 14:21:07 2013] [notice] Child 5588: Child process is running
[Sat Jan 12 14:21:07 2013] [notice] Child 5588: Acquired the start mutex.
[Sat Jan 12 14:21:07 2013] [notice] Child 5588: Starting 64 worker threads.
[Sat Jan 12 14:21:07 2013] [notice] Child 5588: Listening on port 80.
[Sat Jan 12 16:05:42 2013] [warn] pid file D:/Apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sat Jan 12 16:05:42 2013] [notice] Apache/2.2.22 (Win32) configured -- resuming normal operations
[Sat Jan 12 16:05:42 2013] [notice] Server built: Jan 28 2012 11:16:39
[Sat Jan 12 16:05:42 2013] [notice] Parent: Created child process 1272
[Sat Jan 12 16:05:42 2013] [notice] Disabled use of AcceptEx() WinSock2 API
[Sat Jan 12 16:05:42 2013] [notice] Child 1272: Child process is running
[Sat Jan 12 16:05:42 2013] [notice] Child 1272: Acquired the start mutex.
[Sat Jan 12 16:05:42 2013] [notice] Child 1272: Starting 64 worker threads.
[Sat Jan 12 16:05:42 2013] [notice] Child 1272: Listening on port 80.
[Sat Jan 12 19:42:51 2013] [warn] pid file D:/Apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sat Jan 12 19:42:51 2013] [notice] Apache/2.2.22 (Win32) configured -- resuming normal operations
[Sat Jan 12 19:42:51 2013] [notice] Server built: Jan 28 2012 11:16:39
[Sat Jan 12 19:42:53 2013] [notice] Parent: Created child process 1980
[Sat Jan 12 19:42:53 2013] [notice] Disabled use of AcceptEx() WinSock2 API
[Sat Jan 12 19:42:53 2013] [notice] Child 1980: Child process is running
[Sat Jan 12 19:42:53 2013] [notice] Child 1980: Acquired the start mutex.
[Sat Jan 12 19:42:53 2013] [notice] Child 1980: Starting 64 worker threads.
[Sat Jan 12 19:42:53 2013] [notice] Child 1980: Listening on port 80.
[Sun Jan 13 10:42:06 2013] [warn] pid file D:/Apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sun Jan 13 10:42:06 2013] [notice] Apache/2.2.22 (Win32) configured -- resuming normal operations
[Sun Jan 13 10:42:06 2013] [notice] Server built: Jan 28 2012 11:16:39
[Sun Jan 13 10:42:06 2013] [notice] Parent: Created child process 352
[Sun Jan 13 10:42:06 2013] [notice] Disabled use of AcceptEx() WinSock2 API
[Sun Jan 13 10:42:06 2013] [notice] Child 352: Child process is running
[Sun Jan 13 10:42:06 2013] [notice] Child 352: Acquired the start mutex.
[Sun Jan 13 10:42:06 2013] [notice] Child 352: Starting 64 worker threads.
[Sun Jan 13 10:42:06 2013] [notice] Child 352: Listening on port 80.

RimusWolker
access.log в данной ситуации был бы более полезен.
ahristovsky
RimusWolker
он пустой.
RimusWolker
Кажись запросы до вашего сервека не доходят.
Попробуй через браузер localhost. Если страница откроется значит не верно настроены конфиги апача.
ahristovsky
RimusWolker
браузер localhost? Это что?
Hello
ahristovsky
ping ahristovsky

Показывает ваш ip?

_____________
VPS от 5$, первые 2 месяца - бесплатно.
ahristovsky
Hello
это где?
Hello
ahristovsky, в консоли
Еще пока не настроите, закомментируйте
CustomLog "d:/sites/ahristovsky/logs/access.log" common

и смотрите общий access log

_____________
VPS от 5$, первые 2 месяца - бесплатно.
Быстрый ответ:

 Графические смайлики |  Показывать подпись
Здесь расположена полная версия этой страницы.
Invision Power Board © 2001-2024 Invision Power Services, Inc.