1. 미들웨어이야기/02. Apache

Apache 설치

OSSW(Open Source System SoftWare 2014. 12. 3. 16:53

 


* Apache 설치

 

설치 및 운영을 위한 계정(apache) 구성

apache@a-virtual-machine:~$ id

uid=1003(apache) gid=1003(apache) 그룹들=1003(apache)

 

apache@a-virtual-machine:~$ pwd

/apache

 

apache@a-virtual-machine:~$ vi .profile

# ~/.profile: executed by the command interpreter for login shells.

# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login

# exists.

# see /usr/share/doc/bash/examples/startup-files for examples.

# the files are located in the bash-doc package.

 

# the default umask is set in /etc/profile; for setting the umask

# for ssh logins, install and configure the libpam-umask package.

#umask 022

 

# if running bash

if [ -n "$BASH_VERSION" ]; then

    # include .bashrc if it exists

    if [ -f "$HOME/.bashrc" ]; then

             . "$HOME/.bashrc"

    fi

fi

 

# set PATH so it includes user's private bin if it exists

if [ -d "$HOME/bin" ] ; then

    PATH="$HOME/bin:$PATH"

fi

 

#### Edit ENV ####

set -o vi

stty erase ^H

alias ll='ls -l'

 

 

### Apache alias ###

alias webstart='/apache/apache-2.2.21/bin/apachectl start'

alias webstop='/apache/apache-2.2.21/bin/apachectl stop'

alias alog='cd /ap_log'

alias acfg='cd /apache/apache-2.2.21/conf'

 

export TMOUT=0

 


 

 

apache 2.2.21 설치

1. apache 2.2.21 설치를 위해 httpd-2.2.21.tar.gz의 압축을 풀어 설치 준비

 

 

2. apache 설치 (prefix) - config

apache@a-virtual-machine:/install/apache/httpd-2.2.21$ ./configure --

prefix=/apache/apache-2.2.21

Configuring Apache Portable Runtime library ...

Configuring APR library

Checking for libraries...

Checking for Threads...

APR will use threads

Checking for Shared Memory Support...

Checking for DSO...

Checking for Processes...

Checking for Locking...

Checking for File Info Support...

Checking for OS UUID Support...

Checking for Time Support...

Checking for Networking support...

Checking for IPv6 Networking support...

Restore user-defined environment settings...

Configuring Apache Portable Runtime Utility library...

Configuring Apache httpd ...

Applying OS-specific hints for httpd ...

Restore user-defined environment settings...

Construct makefiles and header files...

 

3. apache 설치 (prefix) - compile

apache@a-virtual-machine:/install/apache/httpd-2.2.21$ make

 

4. apache 설치 (prefix) - install

apache@a-virtual-machine:/install/apache/httpd-2.2.21$ make install

 

 

 

 

apache 설치 확인

apache@a-virtual-machine:~/apache-2.2.21$ ls -al

합계 68

drwxr-xr-x 15 apache apache  4096 2013-03-19 13:20 .

drwxr-xr-x  4 apache apache  4096 2013-03-19 13:19 ..

drwxr-xr-x  2 apache apache  4096 2013-03-19 13:19 bin

drwxr-xr-x  2 apache apache  4096 2013-03-19 13:20 build

drwxr-xr-x  2 apache apache  4096 2013-03-19 13:19 cgi-bin

drwxr-xr-x  4 apache apache  4096 2013-03-19 13:19 conf

drwxr-xr-x  3 apache apache  4096 2013-03-19 13:19 error

drwxr-xr-x  2 apache apache  4096 2011-09-09 23:25 htdocs

drwxr-xr-x  3 apache apache  4096 2013-03-19 13:19 icons

drwxr-xr-x  2 apache apache  4096 2013-03-19 13:19 include

drwxr-xr-x  3 apache apache  4096 2013-03-19 13:19 lib

drwxr-xr-x  2 apache apache  4096 2013-03-19 13:19 logs

drwxr-xr-x  4 apache apache  4096 2013-03-19 13:20 man

drwxr-xr-x 14 apache apache 12288 2011-09-09 23:29 manual

drwxr-xr-x  2 apache apache  4096 2013-03-19 13:19 modules

 

 

 

by. 현주희(11월)


 

'1. 미들웨어이야기 > 02. Apache' 카테고리의 다른 글

apache redirectmatch  (0) 2014.12.03
Apache 로그 파일 관리  (0) 2014.12.03
알아두면 유용한 apache httpd실행 옵션  (0) 2014.12.03
apache graceful restart  (0) 2014.12.03
httpd 실행 옵션  (0) 2014.12.03