httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jose María Sánchez de Ocaña <jsan...@evolucy.com>
Subject Re: [users@httpd] Can't get mod_dumpio to work
Date Fri, 20 Oct 2006 11:49:48 GMT
Thanks for your help, Vincent; i'll try to help you help me !

Vincent Bray wrote:
> On 10/20/06, Jose María Sánchez de Ocaña <jsandeo@evolucy.com> wrote:
>> Hello,
>
> Hi,
>
>> I've just downloaded & compiled the latest stable release of the 2.2.3
>> apache server, because I wanted to be able to use mod_dumpio to help
>> debug my web app.
>> It took me a good 2 hours to get everything running again (I was
>> upgrading from apache 2.0.something). Anyway, after all, I haven't
>> managed to get mod_dumpio to work :( . And I've tried mostly everything
>> that could come up to my mind...
>> - googling
>> - enabling dumpio as a shared module
>> - building apache with dumpio preloaded
>> - tweaking all sorts of LogLevel options
>> - placing the "DumpIOOutput On" directive at different places of my
>> /etc/apache2/apache2.conf file and /etc/apache2/sites-available/*.conf
>> files (I'm running Debian)
>> - more googling :(
>
> It's somewhat unclear from this how you compiled apache as the paths
> look simillar to those used by the debian 'package'. Are you trying to
> use mod_dumpio from apache 2.2 with the debian 2.0?
What I actually did was: I built apache 2.2 (mod_dumpio included) and 
installed that replacing my debian apache 2.0 package. Thus, I used the 
debian filesystem layout. My config.nice right now looks like this:
-----------------------------
#! /bin/sh
#
# Created by configure

CFLAGS=" -pipe -I/usr/include/xmltok -I/usr/include/openssl -Wall -O2"; 
export CFLAGS
LDFLAGS="-ldl -lexpat -lcrypt -ldb-4.3"; export LDFLAGS
"./configure" \
"--srcdir=." \
"--enable-layout=Debian" \
"--enable-so" \
"--with-program-name=apache2" \
"--with-ldap=yes" \
"--with-ldap-include=/usr/include" \
"--with-ldap-lib=/usr/lib" \
"--with-suexec-caller=www-data" \
"--with-suexec-bin=/usr/lib/apache2/suexec" \
"--with-suexec-docroot=/var/www" \
"--with-suexec-userdir=public_html" \
"--with-suexec-logfile=/var/log/apache2/suexec.log" \
"--enable-authz_host=shared" \
"--enable-dumpio" \
"--enable-suexec=shared" \
"--enable-authx-host=shared" \
"--enable-authn-alias=shared" \
"--enable-authnz-ldap=shared" \
"--enable-disk-cache=shared" \
"--enable-cache=shared" \
"--enable-mem-cache=shared" \
"--enable-file-cache=shared" \
"--enable-charset-lite=shared" \
"--enable-cgi=shared" \
"--enable-dav-lock=shared" \
"--enable-log-forensic=shared" \
"--enable-log-config" \
"--enable-logio" \
"--enable-ldap=shared" \
"--enable-proxy=shared" \
"--enable-proxy-connect=shared" \
"--enable-proxy-ftp=shared" \
"--enable-proxy-http=shared" \
"--enable-proxy-ajp=shared" \
"--enable-proxy-balancer=shared" \
"--enable-ssl=shared" \
"--enable-authn-dbm=shared" \
"--enable-authn-anon=shared" \
"--enable-authn-dbd=shared" \
"--enable-authn-file=shared" \
"--enable-authn-default=shared" \
"--enable-authz-host=shared" \
"--enable-authz-groupfile=shared" \
"--enable-authz-user=shared" \
"--enable-authz-dbm=shared" \
"--enable-authz-owner=shared" \
"--enable-authnz-ldap=shared" \
"--enable-authz-default=shared" \
"--enable-auth-basic=shared" \
"--enable-auth-digest=shared" \
"--enable-dbd=shared" \
"--enable-deflate=shared" \
"--enable-include=shared" \
"--enable-filter=shared" \
"--enable-env=shared" \
"--enable-mime-magic=shared" \
"--enable-expires=shared" \
"--enable-headers=shared" \
"--enable-ident=shared" \
"--enable-usertrack=shared" \
"--enable-unique-id=shared" \
"--enable-setenvif=shared" \
"--enable-version=shared" \
"--enable-status=shared" \
"--enable-autoindex=shared" \
"--enable-asis=shared" \
"--enable-info=shared" \
"--enable-cgid=shared" \
"--enable-dav=shared" \
"--enable-dav-fs=shared" \
"--enable-vhost-alias=shared" \
"--enable-negotiation=shared" \
"--enable-dir=shared" \
"--enable-imagemap=shared" \
"--enable-actions=shared" \
"--enable-speling=shared" \
"--enable-userdir=shared" \
"--enable-alias=shared" \
"--enable-rewrite=shared" \
"--enable-mime=shared" \
"--with-apr=/usr/bin/apr-1-config" \
"--with-apr-util=/usr/bin/apu-1-config" \
"--with-pcre=yes" \
"--with-mpm=worker" \
"$@"
-----------------------------
>
>> I know dumpio is not supported, but if anyone has any experience or can
>> help me try anything else, I'll appreciate it very much.
>>
>
> What errors do you see when you try to start you server? Using "httpd
> -e debug" (or apache2 or whatever other thing debian calls the server
> binary) might help too.
>
I see no errors when starting apache. Actually apache is working fine, 
just that I can't see any output in my error log file coming from 
mod_dumpio.
-----------------------------
localhost:/etc/apache2# apache2 -v
Server version: Apache/2.2.3
Server built:   Oct 20 2006 02:36:18
localhost:/etc/apache2# apache2 -e debug
[Fri Oct 20 13:41:46 2006] [debug] mod_so.c(246): loaded module alias_module
[Fri Oct 20 13:41:46 2006] [debug] mod_so.c(246): loaded module 
auth_basic_module
[Fri Oct 20 13:41:46 2006] [debug] mod_so.c(246): loaded module 
authn_file_module
[Fri Oct 20 13:41:46 2006] [debug] mod_so.c(246): loaded module 
authz_groupfile_module
[Fri Oct 20 13:41:46 2006] [debug] mod_so.c(246): loaded module 
authz_host_module
[Fri Oct 20 13:41:46 2006] [debug] mod_so.c(246): loaded module 
authz_owner_module
[Fri Oct 20 13:41:46 2006] [debug] mod_so.c(246): loaded module 
authz_user_module
[Fri Oct 20 13:41:46 2006] [debug] mod_so.c(246): loaded module 
autoindex_module
[Fri Oct 20 13:41:46 2006] [debug] mod_so.c(246): loaded module cgi_module
[Fri Oct 20 13:41:46 2006] [debug] mod_so.c(246): loaded module dir_module
[Fri Oct 20 13:41:46 2006] [debug] mod_so.c(246): loaded module mime_module
[Fri Oct 20 13:41:46 2006] [debug] mod_so.c(246): loaded module 
negotiation_module
[Fri Oct 20 13:41:46 2006] [debug] mod_so.c(246): loaded module php4_module
[Fri Oct 20 13:41:46 2006] [debug] mod_so.c(246): loaded module 
rewrite_module
[Fri Oct 20 13:41:46 2006] [debug] mod_so.c(246): loaded module 
setenvif_module
[Fri Oct 20 13:41:46 2006] [warn] NameVirtualHost *:80 has no VirtualHosts
[Fri Oct 20 13:41:46 2006] [warn] NameVirtualHost *:80 has no VirtualHosts
[Fri Oct 20 13:41:46 2006] [warn] NameVirtualHost *:80 has no VirtualHosts
[Fri Oct 20 13:41:46 2006] [warn] NameVirtualHost *:80 has no VirtualHosts
[Fri Oct 20 13:41:46 2006] [warn] NameVirtualHost *:80 has no VirtualHosts
-----------------------------
>> About my box...
>> localhost:/etc/apache2# uname -a
>> Linux localhost 2.6.15-1-686-smp #2 SMP Thu Feb 2 18:39:24 UTC 2006 i686
>> GNU/Linux
>> localhost:/etc/apache2# apache2 -vl
>> Server version: Apache/2.2.3
>> Server built:   Oct 20 2006 02:36:18
>> localhost:/etc/apache2# apache2 -l
>> Compiled in modules:
>>   core.c
>>   mod_dumpio.c
>>   mod_log_config.c
>>   mod_logio.c
>>   worker.c
>>   http_core.c
>>   mod_so.c
>
> Perhaps you should consider upgrading to a distro that packages apache
> 2.2 and one that does so without turning the configuration in to a
> confusing mess.
>
Yes, i guess you are right. Well, if only the debian guys had included 
mod_dumpio in their build, then I might be good... Anyway, just in case, 
here is a fragment of my current .conf file with the related logging 
directives:

-----------------------------
[...]
#               Order allow,deny
#               Allow from all
#       </Directory>

        ErrorLog /var/log/apache2/ibergourdes.com_error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
#       LogLevel warn
        LogLevel debug
        DumpIOOutput On

        CustomLog /var/log/apache2/ibergourdes.com_access.log combined
        ServerSignature On
[...]
-----------------------------

So, if I understood mod_dumpio doc. right, I would expect apache dumping 
full output (as it actually is delivered to browsers) at the 
/var/log/apache2/ibergourdes.com_error.log file, but it just doesn't 
happen. No extra logging at the error log.

Thanks again for your time,
JSO

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message