Protect phpMyAdmin On An ISPConfig 3 Server (Debian)
|
Submitted by Hans (Contact Author) (Forums) on Fri, 2010-05-21 14:30. :: Debian | ISPConfig | Control Panels
Protect phpMyAdmin On An ISPConfig 3 Server (Debian)
With this small howto I explain how to protect your phpmyadmin installation on your Debian server with ISPConfig3 against hack attempts as much as possible. I assume that you already have an ISPConfig3 server running on Debian, which has been set up according to this howto and that phpmyadmin has been installed from the Debian repository into the directory /usr/share/phpmyadmin. With this default setup you can access phpMyAdmin via: http://www.anywebsiteonyourserver.tld/phpmyadmin, which we're going to change for security reasons. We will protect our phpmyadmin installation by: - .htpasswd file I do not issue any guarantee that this will work for you! Here we go: Login into your ISPConfig3 server as root and execute: cd /usr/share/phpmyadmin Type htpasswd -c .htpasswd username to create the .htpasswd file and add "username" to list of authorized users. The program will initially prompt you for a password and then ask you to verify it. Now edit the file /etc/apache2/conf.d/phpmyadmin.conf and modify: # phpMyAdmin default Apache configuration Alias /phpmyadmin /usr/share/phpmyadmin <Directory /usr/share/phpmyadmin> into: # phpMyAdmin default Apache configuration Alias /myalias /usr/share/phpmyadmin <Directory /usr/share/phpmyadmin> Reload Apache2 by executing the command: /etc/init.d/apache2 reload Now log into ISPConfig3, and click on "SYSTEM" > "Interface Config". In the PHPMyAdmin URL field On the "Sites" tab, add your alias for /phpmyadmin, which is in this example: /myalias Finaly Click on "Save" and you're done. To verify what we've done, within your webbrowser visit your phpMyAdmin installation at: http://www.anywebsiteonyourserver.tld/myalias or within ISPConfig3 itself, just click on the phpmyadmin icon after the database name.
|
www.seamlessenterprise.com
One number. One voicemail. Seize the lead. Sprint Mobile Integration.
www.seamlessenterprise.com
One Number. One Voicemail.
Make it easier for clients to reach you. Turn your desk phone and mobile phone into one with Sprint Mobile Integration.
www.seamlessenterprise.com
One number. One voicemail. Sprint Mobile Integration.
www.seamlessenterprise.com
One number. one voicemail. Seize the lead with Sprint. Learn more
AT&T Synaptic Compute as a Service. Boost your power on demand.
Trial: IBM Cognos Express Reporting, Analysis & Planning
Learn benefits of Simpana software.
View the Gartner Video
Sprint 4G - The Ultimate Mobile Broadband
Click here
SAP-Business Objects Crystal Reports Server
Complete reporting without hidden costs. Free Trial







Recent comments
16 hours 24 min ago
18 hours 21 min ago
18 hours 39 min ago
1 day 8 hours ago
1 day 14 hours ago
2 days 2 hours ago
2 days 2 hours ago
2 days 6 hours ago
2 days 10 hours ago
2 days 11 hours ago