※ CentOS 7 환경으로 설치 진행
1. 필수패키지 설치 진행
# yum -y install gcc* openssl*
2. apr 설치 및 apr-util 설치
# tar xvfz apr-1.5.1.tar.gz
# cd apr-1.5.1
# ./configure
# make && make install
# tar xvfz apr-util-1.5.4.tar.gz
# cd apr-util-1.5.4
# ./configure –with-apr=/usr/local/apr
# make && make install
3. httpd-2.4.34 설치
# tar xvfz httpd-2.4.34.tar.gz
# cd httpd-2.4.34
# ./configure --prefix=/usr/local/apache --enable-so --enable-rewrite \
--enable-ssl --enable-modules=shared --enable-mods-shared=all \
--with-apr=/usr/local/apr --with-mpm=prefork --with-apr-util=/usr/local/apr
# make && make install
4. 설정 변경
# vi /usr/local/apache/conf/httpd.conf
ServerName www.example.com:80
<Directory /home/*>
AllowOverride All
Require all granted
</Directory>
# cp -arp /usr/local/apache/bin/apachectl /etc/init.d/apachectl
# vi /etc/init.d/apachectl
아래 내용 추가
#!/bin/sh
#
# chkconfig: 2345 90 90
# description: init file for Apache server daemon
# processname: /usr/local/apache/bin/apachectl
# config: /usr/local/apache/conf/httpd.conf
# pidfile: /usr/local/apache/logs/httpd.pid
#
chkconfig –add apachectl
chkconfig apachectl on
'LINUX > WEB' 카테고리의 다른 글
PHP 5.5 소스설치 (0) | 2019.05.27 |
---|---|
PHP 5.3 소스설치 (0) | 2019.05.27 |
PHP 5.2 소스설치 (0) | 2019.05.27 |
Apache 설치 시 에러사항 (0) | 2019.05.27 |
Apache 2.2 소스설치 (0) | 2019.05.27 |