Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

config.inc.php

Posted on 2004-10-26
4
Medium Priority
?
363 Views
Last Modified: 2010-04-20
How can I protect this file (config.inc.php) , This file have  a username and password  But it need to use for phpmyadmin
I am new for linux Thank you
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
  • 3
4 Comments
 
LVL 3

Expert Comment

by:steve918
ID: 12417612
If your worried about visitors to the site, they will get a blank page if they try to load /MyAdmin/config.inc.php
If your worried about other shell account users,  just set the auth_type variable to cookie or http instead of config
0
 
LVL 3

Expert Comment

by:steve918
ID: 12417621
by setting the auth_type...
cookie/http
you'll have to login each time you open MyAdmin, but you won't have to store any passwords in the config file.

The best way to protect your passwords are to keep them out of your config files altogether.
0
 
LVL 3

Accepted Solution

by:
steve918 earned 1400 total points
ID: 12417625
Here's my config.inc.php, notice that it says "MySQL password (only needed with 'config' auth_type)

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

Expert Comment

by:sylvester-braveheart
ID: 12420673
Avoid using "config" type of authentication for "$cfg['Servers'][$i]['auth_type']" because it will force you to input a password in config.inc.php.
I will recommend the "cookie" or "http" type ... the "cookie" model is easier to setup
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

636 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