Solved

recompiling php on ubuntu server

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

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…
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

867 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

18 Experts available now in Live!

Get 1:1 Help Now