Skip to ContentSkip to Footer
Start of content
- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - Linux
- >
- General
- >
- configure phpMyAdmin
General
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Latin America
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-05-2006 12:23 PM
04-05-2006 12:23 PM
configure phpMyAdmin
hi
I have apache2 and phpmyadmin installed on debian sarge stable:
# 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:
$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:
# Provide an alias to phpmyadmin
Alias /phpmyadmin /usr/share/phpmyadmin
Order allow,deny
allow from all
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 should 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 ?
I have apache2 and phpmyadmin installed on debian sarge stable:
# 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:
$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:
# Provide an alias to phpmyadmin
Alias /phpmyadmin /usr/share/phpmyadmin
Order allow,deny
allow from all
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 should 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 ?
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-05-2006 01:13 PM
04-05-2006 01:13 PM
Re: configure phpMyAdmin
Shalom Chris,
You need to generate a .htaccess database for the phpadmin with the .htpasswd command.
This will permit you to limit the users to their own files and not others.
root will still be able to access all via the command interface but not phpadmin.
To confirm the correct httpd.conf config:
http://www.mdz.dk/apacheUK.html
Reference links that are helpful:
http://www.tiffanybbrown.com/articles/viewarticle.php/66
http://codex.wordpress.org/Glossary
I don't know which link is best. My knowledge is minimal in this area, I just look at the net every time I have to do it.
SEP
You need to generate a .htaccess database for the phpadmin with the .htpasswd command.
This will permit you to limit the users to their own files and not others.
root will still be able to access all via the command interface but not phpadmin.
To confirm the correct httpd.conf config:
http://www.mdz.dk/apacheUK.html
Reference links that are helpful:
http://www.tiffanybbrown.com/articles/viewarticle.php/66
http://codex.wordpress.org/Glossary
I don't know which link is best. My knowledge is minimal in this area, I just look at the net every time I have to do it.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
End of content
United States
Hewlett Packard Enterprise International
Communities
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP