LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 07-11-2012, 03:43 AM   #1
Doug Hutcheson
Member
 
Registered: Jun 2009
Location: Queensland
Distribution: Fedora 19 i686
Posts: 143

Rep: Reputation: 17
phpPgAdmin unable to connect after update to FC17


I have recently upgraded from Fedora 15 to 17. I have PostgreSQL and Apache running happily on my machine. To administer my database, I use phpPgAdmin.

Prior to going to FC17, all was OK. Now, phpPgAdmin reports 'Login Failed', no matter which username and password I try. I can access the database using my own Perl CGI scripts, by using psql from a command line and by using the PgAdminIII GUI, but phpPgAdmin cannot connect.

/var/log/httpd/error_log contains this entry:
Code:
[Mon Jul 02 11:02:06 2012] [error] [client 127.0.0.1] PHP Strict standards:  Only variables should be assigned by reference in /usr/share/phpPgAdmin/classes/database/Connection.php on line 23, referer: http://localhost/phpPgAdmin/redirect.php?subject=server&server=%3A5432%3Aallow
Line 23 of /usr/share/phpPgAdmin/classes/database/Connection.php reads:
Code:
$this->conn = &ADONewConnection(\'postgres7\');
My guess is that PHP variable assignment has become more strictly policed under Fedora 17 and this line 23 is doing something that is no longer allowed. What that something is and how to correct/work around it is beyond my limited knowledge of PHP and Apache.

Stretching my understanding, I can see how the error might be raised if either $this->conn is not regarded as a variable which may be assigned to, or &ADONewConnection('postgres7') is not returning a valid value: perhaps it is returning a constant, or a null, or some other value that cannot be assigned to $this->conn? Is the literal \'postgres7\' throwing a spanner into the works by referring to an earlier version of PostgreSQL than what I am using? <grasping at straws here ...>

The only thing I am sure of is that I am out of my depth in trying to figure this out by myself.

I have raised this question at Fedora Forum and at the phpPgAdmin forum on SourceForge, without success to date.

Any help would be appreciated.
 
Old 07-14-2012, 01:18 AM   #2
Doug Hutcheson
Member
 
Registered: Jun 2009
Location: Queensland
Distribution: Fedora 19 i686
Posts: 143

Original Poster
Rep: Reputation: 17
The problem went away when I set extra_login_security to false in config.inc.php and restarted PostgreSQL. Hopefully, that has ended the problem.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to update and connect to the wireless internet network praveen97uma Linux - Server 2 03-09-2009 11:21 AM
how do i connect my blue tooth headset to Ubuntu, it is unable to connect. salfuser Linux - Hardware 2 01-12-2009 11:28 AM
Unable to upgrade to ubuntu 7.10, update manager fails to update.... jonbvgood Linux - Software 2 02-05-2008 04:58 PM
Red Hat Update Agent freezing, unable to update (FC4) Malakye Fedora 1 12-09-2005 09:02 PM
Unable to logon on as non-root user after update as unable to set executable context pls198 Fedora 2 04-09-2004 12:41 PM


All times are GMT -5. The time now is 01:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration