Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 07-11-2012, 02:43 AM   #1
Doug Hutcheson
Registered: Jun 2009
Location: Queensland
Distribution: Fedora 26; HP Pavilion 8Gb and Acer Aspire 16Gb; both Intel Core-i7
Posts: 266

Rep: Reputation: 22
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:
[Mon Jul 02 11:02:06 2012] [error] [client] 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:
$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, 12:18 AM   #2
Doug Hutcheson
Registered: Jun 2009
Location: Queensland
Distribution: Fedora 26; HP Pavilion 8Gb and Acer Aspire 16Gb; both Intel Core-i7
Posts: 266

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


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 10:21 AM
how do i connect my blue tooth headset to Ubuntu, it is unable to connect. salfuser Linux - Hardware 2 01-12-2009 10:28 AM
Unable to upgrade to ubuntu 7.10, update manager fails to update.... jonbvgood Linux - Software 2 02-05-2008 03:58 PM
Red Hat Update Agent freezing, unable to update (FC4) Malakye Fedora 1 12-09-2005 08:02 PM
Unable to logon on as non-root user after update as unable to set executable context pls198 Fedora 2 04-09-2004 11:41 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:04 PM.

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