<-
Apache > HTTP Server > Documentation > Version 2.4 > Platform Specific Notes

Microsoft Windows���� ����ġ ����

������ ���:  en  |  fr  |  ko 

�� ������ �ֽ��� ������ �ƴմϴ�. �ֱٿ� ����� ������ ���� ������ �����ϼ���.

�� ������ Microsoft Windows���� ����ġ 2.0�� ��ġ, ����, �����ϴ� ����� �����Ѵ�. �߸��� �κ��� �ְų� �ٸ� ������� ������ �ַ���, ���� ���� �������� ����ϱ� �ٶ���.

�� ������ ����ġ ���̳ʸ� �������� ��ġ�Ѵٰ� �����Ѵ�. (�Ƹ��� ���� Ȥ�� ���׸� ã������) ���� ����ġ�� �������Ϸ��� Microsoft Windows�� ����ġ �������� �����϶�.

���� Microsoft Windows �ü������ ���� ��å�� �� ������ ������ ���� �����Ѵ�:

Support Apache!

����

top

�ü�� �䱸����

����ġ 2.0�� �����ϱ����� �⺻ Windows �÷����� Windows NT�̴�. ���̳ʸ� ��ġ���α׷��� Intel�� AMD�� ���� x86 ���� ���μ��������� �����Ѵ�. ����ġ�� Windows 9x���� ����� �˻����� �ʾұ⶧���� ����� ���� ���񽺿� ������� �ʱ� �ٶ���.

�ü���� ��ġ�� TCP/IP ��Ʈ��ũ�� �����ؾ� �Ѵ�. Windows 95���� �����Ѵٸ�, Winsock 2 ���׷��̵带 ��ġ�ؾ� �Ѵ�. Windows 95�� Winsock 2�� �������� �ٿ���� �� �ִ�.

Windows NT 4.0�� ����Ѵٸ� ������ 4�� TCP/IP ������ Winsock ������ ���� �����ѿ��� �ذ�Ǿ��⶧����, ������ 6�� ��ġ�ϱ� ���� ���Ѵ�.

top

Windows�� ����ġ �ٿ�ε�

����ġ ������ http://httpd.apache.org/download.cgi���� ����ġ �ֽ� ������ ���� ������ ���� �� �ִ�. ���⿡�� �ֽ� ��ǥ�ǰ� ���� Ȥ�� ��Ÿ �׽�Ʈ������, ����ġ �������� �ٿ�ε��� �� �ִ� HTTP �̷��� FTP �̷� ����� �ִ�. ������ �����ϰ� �ٿ�������� ����� �̷��� ����ϱ� �ٶ���.

Windows�� ��ġ�Ϸ��� Ȯ���ڰ� .msi�� Windows�� ����ġ ������ �ٿ�޾ƾ� �Ѵ�. �� ������ ���ٷ� ������ �� �ִ� ����ġ�� ������ Microsoft ��ġ�����̴�. ���� �ҽ��ڵ常 ����� .zip ������ �ִ�. Microsoft Visual C++ (Visual Studio)�� ����Ͽ� ���� ����ġ�� �������� ���� �ִ�.

top

Windows�� ����ġ ��ġ�ϱ�

��ġ�Ϸ��� Microsoft Installer 1.2 �̻� ������ �ʿ��ϴ�. Windows 9x�� ����Ѵٸ� �������� Microsoft Installer�� 2.0 �������� ���׷��̵��� �� �ְ�, Windows NT 4.0�� 2000�� ����Ѵٸ� �������� 2.0 ���� ������Ʈ�� ���� �� �ִ�. Windows XP�� ������Ʈ�� �ʿ䰡 ����.

���̳ʸ� ��ġ���Ϸδ� ���� ��ǻ�Ϳ� ���� �ٸ� ����ġ 2.0 ������ ��ġ�� �� ������ �����϶�. �׷��� 1.3 ������ 2.0 ������ ���� ��ǻ�Ϳ� �ƹ� �������� ��ġ�� �� �ִ�. ���� ��ǻ�Ϳ� �ΰ��� �ٸ� 2.0 ������ ��ġ�Ϸ��� �ҽ��� �������Ͽ� ����ġ�� ��ġ�ؾ� �Ѵ�.

������ �ٿ���� ����ġ .msi ������ �����Ѵ�. ��ġ�Ҷ� ������ ���� ���� �����:

  1. ��Ʈ��ũ ������ (Network Domain). ��ϵ� ������ DNS �������� �Է��Ѵ�. ���� ���, ������ ��ü DNS �̸��� server.mydomain.net�̶�� ���⿡ mydomain.net�� �Է��Ѵ�.

  2. ������ (Server Name). ������ ��ü DNS �̸�. ���� ��� ���⿡ server.mydomain.net�� �Է��Ѵ�.

  3. ������ ���ڿ��� �ּ� (Administrator's Email Address). ���⿡ ���� �����ڳ� ���������� ���ڿ��� �ּҸ� �Է��Ѵ�. �⺻������ Ŭ���̾�Ʈ���� ������ �������� �� �ּҸ� ����Ѵ�.

  4. ����� ��� (For whom to install Apache) ���� ��ġ�ϴ� ����ġ�� 80�� ��Ʈ���� ��û�� ��ٸ��� �Ϸ��� for All Users, on Port 80, as a Service - Recommended (��� �����, 80�� ��Ʈ, service�� - ��õ)�� �����Ѵ�. ����ġ�� service�� �����Ѵ� (��, ����ġ�� ������ �α����� ����� ��� ����ȴ�). ���������� �׽�Ʈ�غ��ų� �̹� 80�� ��Ʈ�� ����ϴ� �ٸ� �������� �ִٸ� only for the Current User, on Port 8080, when started Manually (���� ����ڸ�, 8080�� ��Ʈ, ���� ����)�� �����Ѵ�.

  5. ��ġ ���� (The installation type). ��� ���߿� �ʿ��� �ҽ��ڵ�� ���̺귯���� ������ ��� ���� ��ġ�Ϸ��� Typical�� �����Ѵ�. Custom�� �����ϸ� ��ġ�� ������ ������ �� �ִ�. ��ü ��ġ�� ��ũ�� �� ������ �� 13 �ް�����Ʈ ���� �ʿ��ϴ�. �� ��ġ�� ������Ʈ ũ�⸦ ������ ���̴�.

  6. ��ġ ��� (Where to install). �⺻ ��δ� C:\Program Files\Apache Group�̰�, �̰��� Apache2��� ���丮�� �����.

��ġ�� ���� ����ġ�� conf �������丮�� �ִ� ���ϵ��� ������ ��ġ ���丮�� �°� �����Ѵ�. �׷��� �� ���丮�� ���������� �̹� �ִٸ� �״�� �д�. ���, �ش� ������ ���ο� ���纻�� Ȯ���� .default�� ���δ�. ���� ���, conf\apache2.conf�� �̹� �ִٸ� conf\apache2.conf.default�� �̸��� �����Ѵ�. ��ġ�� .default ������ ������ ���� ���캸��, �ʿ��ϴٸ� ���� ���������� �����ؾ� �Ѵ�.

��, �̹� htdocs\index.html�̶�� ������ �ִٸ� �״�� �д� (index.html.default��� ���������� �ʴ´�). ��, ������ ����ġ�� ��ġ���ִ��� �����ϰ� ����ġ�� ���� ��ġ�� �� �ִ�. ���� ��ġ�ϱ� ���� ������ �ߴ��ϰ�, ��ġ�� ���ο� ������ �����ؾ� �Ѵ�.

����ġ ��ġ�� �ʿ��ϴٸ� conf �������丮�� �ִ� ���������� �����ؾ� �Ѵ�. ������ ����ġ�� ��ġ�� ���丮�� htdocs �������丮�� �ִ� ������ �����ϵ��� �������ִ�. ������ ����ġ�� ����ϱ� ���� �����ؾ� �� �ɼ��� ����. �׷��� ���� �����غ� �� �ֵ��� �⺻ �������Ϸε� �����Ѵ�.

top

Windows�� ����ġ �����ϱ�

����ġ�� conf �������丮�� �ִ� ���Ϸ� �����Ѵ�. �� ������ ���н���� ������, Windows�� ����ġ Ư���� ���þ � �ִ�. ��밡���� ��� ���þ ������ ���þ� ����� �����϶�.

Windows�� ����ġ�� �ֵ� ��������:

top

����ġ�� Service�� �����ϱ�

Windows NT������ ����ġ�� service�� ������ �� �ִ�. Windows 9x���� �ſ� �������� ������� ����� ����� �����Ѵ�.

��ġ�� �ڵ����� ����ġ�� service�� ��ġ�� �� �ִ�. "��� �����"�� �����ϸ�, ����ġ service�� ���������. "���� ����ڸ�"�� �����ϴ��� ��ġ�� ���� ����ġ�� service�� ����� �� �ִ�. service�� ��ġ�Ϸ��� Administrators �׷��� �������̾�� �Ѵ�.

����ġ���� Apache Service Monitor��� ������ �ִ�. �� ������ ����ϸ� ��Ʈ���� �ִ� �ٸ� ��ǻ�Ϳ� ��ġ�� ����ġ ���µ� Ȯ���ϰ� ������ �� �ִ�. monitor�� ����ġ service�� �����Ϸ��� ���� service�� (��ġ�� �ڵ����� Ȥ�� ����) ��ġ�ؾ� �Ѵ�.

����ġ bin �������丮���� ������ ������Ʈ�� ������ ���� �Է��ϸ� ����ġ�� Windows NT service�� ��ġ�Ѵ�:

apache -k install

��ġ�� service �̸��� �����ϰ� �ʹٸ� ���� ���ɾ ����Ѵ�. ��ǻ�Ϳ� ����ġ�� ������ ��ġ���ִٸ� �̸��� �ٸ��� �־�� �Ѵ�.

apache -k install -n "MyServiceName"

service�� ����� ���������� ���� �����Ϸ��� ������ ���� �Ѵ�:

apache -k install -n "MyServiceName" -f "c:\files\my.conf"

-k install �ܿ� �ٸ� �Ķ���͸� ������� ������, service �̸��� Apache2�� �ǰ� ���������� conf\apache2.conf�� �ȴ�.

����ġ service�� �����ϱ� ����. ������:

apache -k uninstall

������ ���� ������ ����ġ service�� ������ �� �ִ�:

apache -k uninstall -n "MyServiceName"

���� ����ġ service ����, �����, ����� Apache Service Monitor�� NET START Apache2, NET STOP Apache2 ���� ���ɾ� Ȥ�� Windows ���� ����â���� �Ѵ�. � ����� ����ϵ��� ����ġ service�� �����ϱ� ���� ���������� �˻��غ��� �Ѵ�:

apache -n "MyServiceName" -t

������ �ɼ����ε� ����ġ service�� ������ �� �ִ�. ��ġ�� ����ġ serivce�� �����Ϸ���:

apache -k start

������ �ɼ����� ����ġ service�� �����Ϸ���:

apache -k stop

Ȥ��

apache -k shutdown

�������� service�� ������Ͽ� ���������� �ٽ� �е��� �� �� �ִ�:

apache -k restart

�⺻������ ��� ����ġ service�� �ý��� ����� (LocalSystem ����) �������� �����ϵ��� ��ϵȴ�. Windows ���ȱ����� LocalSystem ������ ���Ͻý���, named pipes, DCOM, secure RPC �� � ����� ����ϵ��� ��Ʈ���� ������ �� ����. �׷��� �ش� ��ǻ�Ϳ����� ���� ������ ������.

LocalSystem �������� ��Ʈ�� ������ ����� ���� ����! ����ġ�� ��Ʈ�� �ڿ��� �����ؾ� �Ѵٸ�, �Ʒ����� �����ϴ� ������� ����ġ�� ���� ������ ������ ������.

����ġ service�� �����ϱ����� ������ ������ ���� ���� �ִ�. Ư�� ����ġ�� ��Ʈ�� �ڿ��� �����ؾ� �Ѵٸ� �� ����� ������ ���Ѵ�.

  1. �Ϲ� ������ ����� ������ ����� ��ȣ�� ����϶�.
  2. ���� ���� ������ ���񽺷� �α׿��� � ü���� �Ϻη� Ȱ�� ������ �ο��Ѵ�. Windows NT 4.0������ User Manager for Domains���� ������ �ο��� �� �ְ�, Windows 2000�� XP������ �Ƹ��� "�׷� ��å"�� ����ؾ� �Ѵ�. "���� ���� ����" MMC �����ο��� ���� �������� ���� �ִ�.
  3. ���� ���� ������ Users �׷쿡 ���ϴ��� Ȯ���Ѵ�.
  4. ��� ������ ��ũ��Ʈ ������ (���� ��� htdocs�� cgi-bin) ���� �б� �� ���� (RX) ������ �ο��Ѵ�.
  5. ����ġ logs ���丮�� ���� (RWXD) ������ �ο��Ѵ�.
  6. Apache.exe �������Ͽ� �б� �� ���� (RX) ������ �ο��Ѵ�.
����ġ service�� �����ϴ� ����ڿ��� �ּ��� ���� (RWXD) ������ �ʿ��� logs �������丮�� �����ϰ� Apache2 ���丮 ��ü�� �б� �� ���� (RX) ������ �ο��ϴ� ���� ����.

������ "���� �α׿�"�� "���񽺷� �α׿�" ������ �ִٸ�, �� �������� �α׿��Ͽ� ������ ��ũ��Ʈ�� �����ϰ� ���������� ������ �ܼ�â���� ����ġ�� ������ �� �ִ��� �˻��غ� �� �ִ�. ���⼭ ������ ���ٸ� ����ġ�� service�� �����ص� ������ ����.

Error code 2186�� ����ġ�� �ʿ��� ��Ʈ�� �ڿ��� ������ �� ���ٴ� ���� service�� "�α׿�" ������ Ȯ���϶�. ��, ����ġ�� �����ϴ� ������ ������ �������.

����ġ�� service�� �����ϸ� Windows Service Control Manager���� �������� �� �� �ִ�. ���� ���, �����ǿ��� "����"�� ����Ͽ� ����ġ�� �����ϴ� ��� ������ ���� ������ ���� �� �ִ�:

Could not start the Apache2 service on \\COMPUTER
Error 1067; The process terminated unexpectedly.

����ġ service�� �����Ҷ� ������ ������ �Ϲ����� �̷� ������ ���´�. ���� ��� �������� �˷��� ����ġ�� �ܼ� ���α׷����� �����غ���.

Windows 9x���� ����ġ�� Windows NT�� service�� ����� ����� �����Ѵ�. �׷��� �ſ� �������� ����̴�. ���� ���񽺿� ����Ҹ�ŭ ���������� �ʰ� ������ �������� ������ ���� ����. �����ϹǷ� Ȥ�ó� ����Ѵٸ� �����ؼ� ����ؾ� �Ѵ�!

�ΰ��� service�� �߿��� �������� ������ ����:

����ġ�� �ܼ� ���α׷����� �������� Ȯ���Ͽ��ٸ� Windows NT������ ���� ���ɾ�� ���� service�� ��ġ, ����, ������ �� �ִ�. ��, Apache Service Monitor�� ����Ͽ� Windows 9x ���� service�� ������ �� �ִ�.

top

����ġ�� �ܼ� ���α׷����� �����ϱ�

�Ϲ������� ����ġ�� service�� �����ϱ� ���Ѵ�. �׷��� �����࿡�� �����ϴ°� ���� ��찡 �ִ� (Windows 9x������ service�� ���������� �������� �ʱ⶧���� �����࿡�� ����ġ�� �����ϴ� ����� ���Ѵ�).

����ġ�� �ܼ� ���α׷����� �����Ϸ���, �����࿡�� ���� ���ɾ ����Ѵ�:

apache

����ġ�� Control-C�� ������ ������ ������ ����ȴ�.

��, ���� �޴� --> ���α׷� --> Apache HTTP Server 2.0.xx --> Control Apache Server�� ��ġ�� Start Apache in Console �ٷΰ���� ����ġ�� ������ �� �ִ�. �ٷΰ��⸦ �����ϸ� �ܼ�â�� ���� �� �ȿ��� ����ġ�� �����Ѵ�. ����ġ�� service�� ��ġ���� �ʾҴٸ�, ����ġ�� �����ϴ� �ܼ�â���� Control-C�� ���� ����ġ�� �ߴ��Ҷ����� â�� ���ִ�. �� ��� ������ ���ʾȿ� �����Ѵ�. �׷���, ����ġ�� service�� ��ġ�Ͽ��ٸ� �ٷΰ���� service�� �����Ѵ�. ����ġ service�� �̹� �������̶�� �ٷΰ���� �ƹ��ϵ� ���� �ʴ´�.

�ٸ� �ܼ�â�� ���� ������ ���� �Է��Ͽ� �������� ����ġ�� ������ �� �ִ�:

apache -k shutdown

�� ����� ����ġ�� ���� �۾��� ��ġ�� ���ݰ� ������ �� �ֱ⶧���� Control-C ���� ����.

��, ����ġ�� ������� �� �ִ�. �� ��� ���������� �ٽ� �д´�. �������� �۾��� �߰��� �����ʰ� �Ϸ��Ѵ�. ����ġ�� ������Ϸ���:

apache -k restart

���н��� ����ġ�� �ͼ��� ����� ����: �� ���ɾ�� kill -TERM pid�� kill -USR1 pid�� Windows���̴�. ������ �ɼ� -k�� ���н� kill ���ɾ� �̸��� ���� ������.

����ġ �ܼ�â�� ��� Ȥ�� ������ ���ڱ� ��ġ�� ���� �޴� --> ���α׷��� ���� ������Ʈ�� �����Ѵ�. ����ġ�� ��ġ�� ������ ���� apache ���ɾ �����غ��� �߻��� �������� ���캻��. �׸��� logs ������ ����, ���������� �߸��Ǿ����� error.log ������ ���캻��. ����ġ�� ��ġ�Ҷ� �⺻���� ����ߴٸ� ������ ����:

c:
cd "\Program Files\Apache Group\Apache2\bin"
apache

����ġ�� ������ ������ ��ٸ��ų� Control-C�� ������. �׸��� ������ ���� �Է��Ѵ�:

cd ..\logs
more < error.log

����ġ�� �ٷ궧 ����ġ�� ��� ���������� ã���� �ƴ� ���� �߿��ϴ�. �ΰ��� ������� �����࿡�� ���������� ������ �� �ִ�:

�� ��� ��� ���������� ������ ServerRoot�� �����ؾ� �Ѵ�.

-f�� -n���� ���������� �������� ������, ����ġ�� conf\apache2.conf�� ���� ������ �����ϵ� ���ϸ��� ����Ѵ�. �� �⺻ ��δ� ��ġ ���丮�� ������̴�. ������ ���� -V �ɼ����� ����ġ�� �����ϸ� SERVER_CONFIG_FILE�̶� �׸񿡼� ������ ����� ���������� �� �� �ִ�:

apache -V

����ġ�� ���� ������� ServerRoot�� ã�´�:

  1. -C ������ �ɼǿ� ����� ServerRoot ���þ�.
  2. -d ������ �ɼ�.
  3. ���� �۾� ���丮.
  4. ���̳ʸ� ��ġ�� �ߴٸ� ��ġ�Ҷ� ���� registry �׸�.
  5. ������ �����ϵ� server root. �⺻���� /apache�̰�, apache -V�� �����ϸ� HTTPD_ROOT��� �׸񿡼� Ȯ���� �� �ִ�.

��ġ�Ҷ� �������� ������Ʈ���� ���� Ư���� ������Ʈ�� Ű�� �����. Ű�� ��ġ�� ��ġ ������ ���� �ٸ���. install Apache for all users�� �����Ͽ��ٸ� HKEY_LOCAL_MACHINE �Ʒ��� ������ ���� Ű�� ����� (���� ������ȣ�� ����ġ �������� �ٸ���):

HKEY_LOCAL_MACHINE\SOFTWARE\Apache Group\Apache\2.0.43

"��� �����"�� ������� ����ġ�� ��ġ�Ͽ��ٸ� HKEY_CURRENT_USER �Ʒ� Ű�� �����. ������ ���� �α׿��� ����ڿ� ���� �ٸ���:

HKEY_CURRENT_USER\SOFTWARE\Apache Group\Apache\2.0.43

Ű �̸��� ������ �����ϵDZ⶧���� ���� ������ �ǵ帮���ʰ� ���ο� ������ ��ġ�Ͽ� �׽�Ʈ�غ� �� �ִ�. ���� �� ������ �ٸ� ������ ���� ���丮�� ��ġ�����ʵ��� �����ؾ� �Ѵ�.

���̳ʸ� ��ġ�� ���� ���� ��� ����ġ�� ������Ʈ�� Ű�� ���ٰ� ������ �� �ִ�. ������ �ٸ� ������� ���������� ã�� �� �ִٸ� �� ����� �����ص� �ȴ�.

Ű�� ���� ServerRoot ���丮�̸�, �� ���丮�� conf��� �������丮�� �ִ�. ����ġ�� �����ϸ� �� �������丮���� apache2.conf ������ �д´�. �� ���Ͽ� ������ ServerRoot ���þ ������Ʈ�� Ű�� ���� ���丮�� �ٸ��ٸ�, ����ġ�� ������Ʈ������ ���� ���� �����ϰ� ������ �������Ͽ� ���� ���丮�� ����Ѵ�. ����ġ ���丮�� ���������� �ٸ� ��ҷ� �����ϸ� �ݵ�� apache2.conf ���Ͽ� �ִ� ServerRoot ���þ �� ��ġ�� �����϶�.

top

���������� ��ġ�Ǿ����� �˻��ϱ�

(�ܼ�â�̳� service�� ����) ����ġ�� �����ϸ� (���������� Listen ���þ �����ϰų� ����ġ�� "���� ����ڸ�" ������� ��ġ���� �ʴ� ���) 80�� ��Ʈ�� ��ٸ���. �������� �����ϰ� URL�� �Է��Ͽ� ������ �⺻ �������� �����ϴ�:

http://localhost/

����ġ�� ����ġ ������ ��ũ�� �ִ� ȯ���������� ������� �Ѵ�. �ƹ� �ϵ� �Ͼ�� �ʰų� ������ ������, logs �������丮�� �ִ� error.log ������ �������. ȣ��Ʈ�� ��Ʈ���� ��������� �ʰų� DNS (Domain Name Service) ������ ������ �ִٸ� ���� URL�� ����ؾ� �Ѵ�:

http://127.0.0.1/

�⺻ ��ġ�� �����ϸ� conf �������丮�� �ִ� ������ ������ �����Ѵ�. ��, Windows NT ����ġ service ������ ������ ��� ���� �����࿡�� ����ġ�� �����Ͽ� ������ �߻������ʴ��� Ȯ���ؾ� �Ѵ�.

����ġ�� �ٸ� TCP/IP ���α׷��� ���� ��Ʈ�� ������ �� ���⶧���� ����ġ�� �����ϱ� ���� �ٸ� ���񽺸� �ߴ�, ����, �缳���ؾ� ������ �𸥴�. �ٸ� �������� Ư�� ��ȭ�� �������� �浹�� �� �ִ�.

������ ���:  en  |  fr  |  ko 

top

Comments

Notice:
This is not a Q&A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed again by our moderators if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Freenode, or sent to our mailing lists.