hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : PHP + PgSQL Question
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

PHP + PgSQL Question

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 09-07-2001, 02:44 PM
JamesUS JamesUS is offline
Junior Guru Wannabe
 
Join Date: Nov 2000
Location: London, UK
Posts: 31

PHP + PgSQL Question


Hi everyone,

A couple of months back I got a server with cpanel at Pegasus (shared with a friend). So far it's been perfect - I've been very pleased.

I recently decided that I needed Postgre SQL for one of my sites; I've managed to get this installed with no problems. However, I'm nervous about recompiling PHP. Last time I tried to recompile PHP on a Cpanel server, it mucked it up in a pretty big way.

Is there a way to add PgSQL support to PHP without recompiling, or if not, is there a reliable set of instructions for recompiling php with cpanel that even I could follow

Thank you very much for any help you can give - I really do appreciate it

Reply With Quote


Sponsored Links
  #2  
Old 09-08-2001, 02:22 AM
Jm4n Jm4n is offline
WHT Addict
 
Join Date: Aug 2001
Posts: 137
If your PHP wasn't compiled with PostgreSQL support, you will need to recompile it *and* Apache (assuming mod_php) to enable it. You can check this by looking at the output of a phpinfo() page.

Compiling PHP is pretty straight-forward. Just follow the directions in the INSTALL file that comes with the distribution.

Apache, OTOH, is a little bit more complicated, but obviously it's been compiled already -- all you have to do is recompile with the same options you used before.

I personally go into the src directory, edit the template, and run Configure. Then make, cd up a level, and make install. The other method doesn't work as smoothly, and you have to remember all of yoru configure options...

Also make sure to check the php.ini file for postgresql specific options.

__________________
- Jman

Reply With Quote
  #3  
Old 09-08-2001, 04:37 AM
JamesUS JamesUS is offline
Junior Guru Wannabe
 
Join Date: Nov 2000
Location: London, UK
Posts: 31
Thanks for your help

Wouldn't that cause problems with cpanel though? If I understand correctly it doesn't like having PHP or Apache recompiled...

Reply With Quote
Sponsored Links
  #4  
Old 09-08-2001, 06:04 AM
Jm4n Jm4n is offline
WHT Addict
 
Join Date: Aug 2001
Posts: 137
I reall can't be much help there, I've never seen/used CPanel... I can't imagine why it would hurt it, though -- but I would recommend contacting the vendors for advice on that.

Or, don't use a control panel to administrate a server...

__________________
- Jman

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
The Value of Your Intellectual Property Blog 2013-05-06 17:43:13
Joomla Hosting Study Shows Speed, Uptime Top Selling Points of a Web Host Web Hosting News 2012-11-07 15:06:36
10-14-2012 Roswell, NM - The Hosting Shift Blog 2012-10-24 15:14:40
Rackspace Blog Looks at Easy Outsourcing for App Development Blog 2012-03-05 19:07:48
Blackberry the UnCloud Blog 2011-10-14 15:28:54


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?