HOME > 이용안내
이용안내
 
작성일 : 11-06-17 20:45
[리눅스서버] mod security 설치시 로그 안쌓이고 아파치에러로그 나올때
 글쓴이 : 관리자
조회 : 36,528  
:::::::::::::   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 이파일이 없으므로 에러
 
다른곳에서 찾아서 넣어준 다음 다시 컨파일 한후 재시작 하면 문제없음.





Cloud server Streaming service Domain Cloud Firewall

 
 

Total 377

번호 제   목   글쓴이 날짜 조회
337 [기타] tracert / traceroute 명령어 관리자 2011-06-13 38870
336 [DB] MYSQL 자료의 이전과 database dump 관리자 2011-06-17 31506
335 [윈도우서버] iis7.0 에서 ASP 오류메세지 출력하기 관리자 2011-06-17 38237
334 [기타] 메일 전송을 위한 spf 설정 관리자 2011-06-17 38669
333 [윈도우서버] Windows Server 2008 터미널 2명이상 사용하기 관리자 2011-06-17 36429
332 [메일] 메일에러 리턴메세지 제이네트워크 2011-06-17 46333
331 [리눅스서버] /etc/fstab 파일 수정 안될때 관리자 2011-06-17 35443
330 [기타] RAID란 무엇인가? 관리자 2011-06-17 37290
329 [스크립트언어] [PHP] checking lex output file root... ./configure: line 2554: lex: command not found 컴파일에… 관리자 2011-06-17 31472
328 [DB] mysql 컴파일 시 LinuxThreads not found 발생할 경우 관리자 2011-06-17 29478
327 [리눅스서버] mod security 설치시 로그 안쌓이고 아파치에러로그 나올때 관리자 2011-06-17 36529
326 [리눅스서버] 리눅스 서버 패스워드 암호 풀기 관리자 2011-06-17 33866
325 [스크립트언어] [ASP] Asp언어 xml 파싱에러처리 관리자 2011-06-17 40709
324 [스크립트언어] [ASP] ASP에서 글 내용 한줄씩 프린트 하기 관리자 2011-06-17 31336
323 [리눅스서버] 리눅스 서버에서 특수문자 폴더 파일 삭제 하기 관리자 2011-06-17 35328
322 [윈도우서버] windows 2003 서버에서 한글 파일 다운 안될때 관리자 2011-06-17 36263
321 [스크립트언어] 영문 숫자조합 검색 자바스크립트 관리자 2011-06-17 39562
320 [리눅스서버] cronolog 설치 및 셋팅 활용방법 관리자 2011-06-17 38201
319 [스크립트언어] 검색엔진 최적화를 위한 index.html 구성요령 (테크노트PHP) 제이네트워크 2011-06-17 38990
318 [기타] 검색엔진이 좋아하는 메타태그 만들기 관리자 2011-06-17 34976
317 [리눅스서버] 리눅스서버 HDD추가및 MOUNT하기 (2) 관리자 2011-06-17 46158
316 [기타] URL 데이터의 처리-GET과POST 관리자 2011-06-17 41892
315 [DB] 서버이전 - mysql 버전 문제로 인한 암호화 방식 해결 방안 관리자 2011-06-17 29232
314 [메일] 아웃룩 메일 서비스의 대표적 오류 해결방법 제이네트워크 2011-06-17 38046
313 [리눅스서버] 리눅스 centos5.x + 삼바 설치 관리자 2011-06-17 35950
312 [리눅스서버] 리눅스 서버 ncftp 사용법 (1) 관리자 2011-06-17 35421
311 [리눅스서버] 리눅스 서버 - 아파치 폴더 패스워드 주기 관리자 2011-06-17 34725
310 [윈도우서버] Windows2003서버로 파일 다운로드 기능시 문제 해결방법 관리자 2011-06-17 34237
309 [윈도우서버] windows 2008 media server 방화벽 문제 관리자 2011-06-17 35086
308 [리눅스서버] 리눅스 서버 VsFTP 서비스 사용법 관리자 2011-06-17 37861
307 [리눅스서버] 500 OOPS: cannot change directory:/home/******* 제이네트워크 2011-06-17 34050
306 [DB] Mssql 시스템 프로지져 삭제 복구 관리자 2011-06-17 30191
305 [리눅스서버] apache 2.2 client denied by server configuration 오류 해결방법 관리자 2011-06-17 39568
304 [리눅스서버] 리눅스 서버 시간 맞추기 rdate 제이네트워크 2011-06-17 36596
303 [DB] Can't find file: './mysql/***.frm' (errno: 13)문제 관리자 2011-06-17 31193
302 [리눅스서버] SSH 클라이언트 접속시 한글 깨짐 문제 (1) 관리자 2011-06-17 42576
301 [리눅스서버] tar 고급 명령어 제이네트워크 2011-06-17 34218
300 [리눅스서버] 리눅스 root 패스워드 재설정 관리자 2011-06-17 30679
299 [리눅스서버] tmp폴더 보안 관리자 2011-06-17 34187
298 [리눅스서버] ftp 접속방식 문제 관리자 2011-06-17 44164
 1  2  3  4  5  6  7  8  9  10