phpMyAdmin to prompt for user password and user name
Moderator: General Moderators
phpMyAdmin to prompt for user password and user name
I have setup my own IIS webserver with phpMyAdmin. How do set the config.inc.php so that when access the phpMyAdmin index page, the shows a logon for user name and password?
- Maugrim_The_Reaper
- DevNet Master
- Posts: 2704
- Joined: Tue Nov 02, 2004 5:43 am
- Location: Ireland
Thank for the response. Here's what I have.
Now, this will give me an error saying access denied. So which line do I type in "cookie"?
Code: Select all
$cfg['Servers'][$i]['auth_type'] = 'config'; // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user'] = ''; // MySQL user
$cfg['Servers'][$i]['password'] = ''; // MySQL password (only neededOkay, so I should first create those users in my windows Local Users and Groups/Users folder, correct? And after that I will be able to assing these people to the phpMyAdmin folder, correct? Now after I have all that done and created a virtual directory, these settings below should work on the web with a prompt for user name and password, right?
Code: Select all
$cfg['Servers'][$i]['auth_type'] = 'config'; // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user'] = ''; // MySQL user
$cfg['Servers'][$i]['password'] = ''; // MySQL password (only needed- Maugrim_The_Reaper
- DevNet Master
- Posts: 2704
- Joined: Tue Nov 02, 2004 5:43 am
- Location: Ireland
Code: Select all
$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 neededI understand that, but what do I do with the Home Directory tab of the Default Web Site? What should I use for the path of the Default Web Site? Here is the physical path of the folder structure.
D:\wwwroot\myDirectory\
D:\wwwroot\phpMyAdmin\
I want to use myDirectory to setup as the contents of my default website. So if I create myDirectory as the physical path of my VD, it will appear like this in the Default Web Site structure:
Default Web Site
---index.html
---testpage.html
---VD
---phpMyAdmin VD
I'm still confuse as to how I would define which VD to be my root website.
D:\wwwroot\myDirectory\
D:\wwwroot\phpMyAdmin\
I want to use myDirectory to setup as the contents of my default website. So if I create myDirectory as the physical path of my VD, it will appear like this in the Default Web Site structure:
Default Web Site
---index.html
---testpage.html
---VD
---phpMyAdmin VD
I'm still confuse as to how I would define which VD to be my root website.
understand you I do not.
a sample I will provide:
a sample I will provide:
Code: Select all
assume domain is "mydomain.com"
and vd is called "db"
root of web points to d:\inetpub\wwwroot
root of vd (db) points to d:\inetpub\wwwroot\phpMyAdmin <-- This folder has windows permissions on it
both should have default file set to index.php
to hit your main web site by going to www.mydomain.com
hit your phpMyAdmin by going to www.mydomain.com/dbOkay, when I tried what you suggested, I got this error on the page:
The page cannot be displayed
You have attempted to execute a CGI, ISAPI, or other executable program from a directory that does not allow programs to be executed.
--------------------------------------------------------------------------------
Please try the following:
Contact the Web site administrator if you believe this directory should allow execute access.
HTTP Error 403.1 - Forbidden: Execute access is denied.
Internet Information Services (IIS)