Solved

apache

Posted on 2004-04-13
4
312 Views
Last Modified: 2010-04-20
I Use Phpmyadmin how can I set password whrn go to page phpmyadmin I use apache
Thank
0
Comment
Question by:teera
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 6

Assisted Solution

by:karlwilbur
karlwilbur earned 175 total points
ID: 10813799
You could use an htaccess file. Maybe not the best choice but it's easy. It'd go a li'l somethin' like this.  And a one, and a two, and a one, two, three, four...

change to the dir you want to password protect

cat > .htaccess << "EOF"
AuthUserFile /etc/httpd-users
AuthGroupFile /etc/htttpd-groups
AuthName "Private Directory"
AuthType Basic
require valid-user
Options +Indexes
EOF

Now do the following as root:

(to create empty files)
touch /etc/httpd-users
touch /etc/httpd-groups

(to add users)
htpasswd -b /etc/httpd-users [username] [password]   ...(rinse and repeat)

-Karl
0
 
LVL 44

Accepted Solution

by:
Karl Heinz Kremer earned 175 total points
ID: 10817630
I think that using the MySQL authentication is even simpler than that. Open your config.inc.php file and go to the section that defines your MySQL user id and password and change it to this:

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

You are changing the authentication method from config to http. This will automatically prompt you for your MySQL user ID and password.
0
 
LVL 6

Expert Comment

by:karlwilbur
ID: 10817655
I think your right.  That is even easier. :-)
0
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 10817848
And if you believe the commends, you can even get rid of the last line :-)
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question