Checking for APR... no
Confgirue: error: APR not found. Please read the documentation
*APR(Apache Portable Runtime) 설치
*ARP-Util 설치
*PCRE(Perl Compatible Regular Expressions) 설치
~/apache2/bin$ ldd httpd
linux-gate.so.1 => (0xb779b000)
libpcre.so.1 => not found ------------------------------------> problem
libaprutil-1.so.0 => /usr/local/apr/lib/libaprutil-1.so.0 (0xb775a000)
libapr-1.so.0 => /usr/local/apr/lib/libapr-1.so.0 (0xb7728000)
libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xb76f8000)
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb7553000)
libexpat.so.0 => /usr/local/apr/lib/libexpat.so.0 (0xb752a000)
libcrypt.so.1 => /lib/i386-linux-gnu/libcrypt.so.1 (0xb74f9000)
libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xb74f3000)
/lib/ld-linux.so.2 (0xb779c000)
~/.profile 에 export LD_LIBRARY_PATH=/usr/local/lib 를 추가
~/apache2/bin$ ldd httpd
linux-gate.so.1 => (0xb779b000)
libpcre.so.1 => /usr/local/lib/libpcre.so.1 (0xb777c000) ---------- 라이브러리를 찾아옴
libaprutil-1.so.0 => /usr/local/apr/lib/libaprutil-1.so.0 (0xb775a000)
libapr-1.so.0 => /usr/local/apr/lib/libapr-1.so.0 (0xb7728000)
libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xb76f8000)
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb7553000)
libexpat.so.0 => /usr/local/apr/lib/libexpat.so.0 (0xb752a000)
libcrypt.so.1 => /lib/i386-linux-gnu/libcrypt.so.1 (0xb74f9000)
libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xb74f3000)
/lib/ld-linux.so.2 (0xb779c000)
/etc/sudoers 파일을 수정하여 root 계정이 아닌 다른 계정으로 Apache 실행하기
# User privilege specification
root ALL=(ALL:ALL) ALL
www ALL=/home/www/apache2/httpd ------ www 계정만이 httpd 를 sudo 를 통한 실행 권한을 가짐
*sudo 실행시에 LD_LIBRARY_PATH 를 적용시키기
/etc/ld.so.conf.d$ ls -alrt
합계 24
-rw-r--r-- 1 root root 44 9월 11 2010 libc.conf
-rw-r--r-- 1 root root 108 3월 7 06:50 i686-linux-gnu.conf
lrwxrwxrwx 1 root root 40 5월 29 01:10 i386-linux-gnu_GL.conf -> /etc/alternatives/i386-linux-gnu_gl_conf
/etc/ld.so.conf.d$ cat i386-linux-gnu_GL.conf
/usr/lib/i386-linux-gnu/mesa
/usr/lib/i386-linux-gnu/mesa
/usr/local/lib
'apache' 카테고리의 다른 글
Installing Apache 2.4.1 from source on CentOS 6.2 Linux (0) | 2012.07.10 |
---|---|
APM(apache 2.4.1) 설치시 문제 해결 (0) | 2012.07.10 |
mod_deflate 설치 / 사용 (0) | 2012.02.16 |
아파치 mod_deflate로 압축 전송하기 (0) | 2012.02.16 |
[Apache] MPM(Prefork VS Worker) (0) | 2011.04.19 |