IT. POST LIST

POST ALL LABEL

apache 소스 설치

By 때찌때찌맴매 - 12월 03, 2013

☆ Apache 수동 설치

httpd-2.2. 사용

# cd /httpd-2.2.

# ./configure –prefix=/usr/local/apache –with-mpm=worker –enable-modules=so –enable-rewrite –enable-ssl –enable-mods-shared=all



※ 옵션내용이 무엇인지 알아보자
# make install

※ make 오류시
modules/http/.libs/libmod_http.a(byterange_filter.o): In function `ap_set_byterange':
byterange_filter.c:(.text+0x12c1): undefined reference to `apr_array_clear’
collect2: ld returned 1 exit status
make[1]: *** [httpd] 오류 1
make[1]: Leaving directory `/root/install_1/httpd-2.2.22′
make: *** [all-recursive] 오류 1

config 옵션 추가
–with-included-apr

httpd.conf 설정

# cd /usr/local/apache/conf
# vim httpd.conf

114~115 번째 줄에 user와 group을 nobody 로 변경

<IfModule !mpm_netware_module>
#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
#
User nobody
Group nobody
137줄 쯤에 주석 해제

ServerName www.example.com:80

해제후 도메인 또는 ip주소 입력

ServerName xxx.xxx.xxx.xxx:80
212 줄 쯤에 index.php 추가 (또는 테스트용 test.php)

# <IfModule dir_module>
DirectoryIndex index.html index.php
# </IfModule>
편집기 오픈 355줄 쯤에
AddType application/x-httpd-php .php .php4 .inc .html .thtml
AddType application/x-httpd-php-source .phps

삽입 후 366줄 쯤에

AddHandler cgi-script .cg 주석 해제

/서비스 재시작

  • Share:

You Might Also Like

0 개의 댓글