HOME > 이용안내
이용안내
 
작성일 : 11-06-17 20:45
[리눅스서버] mod security 설치시 로그 안쌓이고 아파치에러로그 나올때
 글쓴이 : 관리자
조회 : 45,258  
:::::::::::::   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 385

번호 제   목   글쓴이 날짜 조회
105 [스크립트언어] [php]php5.3.x 에서 zend 설치시 주의 할 점 관리자 2012-02-09 55395
104 [리눅스서버] apache index of 페이지 리스팅 되는 경우 제이네트워크 2012-02-01 48189
103 [기타] 메일 첨부파일에 winmail.dat 파일만 첨부되었을때 확인방법 관리자 2012-01-30 56529
102 [메뉴얼] 알GIF 사용법 매뉴얼(홈페이지 메인이미지 변경시) 제이네트워크 2012-01-20 45918
101 [메뉴얼] naver, daum 사이트 검색정보 변경 메뉴얼 제이네트워크 2012-01-19 43963
100 [리눅스서버] centos yum 방화벽으로 업데이트 에러시 관리자 2012-01-03 47358
99 [윈도우서버] 윈도우 2003 또는 IIS 6.0 이상일 경우 FLV 파일 관리자 2011-12-29 44457
98 [DB] mysql 설치후 시작에러 발생시 관리자 2011-10-13 42280
97 [스크립트언어] [php]설치시 에러 configure: error: xml2-config not found. please check your libxml2 installatio… 관리자 2011-10-11 60102
96 [DB] mysql 설치시 exec: g++: not found 에러 관리자 2011-10-11 46106
95 [리눅스서버] 리눅스 설치 후 make 및 컨파일이 안될때.... 관리자 2011-10-11 43919
94 [DB] MySQL 설치 에러 : configure: error : No curses/termcap library found 관리자 2011-10-11 40883
93 [기타] 프린트 큐에 취소/에러란 프린터물이 있을때 (프린트 큐삭제) 관리자 2011-08-31 46754
92 [DB] mysql 로그를 삭제하여 시작 안될때 관리자 2011-08-16 40541
91 [기타] 설치 패키지를 열지 못했습니다. 패키지가 있는지, 액서스할 수 있는지 확… 관리자 2011-08-02 52043
90 [스크립트언어] PHP5.3에서 split함수에러시 explode수정함 관리자 2011-08-02 50351
89 [스크립트언어] 그누보드 Function eregi() is deprecated 오류문제~ 관리자 2011-08-01 53520
88 [리눅스서버] 리눅스 apache서버에서 redirect 방법들 (1) 관리자 2011-08-01 53080
87 [기타] 한글명으로 된 파일이 다운로드 되지 않을 때 관리자 2011-07-26 44091
86 [메뉴얼] 곰인코더를 사용한 wmv(윈도우즈미디어 파일 생성)파일 제작 메뉴얼입니다 제이네트워크 2011-07-21 43289
85 [스크립트언어] [php] configure 중 에러 : error: mcrypt.h not found. Please reinstall libmcrypt. 관리자 2011-07-08 55985
84 [윈도우미디어] 미디어 플레이어가 wvc1코덱에러로 실행이 안될때 관리자 2011-06-27 46473
83 [윈도우서버] windows 2000서버 혹은 2003 서버 admin 패스 잃어버렸을때복구법 관리자 2011-06-17 44391
82 [DB] phpMyAdmin 3.2.5 설치 및 mcrypt 오류 관리자 2011-06-17 43528
81 [스크립트언어] ASP에서 char형 데이타가 datatime형으로 데이타가 들어가지 않을때. 관리자 2011-06-17 51843
80 [리눅스서버] ftp 접속방식 문제 관리자 2011-06-17 60103
79 [리눅스서버] tmp폴더 보안 관리자 2011-06-17 43378
78 [리눅스서버] 리눅스 root 패스워드 재설정 관리자 2011-06-17 40266
77 [리눅스서버] tar 고급 명령어 제이네트워크 2011-06-17 43854
76 [리눅스서버] SSH 클라이언트 접속시 한글 깨짐 문제 (1) 관리자 2011-06-17 53595
75 [DB] Can't find file: './mysql/***.frm' (errno: 13)문제 관리자 2011-06-17 39097
74 [리눅스서버] 리눅스 서버 시간 맞추기 rdate 제이네트워크 2011-06-17 45247
73 [리눅스서버] apache 2.2 client denied by server configuration 오류 해결방법 관리자 2011-06-17 48153
72 [DB] Mssql 시스템 프로지져 삭제 복구 관리자 2011-06-17 37861
71 [리눅스서버] 500 OOPS: cannot change directory:/home/******* 제이네트워크 2011-06-17 42702
70 [리눅스서버] 리눅스 서버 VsFTP 서비스 사용법 관리자 2011-06-17 46894
69 [윈도우서버] windows 2008 media server 방화벽 문제 관리자 2011-06-17 44288
68 [윈도우서버] Windows2003서버로 파일 다운로드 기능시 문제 해결방법 관리자 2011-06-17 43392
67 [리눅스서버] 리눅스 서버 - 아파치 폴더 패스워드 주기 관리자 2011-06-17 43334
66 [리눅스서버] 리눅스 서버 ncftp 사용법 (1) 관리자 2011-06-17 44179
 1  2  3  4  5  6  7  8  9  10