다음 문서를 보고 따라하면 된다.

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.

Posted by 김용환 '김용환'

댓글을 달아 주세요

  1. 2016.04.05 18:28  댓글주소  수정/삭제  댓글쓰기

    비밀댓글입니다