Solved

recompiling php on ubuntu server

Posted on 2007-03-27
1
1,174 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 50 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

737 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