다음 문서를 보고 따라하면 된다.
http://httpd.apache.org/dev/debugging.html
이따 좋은데?? (문서 번역하기로 다짐함~~)
[dd /usr/local/apache/conf]# gdb httpd
GNU gdb Red Hat Linux (6.3.0.0-1.153.el4_6.2rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1".
(gdb) b ap_process_request
Breakpoint 1 at 0x806d32d: file http_request.c, line 243.
(gdb) run -X -d /usr/local/apache
Starting program: /usr/local/apache/bin/httpd -X -d /usr/local/apache
[Thread debugging using libthread_db enabled]
[New Thread -1208580416 (LWP 29667)]
Syntax error on line 21 of /usr/local/apache/conf/mod_security.conf:
mod_security: Failed to open the debug log file: /usr/local/apache/logs/modsec_debug_log
Program exited with code 01.
'web' 카테고리의 다른 글
oscache 사용 간단기 (0) | 2008.08.27 |
---|---|
인터넷 익스플로러 버전별 유저 에이전트 정리 (0) | 2008.08.14 |
외부폼과 통신할때 한글 처리하기 (0) | 2008.07.01 |
쿠키값 보기 (0) | 2008.06.11 |
mod_jk2 서버의 문제 (0) | 2008.06.10 |