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 in
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 print configuration, then exit
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-rstarts the reverse-search function on the history
- Start typing part of the command you want to search for (e.g. "configure")
ctrl-ragain if you need to search farther back past the first result
- Hit enter to execute command line once you've found it (right arrow typically brings back the prompt with the found command string without actually executing it)
Not 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.