Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Apache is loading the configuration from files into its memory. If the config files are changing the Apache process won't activate it until a reload/restart happens.

Now I have to debug the current running Apache configuration (particularly the Vhost config). For now I have dumped the Apaches memory with gcore. So how would I have to proceed to extract the relevant parts of the memory dump to get to the Vhost config? (I assume the config does not get stored in plain text in Apaches memory and there is some magic needed to decode the memory).

I think it might be really complex to debug it this way.

share|improve this question
    
guys, when (before) voting to close, please add a comment explaining why. I can't see what's unclear about this question. –  Stéphane Chazelas May 12 at 15:08
    
@StephaneChazelas Strange, I also don't get the point of closing the question. It is still unclear how to get configuration from a running Apache process (if it is possible at all). –  Michael Tanner May 13 at 8:06

1 Answer 1

I think it might be really complex to debug it this way.

Me too. There's no reason to believe that Apache simply reads the configuration into memory and consults it now and again -- more likely, many of the options integrally affect how apache configures itself at start-up.

So you would have to understand the structure of the apache source code and then start trying to figure out where the various bits and pieces would end up in a core dump.

If someone doesn't have a tool for this already (I'm guessing they don't) then I would try to find some other solution to your problem.

share|improve this answer
    
Okay, this really seems to be a complex thing. I already found some plain-text configuration in the core dump but I do not know why this individual Vhost was there and how Apache acts with this. –  Michael Tanner May 12 at 13:42

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.