Results 1 to 5 of 5
I just installed a Debian server. I've got everything just about ready to go but I cannot figure out how to password protect the phpmyadmin page. I want to password ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 11-21-2007 #1
Password protect phpmyadmin altogether
I just installed a Debian server. I've got everything just about ready to go but I cannot figure out how to password protect the phpmyadmin page. I want to password protect it completely so that users who visit my site are not even brought into the login page.
There is no actual directory but when I type in phpmyadmin I am brought to the login page.
I have used my Apache2.conf... since I have access to it I see no need to use .htacess. I have completed the necessary steps to password protect a directory but since phpmyadmin isn't actually a directory or even a file in my html directories, it isn't working properly. This is my assumption. Please tell me if I am going about this the correct way.
Thanks
- 11-22-2007 #2
it is serving from a folder on your computer, and apache knows where that folder is. if you installed from apt then check /etc/apache2/sites-enabled and check your conf files there and see if you have one for phpmyadmin. that will help you to find out where to use the .htaccess file.
- 11-22-2007 #3
No go...
I looked in sites-enable and sites-available but did not see anything for phpmyadmin or mysql. Any other ideas?
Would it be bad to go about it this way?
Create a symbolic link to wherever http://domain.com/phpmyadmin leads and then password protect it as a file or directory?
- 11-22-2007 #4
if apache is already serving phpmyadmin then it is either symlinked already or there is a conf file somehere that references it, or the phpmyadmin folder is in the doc root of your apache, so creating another symlink would be double work and probably counteraffective.
- 11-22-2007 #5
[solved]
I found where to change the directory and have succesfully have done so. Now the symbolic link I created is password protected and leads to phpmyadmin. However, the new alias address is unprotected.
Thanks for the help.
Here is my solution for anyone trying figure this out. I could not find one guide that mentioned how to do this the correct way.
SOLUTION:
- The file that determines what the phpmyadmin web address will be is /etc/phpmyadmin/apache.conf and all you need to do is comment out the line that says:
Code:Alias /phpmyadmin /usr/share/phpmyadmin
- Now that there is no link to phpmyadmin from the web you must create a symbolic link. Goto the directory you wish to have phpmyadmin accessed from and type:
This creates a link to /usr/share/phpmyadmin and anything that you do to the link /phpmyadmin will effect the actual directory. So don't delete anything inside phpmyadmin unless you mean it!Code:ln -s /urs/share/phpmyadmin/ phpmyadmin
- The file that determines what the phpmyadmin web address will be is /etc/phpmyadmin/apache.conf and all you need to do is comment out the line that says:


Reply With Quote
