Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > General Help
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

General Help
All your general support questions for Ubuntu, Kubuntu, Edubuntu and Xubuntu.

 
Thread Tools Display Modes
Old November 24th, 2007   #1
bobleny
A Carafe of Ubuntu
 
Join Date: Jul 2006
Location: Else Where
Beans: 144
Kubuntu 8.04 Hardy Heron
[SOLVED] phpmyadmin error: The configuration file now needs a secret......

OK, so I have an issue with phpmyadmin.

I can't actually log into the phpmyadmin panel, but I do have access to mysql via PHP.

The error I get reads:
The configuration file now needs a secret passphrase (blowfish_secret).

I looked online and the solution is simple, edit the config.inc.php file the line:
$cfg['blowfish_secret'] = '';

should equal a password. Something like:
$cfg['blowfish_secret'] = 'holla';
----------------------------

Anyways, this isn't my issue. When I check the file, the line already read:
$cfg['blowfish_secret'] = 'JFxf53DW3HtalwEkkusnEmjuQ';


I did some file searching and I found many different config.inc.php files around my computer. Three of which had this exact line in it:
$cfg['blowfish_secret'] = 'JFxf53DW3HtalwEkkusnEmjuQ';

The files where in these locations:
/var/lib/phpmyadmin/
/etc/phpmyadmin/
/usr/share/phpmyadmin/config/
------------------------


I don't know what else to do. I would sort of like access to phpmyadmin. It is a very nice program...

Can anyone please help me?

Thanks!
__________________
-- www.firemelt.net --
No good deed goes unpunished.
If at first you don't succeed, destroy all evidence that you ever tried.
Cheer up, the worst is yet to come...
bobleny is offline   Reply With Quote
Old November 26th, 2007   #2
bobleny
A Carafe of Ubuntu
 
Join Date: Jul 2006
Location: Else Where
Beans: 144
Kubuntu 8.04 Hardy Heron
Re: phpmyadmin error: The configuration file now needs a secret......

I was thinking about it and I thought maybe it is a permissions issue. So, I searched the computer for any files owned by www-data and changed the the owner to me.

Now it works again with no problems...

Thanks for everybody's... err... Umm. Well thanks for.... OK, bye.
__________________
-- www.firemelt.net --
No good deed goes unpunished.
If at first you don't succeed, destroy all evidence that you ever tried.
Cheer up, the worst is yet to come...
bobleny is offline   Reply With Quote
Old January 24th, 2008   #3
Railsbuntu
A Carafe of Ubuntu
 
Join Date: Oct 2007
Location: Europe
Beans: 134
Ubuntu 7.10 Gutsy Gibbon
Re: [SOLVED] phpmyadmin error: The configuration file now needs a secret......

Hi, I have this problem too, but there is a secret passphrase in config.inc.php

This happened when installing nginx and redirecting php to a fastcgi server spawned by the program spawn-fcgi that comes with lighttpd.

What is that passphrase issue?
Railsbuntu is offline   Reply With Quote
Old March 10th, 2008   #4
ddoxey
5 Cups of Ubuntu
 
ddoxey's Avatar
 
Join Date: Sep 2006
Location: San Diego
Beans: 18
Xubuntu 7.10 Gutsy Gibbon
Re: [SOLVED] phpmyadmin error: The configuration file now needs a secret......

I'm going to second bobleny's solution.

I've been seeing this for quite some time and I've just been resorting to CLI mysql because I've been too lazy to resolve it.

Speaking of lazy, for some reason of convenience I changed my Apache configuration to run as me. This is what caused phpmyadmin to go belly up.

The exact fix:
sudo chown -R ddoxey /var/lib/phpmyadmin/

Thanks bobleny.
__________________
Oh, a keyboard. How quaint.
ddoxey is offline   Reply With Quote
Old March 24th, 2008   #5
mafitzpatrick
Just Give Me the Beans!
 
Join Date: May 2006
Location: Edinburgh, UK
Beans: 60
Kubuntu 8.10 Intrepid Ibex
Send a message via MSN to mafitzpatrick
Re: [SOLVED] phpmyadmin error: The configuration file now needs a secret......

Responding to a very old thread, but the actual solution is:

Open /var/lib/phpmyadmin/blowfish_secret.inc.php and you'll find the 'blowfish' config line.
Copy that and paste it into the file at /etc/phpmyadmin/blowfish_secret.inc.php

And it will work.
__________________
Free and open source online testing and education www.spenglr.com
Contribute your own questions and resources at www.spenglr.org
mafitzpatrick is offline   Reply With Quote
Old April 16th, 2008   #6
dsiembab
Just Give Me the Beans!
 
dsiembab's Avatar
 
Join Date: Nov 2007
Beans: 77
Re: [SOLVED] phpmyadmin error: The configuration file now needs a secret......

didn't solve it for me so instead I went into my /var/lib/phpmyadmin/blowfish_secret.inc.php and copied the
Code:
$cfg['blowfish_secret'] = 'your hash here';
and pasted at the bottom of /etc/phpmyadmin/config.inc.php
that seemed to work for me. I didn't have a /etc/phpmyadmin/blowfish_secret.inc.php
of course being a lazy man I used sudo nautilus in terminal
dsiembab is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:46 PM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry