Results 1 to 5 of 5
I installed phpmyadmin by the command below
sudo apt-get install phpmyadmin
but when I opened the web browser and typed in "localhost/phpmyadmin", I got "not found" page.
then I ran ...
- 04-28-2009 #1Just Joined!
- Join Date
- Apr 2009
- Posts
- 19
Phpmyadmin installation problem
I installed phpmyadmin by the command below
sudo apt-get install phpmyadmin
but when I opened the web browser and typed in "localhost/phpmyadmin", I got "not found" page.
then I ran following command:
find / -name phpmyadmin
there were 4 result:
/usr/share/phpmyadmin
/usr/share/doc/phpmyadmin
/etc/phpmyadmin
/var/lib/phpmyadmin
I don't know where is wrong and how to configure it, Thanks for help!
- 04-28-2009 #2Linux Guru
- Join Date
- Oct 2007
- Location
- Tucson AZ
- Posts
- 1,946
phpMyAdmin is a directory not a page so you will get that message. You need a file in that directory to open, usually start with the info.php file. I assume you are using Ubuntu? in which case you should have the phpMyAdmin directory under /var/www/ and in that directory (phpMyAdmin) create this file in a text editor:
Save it in the phpMyAdmin directory as filename info.php. After doing that, enter your previous line in the browser with info.php at the end. You should see a page with a lot of output about php.Code:<?php phpinfo (); ?>
There are numerous tutorials on setting up servers, google 'lamp server on Ubuntu'.
- 04-29-2009 #3Just Joined!
- Join Date
- Apr 2009
- Posts
- 19
Thank you yancek!
The LAMP servers are working, I used "find " to find where the phpmyadmin was installed, and got 4 results. I don't know which one is for phpmyadmin web pages, because the Apache default DocumentRoot is /var/www, if the phpmyadmin is outside of it, then phpmyadmin can't be opened in a web browser.
- 04-29-2009 #4Linux Guru
- Join Date
- Oct 2007
- Location
- Tucson AZ
- Posts
- 1,946
With the DocumentRoot as /var/www, all your files for the server should be there. If you have non-php files, you can put them there but the php files should be in the subdirectory /var/www/phpMyAdmin/ to work.the Apache default DocumentRoot is /var/www, if the phpmyadmin is outside of it, then phpmyadmin can't be opened in a web browser.
Glad you got it working.
- 04-30-2009 #5Just Joined!
- Join Date
- Apr 2009
- Posts
- 19
The question now is phpMyAdmin can't be opened in a web browser, there are 4 results when I run "ind / -name phpmyadmin"
/usr/share/phpmyadmin
/usr/share/doc/phpmyadmin
/etc/phpmyadmin
/var/lib/phpmyadmin
There might be some errors when installing phpmyadmin, for no phpadmin in /var/www, do you think so?


Reply With Quote