Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Showing results for 
Search instead for 
Did you mean: 

phpmyadmin hpux 11.11 & security

Jim Krol

phpmyadmin hpux 11.11 & security

Has anyone got phpmyadmin to work in a secure multiuser environment? I have the HP version of apache 2.X which includes php support and I am using mysql 4.0.x. All works fine until I try to add security. I have tried http security and it keeps telling me "authorization failed". I have heard that there is a problem with the way passwords are encrypted. So the question remains, "has anyone successfully run phpmyadmin in a secure multiuser environment.

Jim Krol
Andrew Cowan
Honored Contributor

Re: phpmyadmin hpux 11.11 & security

Hi Jim,

I've done this on Windows and Linux. I think that the mistake you are making is that you have to change the "" file as follows:

$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['port'] = '';

$cfg['Servers'][$i]['controluser'] = '';
$cfg['Servers'][$i]['controlpass'] = 'passwd';
$cfg['Servers'][$i]['auth_type'] = 'config';

$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'passwd';

You obviously need to alter these values to suit your the users and passwords you have setup. It is a security issue that your password is stored here in "clear" so you should do the following:

1. Create a SQL user with no permissions other than those needed to access MySQL.
2. Protect this file and directory as much as possible.

If you want to make SQL even more secure it is possible to create a special DB user that does not need to have a password entered in this file. I can tell you how to do this, but its quite complicated, and I think you are best getting this working first.

Good luck,
Jim Krol

Re: phpmyadmin hpux 11.11 & security

I have that method of security working fine. What I need to do is set up either http or cookie security for a multi user environment. Whenever I try to access with a user account I get access denied.

Jim Krol