logo

copy
고객센터 > 이용안내
mod security 설치시 로그 안쌓이고 아파치에러로그 나올때 | 리눅스서버
관리자 11-06-17 20:45 13029
:::::::::::::   Mod security 설치시 로그 안쌓이고 아파치에러로그 나올때    ::::::::::::::::::::::::::::::::

error ModSecurity:ModSecurity requires mod_unique_id to be installed.
 
--->처리방법
 
# cd /usr/local/src
# wget http://ftp.linux.co.kr/pub/apache/httpd-2.2.11.tar.gz
# tar xvfz httpd-2.2.11.tar.gz
# cd httpd-2.2.11/modules/metadata
# /usr/local/apache/bin/apxs -cia mod_unique_id.c
# /etc/rc.d/init.d/httpd restart (/usr/local/apache/bin/apachectl restart)
 
그래도 에러나면 아마도 컨파일 중 파일이 없는것일 수 있으므로 에러를 자세히 본다
/usr/local/apache/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -O2 -pthread -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/local/apache/include -c -o mod_unique_id.lo mod_unique_id.c && touch mod_unique_id.slo

/usr/local/apache/build/libtool --silent --mode=link gcc -o mod_unique_id.la -rpath /usr/local/apache/modules -module -avoid-version mod_unique_id.lo

/usr/local/apache/build/instdso.sh SH_LIBTOOL='/usr/local/apache/build/libtool' mod_unique_id.la /usr/local/apache/modules

/usr/local/apache/build/libtool --mode=install cp mod_unique_id.la /usr/local/apache/modules/

cp .libs/mod_unique_id.lai /usr/local/apache/modules/mod_unique_id.la
cp .libs/mod_unique_id.a /usr/local/apache/modules/mod_unique_id.a
chmod 644 /usr/local/apache/modules/mod_unique_id.a
ranlib /usr/local/apache/modules/mod_unique_id.a
PATH="$PATH:/sbin" ldconfig -n /usr/local/apache/modules

----------------------------------------------------------------------

Libraries have been installed in:
/usr/local/apache/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
   during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
   during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.

----------------------------------------------------------------------

Warning! dlname not found in /usr/local/apache/modules/mod_unique_id.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /usr/local/apache/modules/mod_unique_id.so
chmod: cannot access `/usr/local/apache/modules/mod_unique_id.so': No such file or directory
apxs:Error: Command failed with rc=65536
 
/usr/local/apache/modules/mod_unique_id.so 이파일이 없으므로 에러
 
다른곳에서 찾아서 넣어준 다음 다시 컨파일 한후 재시작 하면 문제없음.
   

교회홈페이지제작
대용량동영상서비스
무료SMS솔루션
QT나눔
신앙도서
온라인성경
크리스찬
연합신문
성경타자
설교방송
CCM 방송
성경연구