I am upgrading LAMP stack on customer's server and need to ./configure mysql and apache with exact last settings they were compiled with last time. Where do I get these? PHP configure string can be got by php -i. What about others?
I am upgrading LAMP stack on customer's server and need to ./configure mysql and apache with exact last settings they were compiled with last time. Where do I get these? PHP configure string can be got by php -i. What about others?
Was the decompressed source directory kept around? If so, the
configure
flags would typically be inconfig.status
orconfig.log
.This differs slightly depending on the software and whether or not autoconf was used.
config.status has a
--config
flag to print out the last configuration. I found it by running./config.status --help
So just run
./config.status --config
, and it will print out all the configure parameters.Depending on how long ago they were compiled, the command line entries used may still be in your shell's history. Under bash, you search back in the history via the following procedure:
ctrl-r
starts the reverse-search function on the historyctrl-r
again if you need to search farther back past the first resultNot to be all evangelical, but it's generally really bad idea to be compiling a lot of software yourself rather than using the packages provided by your distro.