Results 1 to 3 of 3
Greetings I was reviewing the settings for my LAMP server on Debian Lenny. I had set it up using How To Set Up A Ubuntu/Debian LAMP Server | HowtoForge - ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 09-09-2009 #1
apache2 and phpmyadmin
I was curious about the following instruction re: phpmyadmin
To set up under Apache all you need to do is include the following line in /etc/apache2/apache2.conf:
now phpmyadmin seems to work just fine without this instruction, but I was wondering what it was all about.
- 09-10-2009 #2
- Join Date
- Jul 2009
It's probably just an "Alias" command. Did you put phpMyAdmin inside of web folder? Otherwise you needed to modify the httpd.conf to setup an Alias like:
alias /dbadmin /opt/phpMyAdmin-1.2.3
or something like that.
If you didn't you should have. You really shouldn't put "apps" under your web directory. You should create them outside and linked them in. Although it's just being "clean" rather than anything else.
You may also wrap the external directory in a <Directory> tag, like:
deny from all
allow from 192.168.1. (or whatever your subnet is)
So that it only allows you to go into phpmyadmin from your home network
- 09-10-2009 #3
anyways I just did the default install using Debian package manager apt. I eventually found the file index.php under /usr/share/phpmyadmin/ which I suppose is the initial php script that gets called. Certainly there is nothing in the root directory of apache.
Seeing that phpmyadmin works fine, and the url is http://192.168.0.xxx/phpmyadmin the fact that there is nothing in the webserver root directory would imply that there is indeed an alias of some kind set up somewhere, even though i didn't specify one as per my original post. I can say that during the install of phpmyadmin, I was asked to specify the webserver that it was to run in, so I guess whatever references there are were set up at that stage.
Often I find slight differences between installation instructions and the actual install, even when the instructions do use the same package manager as I use.
Thanks for the tips.