PC에 설치 cygwin
했습니다 Windows
. 다 괜찮아.
그런 다음 apache
패키지 를 설치하려고했습니다 . 모든 관련 패키지를 선택하고 설치했습니다.
문제 :에서 /usr/sbin
내가 볼 수있는 apachectl2
그리고 http2
또한 내가 아래에있는 구성 파일을 볼 수 있습니다 /etc/apache2
예를 httpd.conf
작동하지 않는 것 같습니다. 아래에 디렉토리
가 없습니다 . 나는 경우에 하나를 만들고 또한 ie 라는 하위 디렉토리를 만들었고 샘플 스크립트를 만들고 배치 했지만 작동하지 않습니다.
심지어에서 즉, 메인 아파치 페이지에 연결할 수 없습니다 (I 넣어 에서 ).
는 비어 있습니다. www
/var
cgi-bin
www/cgi-bin
.pl
http://localhost:9080
9080
httpd.conf
/var/log/apache2/error_log
내가 여기서 뭘 잘못하고 있니?
업데이트 :
나는 여러 가지 소스에서 어떻게 든 cygserver
전제 조건 임을 알았습니다 . 나는 CYGWIN
단어를 포함 해야하는 환경 변수가 있어야한다는 조언을 봅니다 server
. 이것이 무엇을 의미하는지 모릅니다.
업데이트 2 :
이 예제에 따라 cygserver를 서비스로 설치했습니다. 이것은 괜찮은 것 같습니다.
또한 ssh
(왜 그런지 모르겠 음) 설치 하고 실행 하려고했습니다 httpd2.conf
. 설치하지 못했습니다 :
내가 여기서 뭘 잘못하고 있는지 전혀 모른다. 나는 어제부터 이것을 시도했다. 어떤 아이디어?
업데이트 3
어떤 이유로 때로는 아파치 서비스가 시작됩니다!
입력 할 때 localhost:8085
( 브라우저가 멈추기 httpd2.conf
위해 포트를 변경했습니다 8085
. 응답이 없으며 페이지가 연결을 시도하는 것처럼 일종의로드 상태 인 것 같습니다
UPDATE 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
답변
오류 메시지에 답이 들어 있습니다 (강조 표시) :
2 [main] httpd2 1684 child_info_fork::abort: unable to remap mod_dir.so to same address as parent (002D0000) - **try running rebaseall**
이것은 공식 Cygwin FAQ에서 답변 됩니다.