LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 04-04-2006, 04:31 PM   #1
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Rep: Reputation: 51
configure phpmyadmin on debian sarge


hi

I have apache2 and phpmyadmin installed on debian sarge stable:
Code:
# dpkg -l | grep apache2
ii  apache2        2.0.54-5       next generation, scalable, extendable web se
ii  apache2-common 2.0.54-5       next generation, scalable, extendable web se
ii  apache2-doc    2.0.54-5       documentation for apache2
ii  apache2-mpm-pr 2.0.54-5       traditional model for Apache2
ii  apache2-utils  2.0.54-5       utility programs for webservers
ii  libapache2-mod 1.999.21-1     Integration of perl with the Apache2 web ser
ii  libapache2-mod 4.3.10-16      server-side, HTML-embedded scripting languag
# dpkg -l | grep phpmyadmin
ii  phpmyadmin     2.6.2-3sarge1  set of PHP-scripts to administrate MySQL ove
# dpkg -l | grep php4
ii  php4           4.3.10-16      server-side, HTML-embedded scripting languag
ii  php4-cli       4.3.10-16      command-line interpreter for the php4 script
ii  php4-common    4.3.10-16      Common files for packages built from the php
ii  php4-mysql     4.3.10-16      MySQL module for php4
ii  php4-snmp      4.3.10-16      SNMP module for php4
I have 5 different domains and 5 different virual servers pointed to these domains.
every domain should has its own mysql database and needs the access via phpmyadmin.

in /usr/share/phpmyadmin/config.inc.php I have the following authentication:
Code:
$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)
$cfg['Servers'][$i]['only_db']       = '';          // If set to a db-name, only
I've added in /etc/apache2/sites-enabled/000-default the following entries:
Code:
# Provide an alias to phpmyadmin
Alias /phpmyadmin /usr/share/phpmyadmin
<Directory /usr/share/phpmyadmin>
        Order allow,deny
	allow from all
</Directory>
now every user, even root can access via phpmyadmin
and it doesn't matter which domain or ip address (I mean all domains pointed to my webserver) is in the browser.
howto prevent that ?
the user shuold access via phpmyadmin only using his own domain in the browser.

my second problem is howto block mysql admin (root) user on phpmyadmin
for a security reason ?

Last edited by cccc; 04-05-2006 at 07:28 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ndiswrapper-1.10 debian debian sarge BCM4306 802.11b/g ]x-k[ Linux - Wireless Networking 3 03-12-2006 12:42 AM
Configure RTL8169 in Debian Sarge jaccon Linux - Hardware 1 06-14-2005 08:40 PM
how to configure sound in GNU/debian sarge kernel 2.6 for toshiba satellite m30x-160 manda-chuva Linux - Laptop and Netbook 1 04-13-2005 08:47 PM
Start DHCPd and configure iptables on boot (Debian Sarge) Qis Linux - Networking 6 03-02-2005 05:34 AM
Debian sarge phoenix_wolf Linux - Newbie 4 12-05-2004 03:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 11:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration