Solved

recompiling php on ubuntu server

Posted on 2007-03-27
1
1,162 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
1 Comment
 
LVL 10

Accepted Solution

by:
Luxana earned 50 total points
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

After running Ubuntu some time, you will be asked to download updates for fixing bugs and security updates. All the packages you download replace the previous ones, except for the kernel, also called "linux-image". This is due to the fact that w…
This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

763 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now