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?
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.