Alex Rivera | Logout

Get current PHP install settings

Asked 2012-03-01T17:26:37.407
10

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 /configure parameters how the PHP is currently installed. E.g. the values of --prefix or --includedir or --sysconfdir of my currently PHP ...

Edit: I know that phpinfo() will output the settings but on my server isn't a Configure Command field with the information! How do I get these information?

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:

./configure --prefix=/usr/share/php5\
 --with-libdir=lib64\
 --includedir=/usr/include\
 --enable-libxml\
 --enable-session
[...]

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.

Edit
Report

1 Answer

1

Use this to get the settings:

<?php
phpinfo();
?>
answered 2012-03-01T17:28:49.377

Your Answer