What options should I put in ./configure when compiling PHP 5.4 to Debian 7 x64?

I have PHP, which was installed by ISPManager , but failed to google what options were used during the build. I would like to compile a new version, and that nothing has flown away.

  • As I understand it, options for building can be phpinfo(INFO_CONFIGURATION); via phpinfo(INFO_CONFIGURATION); - tutankhamun
  • @tutankhamun Yes, indeed, but even to know how everything that was derived would lead to the form for ./configure, and obviously that not everything should be touched, otherwise there will be dozens of options) - xXxxX
  • Only I was wrong. It is necessary phpinfo(INFO_GENERAL); - tutankhamun
  • Even if it is built with cli support you can like this php -i | grep 'Configure Command' php -i | grep 'Configure Command' - tutankhamun
  • are you not satisfied with the distribution package ? - aleksandr barakin

1 answer 1

response from comment:


The options used in the build can be phpinfo(INFO_GENERAL) by calling the phpinfo(INFO_GENERAL) function phpinfo(INFO_GENERAL) .

And if collected with cli support, you can do this:

 $ php -i | grep 'Configure Command'