Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

recompiling php on ubuntu server

Posted on 2007-03-27
1
Medium Priority
?
1,179 Views
Last Modified: 2013-11-15
Hi have installed ubuntu server and all seems mega, however im trying to run a site that uses postgres.

ive installed postgres ok but when i browse to a postgres backed php page i get the following error

Your PHP installation does not support PostgreSQL. You need to recompile PHP using the --with-pgsql configure option.

can any one tell me how to recompile php in ubuntu with postgres enabled without messing the rest of it up as i have no idea

thanks in advance
0
Comment
Question by:andrew67
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 10

Accepted Solution

by:
Luxana earned 200 total points
ID: 18804391
Hi,

try to install postgresql module for php.

#apt-get install php4-pgsql
or
#apt-get install php5-pgsql

depends on your version of PHP

restart apache...and try again..


0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In order for businesses to be compliant with certain information security laws in some countries, you need to be able to prove that a user (which user it was becomes important to the business to take action against the user after an event has occurr…
If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question