본문 바로가기
서버 Server/웹서버

Install Manual - Apache (edit.2016.04.26)

by #XTRM 2021. 4. 22.
반응형

아파치 설치

1. 다운로드

 http://www.apachelounge.com/download/

● "D:/_www/_apache" 압축 풀기


2. ServerRoot 변경

  "D:/_www/_apache/conf/httpd.conf" 파일 편집


● ServerRoot "D:/_www/_apache"

● Listen 80

● ServerAdmin postmaster@localhost (관리자이메일주소: root@naver.com)

● ServerName localhost:80

● DocumentRoot "D:/_www/_htdocs"

● 접근권한

<Directory />
    AllowOverride none
    Require all denied
</Directory>


4. 환경 변수 추가

  시스템 -> 고급시스템설정 -> 환경변수 -> 시스템변수 -> path 편집

● "D:/_www/_apache/bin"


5. 커멘트에서 아파치 인스톨


vc_redist.x64 _C++ 2015 설치 후

CMD 관리자 권한을 실행

● httpd.exe -k install

● httpd.exe -k start

 


--- 아파치 웹서버 여러개 띄우기 ---

1. httpd.conf 파일을 다른이름으로 복사

2. 포크 및 설정파일 변경

3. 서비스 등록 및 실행

? 서비스 등록

httpd.exe -k install -n “서비스이름” -f “c:\경로\httpd2.conf”

? 서비스 제거

httpd.exe -k uninstall -n “서비스이름”

? 서비스 설정파일 검사

httpd.exe -n “서비스이름” -t

4. 윈도우 서비스 목록에서 서비스 실행 / 아파치 모니터툴에서 서비스 실행

 

반응형

댓글