Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to compile php-5.2.17 as a cgi wrapper. PostgreSQL is not installed on this machine. I'm looking for the configure command, to disable support for PostgreSQL.


share|improve this question

closed as off topic by Khaled, Michael Hampton, Ward, EEAA, mgorven Feb 26 '13 at 17:24

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

You really do not want to run PHP 5.2. It's way past its shelf life... – Michael Hampton Feb 25 '13 at 21:01
I don't feel happy about it. But you need to support obsolete frameworks sometimes... – mate64 Feb 26 '13 at 10:27
up vote 2 down vote accepted

Did you Read The Friendly Manual?

Admittedly I don't see where it explicitly tells you how to configure without postgresql support - but since it tells you how to add postgresql support, that rather implies it's disabled by default

In order to enable PostgreSQL support, --with-pgsql[=DIR] is required when you compile

do you have anything to suggest that's not the case?

Further, since postgresql support is described by pgsql it seems likely that should it be necessary to explicitly disable it then, at a guess the config option would be:


Is there a reason you want to compile the code yourself? Unless you link PHP statically, it's simply a matter of commenting out the extensions you don't need from the php.ini file to disable them.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.