On Sunday 02 June 2002 06:44, Christian Jaeger wrote: > At 6:08 Uhr +0200 02.06.2002, Melvyn Sopacua wrote: > >However - I can't get a core dump, and in gdb run -X /path/to/conf doesn't > >create a socket somehow. > > If you start apache as root and let it change userid to nobody (or > whatever), most OS's won't drop core dumps because of security > considerations (the process could have secret data in it from the > period being root). (You *can* work around this in linux by calling > prctl(PR_SET_DUMPABLE,1) after the set*uid calls, but you would have > to either patch apache or axkit or call XS code from startup.pl.) > > The alternative is to start apache already as some non-root user, but > then you will have to change it's listening ports to >1024. I guess > you started gdb as a non-root user and apache couldn't connect to > port 80. > > Christian.
I'm pretty sure there is a Linux Kernel capability you can set to take care of the problem, but I honestly haven't monkeyed with them a lot. The other option would be to start apache from the beginning as a non-root user and run it on a high port for debugging. Its pretty easy to set that up... > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
