Find the answer to your Linux question:
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 ...
  1. #1
    Just 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!

  2. #2
    Linux 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:

    Code:
    <?php
    phpinfo ();
    ?>
    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.

    There are numerous tutorials on setting up servers, google 'lamp server on Ubuntu'.

  3. #3
    Just 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.

  4. #4
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    1,946
    the Apache default DocumentRoot is /var/www, if the phpmyadmin is outside of it, then phpmyadmin can't be opened in a web browser.
    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.

    Glad you got it working.

  5. #5
    Just 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?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...