473,769 Members | 4,173 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Pgsql 7.3.3 on redhat 7.2

> I can't get a rest for a min guys.

I go away for the weekend and my server is getting this error.

Fatal error: Call to undefined function: pg_connect() in
/var/www/html/crohns/phpBB2/db/postgres7.php on line 79


Your PHP doesn't have support for PostgreSQL.

Look at phpinfo();

--->
From the backup to the current php.ini file... this is what was changed...
Looks like an autoupdate on php happened.

This was turned off in the current php.ini
;;;;;;;;;;;;;;; ;
; File Uploads ;
;;;;;;;;;;;;;;; ;

; Whether to allow HTTP file uploads.
file_uploads = Off
the backup had this tuned on

?

this cause it?

-Dan

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to ma*******@postg resql.org

Nov 12 '05 #1
11 2349
El Lun 20 Oct 2003 11:08, Daniel E. Fisher escribió:
From the backup to the current php.ini file... this is what was changed...
Looks like an autoupdate on php happened.

This was turned off in the current php.ini
;;;;;;;;;;;;;;; ;
; File Uploads ;
;;;;;;;;;;;;;;; ;

; Whether to allow HTTP file uploads.
file_uploads = Off
This has nothing to do.

the backup had this tuned on


echo "<?php phpinfo() ?>" | php | lynx

Aparently you are not uning the PostgreSQL that came with your RH 7.2, and
(somebody correct me) I think the libpq client changed, so recompilation is
needed.

By the way, you should give better information about the server. Tell us about
what version of PHP you are using. Did it come with RH? How about PgSQL?

--
11:25:01 up 17 days, 20:57, 3 users, load average: 0.29, 0.73, 0.96
-----------------------------------------------------------------
Martín Marqués | mm******@unl.ed u.ar
Programador, Administrador, DBA | Centro de Telematica
Universidad Nacional
del Litoral
-----------------------------------------------------------------
---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddres sHere" to ma*******@postg resql.org)

Nov 12 '05 #2
On Mon, Oct 20, 2003 at 10:08:08AM -0400, Daniel E. Fisher wrote:
From the backup to the current php.ini file... this is what was changed...

Looks like an autoupdate on php happened.

This was turned off in the current php.ini


Huh, it doesn't sound like it could affect the Postgres support.
However what could have happenned (I've seen it) is that there was some
previous change that didn't take effect because the server wasn't
restarted. So if this is your first httpd restart in some time, you
better start investigating.. .

If you are having updates applied behind your back, maybe the libpq
shared library changed version (libpq.so.2 -> libpq.so.3), and now PHP
is failing to load it. Read your server logs ...

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"You knock on that door or the sun will be shining on places inside you
that the sun doesn't usually shine" (en Death: "The High Cost of Living")

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Nov 12 '05 #3
I have in the /var/lib/
libpq.so.2
libpq.so.2.0
libpq.so.2.1
libpq.so

also found
/usr/local/pgsql/lib/libpq.so.3
/usr/local/pgsql/lib/libpq.so.3.0
/usr/local/pgsql/lib/libpq.so

After reading all my server logs:

No error messages or nothing. Weird..

May have something to do with reading wrong libpq Alvaro?

-Dan
-Always appreciative of help

-----Original Message-----
From: Alvaro Herrera [mailto:al****** @dcc.uchile.cl]
Sent: Monday, October 20, 2003 11:28 AM
To: Daniel E. Fisher
Cc: PGSQL List
Subject: Re: [GENERAL] Pgsql 7.3.3 on redhat 7.2
On Mon, Oct 20, 2003 at 10:08:08AM -0400, Daniel E. Fisher wrote:
From the backup to the current php.ini file... this is what was
changed... Looks like an autoupdate on php happened.

This was turned off in the current php.ini


Huh, it doesn't sound like it could affect the Postgres support.
However what could have happenned (I've seen it) is that there was some
previous change that didn't take effect because the server wasn't
restarted. So if this is your first httpd restart in some time, you
better start investigating.. .

If you are having updates applied behind your back, maybe the libpq
shared library changed version (libpq.so.2 -> libpq.so.3), and now PHP
is failing to load it. Read your server logs ...

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"You knock on that door or the sun will be shining on places inside you
that the sun doesn't usually shine" (en Death: "The High Cost of Living")
---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Nov 12 '05 #4
On Mon, Oct 20, 2003 at 01:03:23PM -0400, Daniel E. Fisher wrote:
After reading all my server logs:

No error messages or nothing. Weird..
Including Apache's /var/log/httpd/access_log and
/var/log/httpd/error_log during restart?
(or wherever you may have moved them)
May have something to do with reading wrong libpq Alvaro?


Maybe ... check out what ldd path-to-pgsql.so says (PHP's support
library)

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"Nadie esta tan esclavizado como el que se cree libre no siendolo" (Goethe)

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html

Nov 12 '05 #5
Already upgrading..see how it goes.

-Dan

-----Original Message-----
From: pg************* ****@postgresql .org
[mailto:pg****** ***********@pos tgresql.org]On Behalf Of Alvaro Herrera
Sent: Monday, October 20, 2003 3:03 PM
To: Daniel E. Fisher
Cc: PGSQL List
Subject: Re: [GENERAL] Pgsql 7.3.3 on redhat 7.2
On Mon, Oct 20, 2003 at 01:03:23PM -0400, Daniel E. Fisher wrote:
After reading all my server logs:

No error messages or nothing. Weird..
Including Apache's /var/log/httpd/access_log and
/var/log/httpd/error_log during restart?
(or wherever you may have moved them)
May have something to do with reading wrong libpq Alvaro?


Maybe ... check out what ldd path-to-pgsql.so says (PHP's support
library)

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"Nadie esta tan esclavizado como el que se cree libre no siendolo" (Goethe)

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Nov 12 '05 #6
Ok...ran into problems backing database up.

trying to run pg_dumpall > backup102003

gives me

Database version 7.3.3 compiled by gcc 2.96

Archiver DB ver 7.1.3
Aborting cause of version mismatch.

use ignore if ok?

Now it does have 7.3.3 on it but that is the old version of 7.1.3
before the upgrade. I really want to backup my data before I do this..
but is it safe to ignore...

I did copy /usr/local/pgsql to another directory just incase...
is this good enough?

-Dan

-----Original Message-----
From: pg************* ****@postgresql .org
[mailto:pg****** ***********@pos tgresql.org]On Behalf Of Alvaro Herrera
Sent: Monday, October 20, 2003 3:03 PM
To: Daniel E. Fisher
Cc: PGSQL List
Subject: Re: [GENERAL] Pgsql 7.3.3 on redhat 7.2
On Mon, Oct 20, 2003 at 01:03:23PM -0400, Daniel E. Fisher wrote:
After reading all my server logs:

No error messages or nothing. Weird..
Including Apache's /var/log/httpd/access_log and
/var/log/httpd/error_log during restart?
(or wherever you may have moved them)
May have something to do with reading wrong libpq Alvaro?


Maybe ... check out what ldd path-to-pgsql.so says (PHP's support
library)

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"Nadie esta tan esclavizado como el que se cree libre no siendolo" (Goethe)

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Nov 12 '05 #7
On Mon, Oct 20, 2003 at 03:23:39PM -0400, Daniel E. Fisher wrote:
Ok...ran into problems backing database up.

trying to run pg_dumpall > backup102003

gives me

Database version 7.3.3 compiled by gcc 2.96
Archiver DB ver 7.1.3
Aborting cause of version mismatch.


Huh... apparently you are running pg_dumpall from a very old version.
You should look around your system for a more recent version ... don't
trust you PATH on this! Use pg_dumpall --version and check the version
number.

BTW, you should be using 7.3.4 anyway. I just had somebody with a
postmaster that refused to start because of a bug in 7.3.3 on another
list.

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
Licensee shall have no right to use the Licensed Software
for productive or commercial use. (Licencia de StarOffice 6.0 beta)

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Nov 12 '05 #8
El Lun 20 Oct 2003 14:03, Daniel E. Fisher escribió:
I have in the /var/lib/
libpq.so.2
libpq.so.2.0
libpq.so.2.1
libpq.so
These look like the ones that came with the postgresql-libs rpm from RH.
also found
/usr/local/pgsql/lib/libpq.so.3
/usr/local/pgsql/lib/libpq.so.3.0
/usr/local/pgsql/lib/libpq.so
These look like newly install from source libraries.
If this is true, you should (or the sys admin) "rpm -e postgresql-libs".
And add "/usr/local/pgsql/lib" to LD_LIBRARY_PATH or add in to
/etc/ld.so.conf.
After reading all my server logs:

No error messages or nothing. Weird..


I think you're gonna have to recompile PHP, or go back to the version that
came with RH 7.2 (I would recommend moving to RH 9 which comes with a much
newer version of PostgreSQL and PHP).

--
El mejor sistema operativo es aquel que te da de comer.
Cuida tu dieta.
-----------------------------------------------------------------
Martin Marques | mm******@unl.ed u.ar
Programador, Administrador | Centro de Telematica
Universidad Nacional
del Litoral
-----------------------------------------------------------------
---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html

Nov 12 '05 #9
I found the current version and ran pg_dumpall > backup

it dumped everything correctly....

I am now preforming the upgrade...to 7.3.4

Thanks for the help everyone...we will get this yet.

-Dan

-----Original Message-----
From: pg************* ****@postgresql .org
[mailto:pg****** ***********@pos tgresql.org]On Behalf Of Alvaro Herrera
Sent: Monday, October 20, 2003 4:19 PM
To: Daniel E. Fisher
Cc: PGSQL List
Subject: Re: [GENERAL] Pgsql 7.3.3 on redhat 7.2
On Mon, Oct 20, 2003 at 03:23:39PM -0400, Daniel E. Fisher wrote:
Ok...ran into problems backing database up.

trying to run pg_dumpall > backup102003

gives me

Database version 7.3.3 compiled by gcc 2.96
Archiver DB ver 7.1.3
Aborting cause of version mismatch.


Huh... apparently you are running pg_dumpall from a very old version.
You should look around your system for a more recent version ... don't
trust you PATH on this! Use pg_dumpall --version and check the version
number.

BTW, you should be using 7.3.4 anyway. I just had somebody with a
postmaster that refused to start because of a bug in 7.3.3 on another
list.

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
Licensee shall have no right to use the Licensed Software
for productive or commercial use. (Licencia de StarOffice 6.0 beta)

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to ma*******@postg resql.org so that your
message can get through to the mailing list cleanly

Nov 12 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1668
by: Levent | last post by:
Folks, I am getting following message from pear. I am running RedHat 8.0, PostgreSQL is 7.3.2 PHP Version 4.2.2 and pear:db 1.6.5. Warning: pg_errormessage(): supplied argument is not a valid PostgreSQL link resource in /usr/share/pear/DB/pgsql.php on line 449 Any idea. Thanks
0
1084
by: Travel Jadoo | last post by:
I have found an pgsql-mode.el file which I want to install in my xemacs but sorry, I am lost as to how install it. Or is there a better solution to pgsql programming in xemacs? I am using Redhat 9 Alfred ---------------------------(end of broadcast)---------------------------
1
1791
by: Hema Sekhar | last post by:
Hi I am Hemasekhar K.P I am trying to replicae pgsql on REDHATLinux 8, but the site http://gborg.postgresql.org/genpage?replication_72install. is giving instructions on REDHATLinux 7, is there any site which gives instructions on how to replicate on REDHATLinux 8, Actually in postgresql.conf which is under /usr/local/pgsql/data/postgresql.conf, I added the following lines
3
3641
by: D. Stimits | last post by:
I've found a number of basic references for PL/PGSQL, but am looking for something more complete. First question, is there available a *complete* reference for PL/PGSQL? I'm using PostgreSQL version 7.2.3-5.73 (for Redhat rpm packaging version), so it is version 7.2 I am concerned with information on (this is a default version, so at least on this machine, I'm not interested in updates in version). The situation that leads me to ask for...
1
1687
by: Daniel E. Fisher | last post by:
My sysadmin just called and tol me he updated the php.rpm... he happens to be in California totally across the US from me for a week... So I check the ver and... Php version 4.1.2-7.2.6 recently updated - yesterday Postgresql 7.3.3 installed in august sometime - upgraded from basic redhat 7.2 postgresql Since he upgraded the php rpm this problem started.
13
2339
by: Erick Papadakis | last post by:
hello, i am a newbie to the pgsql world, so pls bear with a possibly stupid question. i want to test out pgsql but i only have a shared hosting account. is it possible to install pgsql without root access, only for my account? my webhost uses redhat i think. thanks! ..ep
4
1837
by: Postgresql | last post by:
Hello, I am unable to get on many of the postgresql mailing lists. I usually get this message back with no attachment and no email comes afterwards with a confirmation. I've tried this over and over on multiple lists. After a while I was able to get on pgsql-admin...but it took a few tries. It's been a couple days now, so I'm assuming majordomo has had time to process my request.
7
2320
by: snpe | last post by:
Is it down ? regards ---------------------------(end of broadcast)--------------------------- TIP 9: the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match
3
2187
by: Deepa K | last post by:
---------------------------- Original Message ---------------------------- Subject: Abrupt close of pgsql backend From: "Deepa K" <kdeepa@midascomm.com> Date: Mon, October 25, 2004 8:04 pm To: postgresql-general@postgresql.org -------------------------------------------------------------------------- Hi, I am running postgresql 7.1.3 in RedHat Linux 7.2. From an external C application, three connections are established with...
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10222
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9999
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7413
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5310
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.