- Configure & Compile -
# ./configure --prefix=/usr/local/apache \
--enable-module=so \
--enable-rewrite \
--enable-module=rewrite \
--enable-shared=rewrite
;make; make instal
- 라이브러리 위치 지정 -
# vi /etc/ld.so.conf
"/usr/local/apache/lib"
"/usr/local/apache/modules" -> 입력
# ldconfig
(PHP 설치 후 설정 및 실행...)
- 설정 -
# vi /usr/local/apache/conf/httpd.conf
User nobody, Group nobody
DocumentRoot "/home/webserver/"
DirectoryIndex index.html index.htm index.php index.pl
AddType application/x-httpd-php .phtml .php .php3 .php4 php5 .html .htm
AddType application/x-httpd-source .phps
# <Directory "/usr/local/apache/htdocs">
<Directory "/home/webserver">
Indexes (삭제)
Options FollowSymLinks (변경 or 삽입)
AllowOverride FileInfo (변경 or 삽입)
- 실행 -
# /usr/local/apache/bin/apachectl start
- 서버 부팅시 실행 -
# vi /etc/rc.d/rc.local
/usr/local/apache/bin/apachectl start -> 입력