Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Can't open phpMyAdmin

Hybrid View

  1. #1
    Join Date
    Jun 2008
    Beans
    19

    Can't open phpMyAdmin

    I'm trying to install phpMyAdmin to use with my already-installed LAMP server. I used
    Code:
    $ sudo apt-get install phpmyadmin
    ...which downloaded the software successfully, but when I try typing http://localhost/phpMyAdmin, I get a 404. Apache is up and running smoothly, but how can I access phpMyAdmin?

  2. #2
    Join Date
    Apr 2005
    Location
    Massachusetts, USA
    Beans
    1,578
    Distro
    Xubuntu 10.10 Maverick Meerkat

    Re: Can't open phpMyAdmin

    Have you also installed the PHP support?
    Code:
    sudo apt-get install libapache2-mod-php php5-mysql
    Also, by default the phpmyadmin script is installed in /usr/share/phpmyadmin, a directory that isn't access from Apache.

    You'll want to do the following to get http://localhost/phpmyadmin to work
    Code:
    cd /var/www
    sudo ln -s /usr/share/phpmyadmin phpmyadmin
    Last edited by Cypher; July 14th, 2008 at 06:45 PM.
    Registered Linux User #446796
    Registered Ubuntu User #13489

  3. #3
    Join Date
    Feb 2013
    Beans
    1

    Re: Can't open phpMyAdmin

    Quote Originally Posted by Cypher View Post
    Have you also installed the PHP support?
    Code:
    sudo apt-get install libapache2-mod-php php5-mysql
    Also, by default the phpmyadmin script is installed in /usr/share/phpmyadmin, a directory that isn't access from Apache.

    You'll want to do the following to get http://localhost/phpmyadmin to work
    Code:
    cd /var/www
    sudo ln -s /usr/share/phpmyadmin phpmyadmin
    THANKS THANKS THANKS THANKS THANKS THANKS =D>

    This totally worked!

  4. #4
    Join Date
    Jul 2007
    Location
    Magic City of the Plains
    Beans
    Hidden!
    Distro
    Xubuntu 15.10 Wily Werewolf

  5. #5
    Join Date
    Jan 2007
    Location
    CA
    Beans
    846
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Can't open phpMyAdmin

    phpmyadmin should all be lowercase (don't know if that's an issue on your server setup)
    http://localhost/phpmyadmin

    phpmyadmin also has an annoying habit of not putting a link into the web folder (I'm not sure what makes it not do that)

    so you may need to go to your web folder root
    Code:
    cd /var/www/
    and put one there yourself.
    Code:
    sudo ln -s /usr/share/phpmyadmin/ phpmyadmin

  6. #6
    Join Date
    Mar 2007
    Location
    By my gat and PSP
    Beans
    1,373

    Re: Can't open phpMyAdmin

    Code:
    cd /var/www
    sudo ln -s /usr/share/phpmyadmin phpmyadmin
    Thanks that worked for me.
    Last edited by RealG187; March 17th, 2010 at 02:10 AM.

  7. #7
    Join Date
    Mar 2010
    Location
    Forest,Mbeya.
    Beans
    3
    Distro
    Kubuntu

    Re: Can't open phpMyAdmin

    thank you guyz it work....

  8. #8
    Join Date
    Dec 2008
    Beans
    14

    Thumbs up That annoying habit is still there...

    ...and this solution still works

    phpmyadmin also has an annoying habit of not putting a link into the web folder (I'm not sure what makes it not do that)

    so you may need to go to your web folder root

    Code:
    cd /var/www/
    and put one there yourself.

    Code:
    sudo ln -s /usr/share/phpmyadmin/ phpmyadmin

  9. #9
    Join Date
    Feb 2007
    Location
    Wolverhampton, UK
    Beans
    280
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Can't open phpMyAdmin

    Worked a treat, thanks!!

    I had to create the link by hand due to some weird permissions....but still worked!!


  10. #10
    Join Date
    Jul 2010
    Location
    Suffolk
    Beans
    12
    Distro
    Ubuntu Studio 9.10 Karmic Koala

    Re: Can't open phpMyAdmin

    Quote Originally Posted by OffAxis View Post
    phpmyadmin should all be lowercase (don't know if that's an issue on your server setup)
    http://localhost/phpmyadmin

    phpmyadmin also has an annoying habit of not putting a link into the web folder (I'm not sure what makes it not do that)

    so you may need to go to your web folder root
    Code:
    cd /var/www/
    and put one there yourself.
    Code:
    sudo ln -s /usr/share/phpmyadmin/ phpmyadmin
    Thanks for this fix. Amazingly, as of todays date (9 September 2010) the problem is still there to trip up a Ubuntu newbie such as myself. Surely if all users are serving localhost out of /var/www/, why doesn't the phpmyadmin install script put the necessary files into /var/www/phpmyadmin automatically, or at the very least, flag up the issue as a comment in the terminal window during installation?
    Last edited by manObject; September 9th, 2010 at 10:26 PM.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

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