Forum Moderators: phranque

Message Too Old, No Replies

Configure options from a previous installation

What was the configure command of your current web server?

         

czamora

12:11 pm on May 30, 2006 (gmt 0)

10+ Year Member



HI,

I was wondering how can one find what the exact options were used in the ./configure command to build an existing apache installation.

That is, is there a way to determine the exact ./configure command to recreate an existing apache installation? (in a different server, for example, or to change just one or two things but keep everything else identical?)

Thanks a lot.

zCat

12:27 pm on May 30, 2006 (gmt 0)

10+ Year Member



I don't know of any way to reproduce the exact set of configure options originally used. However the -q option of apxs will provide some information on general configuration settings (see e.g. [httpd.apache.org...] ), and you can tell which modules were compiled statically with "httpd -l", which should be enough to recreate the configure options, but it's not a guarantee.

As I regularly compile or recompile Apaches, I've got into the habit of storing the ./configure line on the server so it's there when I need it.