title: Get current PHP install settings
body: <p>I wanted to get the settings of the current installed PHP on my server. I don't want to have the settings of PHP(.ini) itself, I need the <code>/configure</code> parameters how the PHP is currently installed. E.g. the values of <code>--prefix</code> or <code>--includedir</code> or <code>--sysconfdir</code> of my currently PHP ...</p>
  
  <p>Edit:
  I know that <code>phpinfo()</code> will output the settings but on my server isn't a <code>Configure Command</code> field with the information! How do I get these information?</p>
  
  <p>Edit #2:
  Does nobody understand what I want to know or is my answer really that bad that I get so much downvotes?
  A common use to install PHP is like that:</p>
  
  <pre><code>./configure --prefix=/usr/share/php5\
   --with-libdir=lib64\
   --includedir=/usr/include\
   --enable-libxml\
   --enable-session
  [...]
  </code></pre>
  
  <p>I didn't installed the current PHP5.2 on the server so I don't know how it was configurated during installation and I need/want to know what were the settings to install PHP5.3 like the current 5.2 to have a high chance to get all my websites working without any trouble.</p>