Я установил cygwin на ПК с Windows . Все ок.
Затем я попытался установить пакет apache . Я выбрал все соответствующие пакеты и также установил их.
Проблема: в /usr/sbin я вижу apachectl2 и http2 а также я вижу файлы конфигурации в /etc/apache2 например httpd.conf который, кажется, не работает.
В каталоге www нет каталога /var . Я создал один в случае, а также подкаталог с именем cgi-bin т.е. я создал www/cgi-bin и поместил образец сценария .pl но он не работает.
Я не могу даже подключиться к главной странице apache, т.е. в http://localhost:9080 (я положил 9080 в httpd.conf).
/var/log/apache2/error_log пуст.

Что я здесь не так делаю?

ОБНОВИТЬ:
Я вижу в различных источниках, что каким-то образом cygserver является обязательным условием. Я вижу совет, что должна существовать CYGWIN env var, которая должна содержать слово server . Понятия не имею, что это значит.

ОБНОВЛЕНИЕ 2:
Следуя этому примеру, я установил Cygserver в качестве службы. Кажется, все идет хорошо.
Также я попытался установить ssh (не уверен почему) и запустить httpd2.conf . Не удалось установить:

Я понятия не имею, что я делаю не так здесь. Я пытался это со вчерашнего дня. Есть идеи?

ОБНОВЛЕНИЕ 3
Почему-то иногда запускается служба apache!

Когда я набираю localhost:8085 (я изменил порт в httpd2.conf на 8085 браузер просто зависает. Я не получаю ответа, и страница, кажется, находится в каком-то состоянии загрузки, как будто пытается установить соединение

ОБНОВЛЕНИЕ 3
В /var/log/apache2/error_log теперь я вижу:

[Sun May 19 15:03:10 2013] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
      2       2 [main] httpd2 1684 child_info_fork::abort: unable to remap mod_dir.so to same address as parent (002D0000) - try running rebaseall
      3 fork: Resource temporarily unavailable
      4 unable to fork new process
      5 [Sun May 19 15:07:22 2013] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
      6 [Sun May 19 15:07:23 2013] [notice] Digest: generating secret for digest authentication ...
      7 [Sun May 19 15:07:23 2013] [notice] Digest: done
      8       2 [main] httpd2 2908 child_info_fork::abort: address space needed by 'cyglber-2-3-0.dll' (0x550000) is already occupied
      9 [Sun May 19 15:07:23 2013] [error] (11)Resource temporarily unavailable: fork: Unable to fork new process
     10 [Sun May 19 15:07:33 2013] [notice] Apache/2.2.23 (Unix) mod_ssl/2.2.23 OpenSSL/1.0.1e DAV/2 configured -- resuming normal operations
     11       3 [main] httpd2 1692 child_info_fork::abort: address space needed by 'mod_status.so' (0x3A0000) is already occupied
     12 [Sun May 19 15:07:34 2013] [error] (11)Resource temporarily unavailable: fork: Unable to fork new process
     13       2 [main] httpd2 5952 child_info_fork::abort: address space needed by 'cyglber-2-3-0.dll' (0x550000) is already occupied
     14 [Sun May 19 15:07:45 2013] [error] (11)Resource temporarily unavailable: fork: Unable to fork new process
     15       3 [main] httpd2 624 child_info_fork::abort: address space needed by 'mod_status.so' (0x3A0000) is already occupied
     16 [Sun May 19 15:07:55 2013] [error] (11)Resource temporarily unavailable: fork: Unable to fork new process
     17       3 [main] httpd2 5008 child_info_fork::abort: address space needed by 'cyglber-2-3-0.dll' (0x550000) is already occupied
     18 [Sun May 19 15:08:06 2013] [error] (11)Resource temporarily unavailable: fork: Unable to fork new process
     19       2 [main] httpd2 2952 child_info_fork::abort: address space needed by 'cyglber-2-4-2.dll' (0x2A0000) is already occupied
     20 [Sun May 19 15:08:16 2013] [error] (11)Resource temporarily unavailable: fork: Unable to fork new process
     21       4 [main] httpd2 4148 child_info_fork::abort: address space needed by 'cyglber-2-3-0.dll' (0x550000) is already occupied
     22 [Sun May 19 15:08:26 2013] [error] (11)Resource temporarily unavailable: fork: Unable to fork new process
     23       3 [main] httpd2 1660 child_info_fork::abort: address space needed by 'mod_status.so' (0x3A0000) is already occupied
     24 [Sun May 19 15:08:36 2013] [error] (11)Resource temporarily unavailable: fork: Unable to fork new process
     25      71 [main] httpd2 5756 child_info_fork::abort: unable to remap cygldap-2-3-0.dll to same address as parent (004D0000) - try running rebaseall
     26 [Sun May 19 15:08:47 2013] [error] (11)Resource temporarily unavailable: fork: Unable to fork new process
     27       3 [main] httpd2 3496 child_info_fork::abort: unable to remap mod_mime.so to same address as parent (002B0000) - try running rebaseall
     28 [Sun May 19 15:08:57 2013] [error] (11)Resource temporarily unavailable: fork: Unable to fork new process
     29       2 [main] httpd2 568 child_info_fork::abort: address space needed by 'cyglber-2-3-0.dll' (0x550000) is already occupied
     30 [Sun May 19 15:09:07 2013] [error] (11)Resource temporarily unavailable: fork: Unable to fork new process
     31       2 [main] httpd2 5640 child_info_fork::abort: address space needed by 'cyglber-2-4-2.dll' (0x2A0000) is already occupied
     32 [Sun May 19 15:09:17 2013] [error] (11)Resource temporarily unavailable: fork: Unable to fork new process
     33       3 [main] httpd2 5764 child_info_fork::abort: unable to remap cygldap-2-3-0.dll to same address as parent (004D0000) - try running rebaseall
     34 [Sun May 19 15:09:27 2013] [error] (11)Resource temporarily unavailable: fork: Unable to fork new process
     35       3 [main] httpd2 5992 child_info_fork::abort: address space needed by 'cyglber-2-4-2.dll' (0x2A0000) is already occupied
     36 [Sun May 19 15:09:37 2013] [error] (11)Resource temporarily unavailable: fork: Unable to fork new process
     37       3 [main] httpd2 2956 child_info_fork::abort: address space needed by 'cyglber-2-3-0.dll' (0x550000) is already occupied
     38 [Sun May 19 15:09:40 2013] [error] (11)Resource temporarily unavailable: fork: Unable to fork new process
     39       3 [main] httpd2 5040 child_info_fork::abort: address space needed by 'mod_mime.so' (0x2B0000) is already occupied
     40 [Sun May 19 15:09:50 2013] [error] (11)Resource temporarily unavailable: fork: Unable to fork new process
     41 [Sun May 19 15:10:00 2013] [notice] caught SIGTERM, shutting down
     42 [Sun May 19 15:10:00 2013] [notice] seg fault or similar nasty error detected in the parent process
     43 [Sun May 19 15:13:22 2013] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
     44 [Sun May 19 15:13:23 2013] [notice] Digest: generating secret for digest authentication ...
     45 [Sun May 19 15:13:23 2013] [notice] Digest: done
     46       2 [main] httpd2 2536 child_info_fork::abort: address space needed by 'mod_imagemap.so' (0xC60000) is already occupied
     47 [Sun May 19 15:13:23 2013] [error] (11)Resource temporarily unavailable: fork: Unable to fork new process
     48 [Sun May 19 15:13:33 2013] [notice] Apache/2.2.23 (Unix) mod_ssl/2.2.23 OpenSSL/1.0.1e DAV/2 configured -- resuming normal operations
     49       4 [main] httpd2 5896 child_info_fork::abort: address space needed by 'mod_imagemap.so' (0xC60000) is already occupied
     50 [Sun May 19 15:13:34 2013] [error] (11)Resource temporarily unavailable: fork: Unable to fork new process
     51       2 [main] httpd2 988 child_info_fork::abort: address space needed by 'mod_imagemap.so' (0xC60000) is already occupied
     52 [Sun May 19 15:13:45 2013] [error] (11)Resource temporarily unavailable: fork: Unable to fork new process
     53       3 [main] httpd2 5296 child_info_fork::abort: address space needed by 'mod_status.so' (0x3D0000) is already occupied
     54 [Sun May 19 15:13:55 2013] [error] (11)Resource temporarily unavailable: fork: Unable to fork new process
     55       2 [main] httpd2 4828 child_info_fork::abort: address space needed by 'mod_imagemap.so' (0xC60000) is already occupied
     56 [Sun May 19 15:14:06 2013] [error] (11)Resource temporarily unavailable: fork: Unable to fork new process
     57       2 [main] httpd2 2188 child_info_fork::abort: address space needed by 'mod_imagemap.so' (0xC60000) is already occupied
     58 [Sun May 19 15:14:16 2013] [error] (11)Resource temporarily unavailable: fork: Unable to fork new process
     59       2 [main] httpd2 1664 child_info_fork::abort: address space needed by 'mod_imagemap.so' (0xC60000) is already occupied
     60 [Sun May 19 15:14:26 2013] [error] (11)Resource temporarily unavailable: fork: Unable to fork new process
     61       2 [main] httpd2 5212 child_info_fork::abort: address space needed by 'cyglber-2-4-2.dll' (0x3B0000) is already occupied

1 ответ1

1

Сообщение об ошибке содержит ответ (выделение мое):

2 [main] httpd2 1684 child_info_fork::abort: unable to remap mod_dir.so to same address as parent (002D0000) - **try running rebaseall**

На это есть ответ в официальном FAQ по Cygwin.

Всё ещё ищете ответ? Посмотрите другие вопросы с метками .