Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

--without-postgre

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

1  
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... –  cept0 Feb 26 '13 at 10:27

1 Answer 1

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:

--without-pgsql

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.