Koozali.org: home of the SME Server

phpMyAdmin 2.8.2 error message

arflinux

phpMyAdmin 2.8.2 error message
« on: September 21, 2006, 02:37:11 AM »
Hi  all,

have install  phpmyadmin_multiuser from sleepy SME
but when i log in https://xxx.xxx.xxx.xxx/myadmin/
i get the following error message error message is the same for firefox and internet explorer

Cookies must be enabled past this point.

Invalid hostname for server 2. Please review your configuration.

Invalid hostname for server 3. Please review your configuration.

can any body tell what is going on and how to fix it

Thanks
Andrew

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Re: phpMyAdmin 2.8.2 error message
« Reply #1 on: September 21, 2006, 03:23:29 AM »
Quote from: "arflinux"


Cookies must be enabled past this point.

can any body tell what is going on and how to fix it

Thanks
Andrew


I think cookies are your only problem. Do you have them turned off in your browsers or are you running some sort of internet security/anti virus software.
Regards,
William

IF I give advise.. It's only if it was me....

arflinux

phpMyAdmin 2.8.2 error message
« Reply #2 on: September 21, 2006, 06:10:32 AM »
Cookies are turned on

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
phpMyAdmin 2.8.2 error message
« Reply #3 on: September 21, 2006, 07:04:37 AM »
Something here might help....

http://wiki.cihar.com/pma/cookie_login


Oh, any popup blockers installed?
Regards,
William

IF I give advise.. It's only if it was me....

Offline Teviot

  • *
  • 610
  • +0/-0
phpMyAdmin 2.8.2 error message
« Reply #4 on: September 21, 2006, 07:48:23 AM »
I also have an error with this contrib.  The error I get is
Quote
#1045 - Access denied for user 'root'@'localhost' (using password: YES)


I get the same error when using admin as the login

Can somebody point me in the right direction to fix this as I don't know what to do?

Regards
Adrian
Regards
M0GLJ
......................................................
I am new to SAIL SME Server v8b6 and have been using SME for many years.
I have already done some research and only ask questions if I still can't work it out.

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
phpMyAdmin 2.8.2 error message
« Reply #5 on: September 21, 2006, 08:39:00 AM »
This is phpMyAdmin general not SME specific.

phpMyAdmin, at it's simplest best (single user) requires a MySQL user that has all privileges to connect.

So, at the shell,

Code: [Select]
mysql -uroot

now, at the mysql> prompt

Code: [Select]

mysql> GRANT ALL PRIVILEGES ON *.* TO 'monty'@'localhost'
     > IDENTIFIED BY 'some_pass' WITH GRANT OPTION;
     > quit


Now we add the above user (monty) and password (some_pass) to the phpmyadmin config file - config.inc.php

It maybe located in this directory..
/opt/administration/phpmyadminmulti

The parts to edit are

Code: [Select]
$cfg['Servers'][$i]['auth_type']     = 'cookie';    // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user']          = '';          // MySQL user
$cfg['Servers'][$i]['password']      = '';          // MySQL password (only needed


Between the ' ' place config monty some_pass

Code: [Select]
$cfg['Servers'][$i]['auth_type']     = 'config';    // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user']          = 'monty';          // MySQL user
$cfg['Servers'][$i]['password']      = 'some_pass';          // MySQL password (only needed


Save and now go to your phpmysql url.

It is now setup in the most basic way.

Now that it working, create another user that only you know.

Exit out and edit config.inc.php to how it's shown below. cookie blank blank

Code: [Select]
$cfg['Servers'][$i]['auth_type']     = 'cookie';    // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user']          = '';          // MySQL user
$cfg['Servers'][$i]['password']      = '';          // MySQL password (only needed


Also, ensure this line is at the top somewhere...
Code: [Select]
$cfg['blowfish_secret'] = 'xf5g4+6x4g6n4x+fg4n+x4+9n-xg-h*-+-*-*+89gx-+8n-xgh-+x8-gd-xdg4n+-xgx7*g+-nx-g7n+';
Save and exit and return to your pma url.
Now login as the user you just created and delete the monty dude :)

You should now have something looking like this..
My phpMyAdmin
Regards,
William

IF I give advise.. It's only if it was me....

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Re: phpMyAdmin 2.8.2 error message
« Reply #6 on: September 29, 2006, 11:13:40 AM »
Quote from: "arflinux"
Hi  all,

have install  phpmyadmin_multiuser from sleepy SME
but when i log in https://xxx.xxx.xxx.xxx/myadmin/
i get the following error message error message is the same for firefox and internet explorer

Cookies must be enabled past this point.

Invalid hostname for server 2. Please review your configuration.

Invalid hostname for server 3. Please review your configuration.

can any body tell what is going on and how to fix it

Thanks
Andrew


There is no problem. Just login as admin/admin I just revisited that rpm.
Regards,
William

IF I give advise.. It's only if it was me....