Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

Hey there, I'm on a project that uses drupal and postgresql, and i was developing using console and ssh, but i had some troubles and i want to make it local. So i enabled mac's Apache and PHP, and everything went fine, but then i installed pgsql and i had trouble, as it wouldn't work, since mac's php doesn't have support for pg. I copied a phppgadmin on my Sites folder, and when i access it, Safari shows an error taht says: "Your php installation doesn't support PostgreSQL. Please compile again using --with-pgsql" (just translated it, it's something like that since my mac is portuguese-br). Then i installed the Entropy PHP, i did comment the line on httpd that used mac's original php as they say on the installation guide. But it didn't work, i wrote a test.php and safari wouldn't show it, i restarted Apache, but even with this it wouldn't show up.

Now i need some new ideas. I'm downloading phppgadmin and Apache from stackbuilder from the Postgre applications and see what it does, maybe it "catches" the Entropy PHP and uses it, as it has the pgsql module.

What happened to my Entropy PHP that isn't working as it should? probably Apache isn't using it's libraries, and i don't have an idea of how to do this since i'm new to web programming.

Entropy's website is this one:

and they don't say to uncomment this line after the instalation:

#LoadModule php5_module libexec/apache2/

so i think the installation went wrong, but i didn't see any error.

edit AGAIN:

gave up on Entropy PHP, apparently it doesn't work on Leopard, so i have to stick to Apple's PHP implementation, now I'm searching the easiest way to enable pgsql support. i tried this one:

but when i run the "phpize" command, i get some strange errors and can't move on. maybe ill have to install macports, well.. let's see what happens.

share|improve this question

Found a way to make drupal, php and pgsql happen on MAC, after a long search and almost downloading the source for apache and php and compile 'em up, found this "hidden" package which includes everything i need:

Google shows a lot of stuff that's not related to this if you search. It's pretty much like a windows installation, just keep clicking next and it works like a charm.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .