|  | 

Ubuntu

Not able to access phpmyadmin in ubuntu – 404 Not Found Error

Share Button

I just installed the LAMP (Linux+Apache+MySQL+PHP) structure on my Ubuntu machine. Installing the structure is pretty easy. But getting it all running seamlessly is the another thing. After installing the things I typed http://127.0.0.1 (http://localhost/) on my Browser and it said “It Works”. But when I tried to open the phpmyadmin (http://localhost/phpmyadmin/) which is used to manage your MySQL backend and tables it shows the 404 Not Found error.

By Default your www directory is created here /var/www and the phpmyadmin configuration files are stored in /usr/share/phpmyadmin. So the trick involved here is to point your the later location or directory from your former directory. To do this open your terminal and run the following command.phpmyadmin_ununtu

sudo ln -s /usr/share/phpmyadmin /var/www

This will create the pointer to /usr/share/phpmyadmin in /var/www

Now open the http://localhost/phpmyadmin/ and you are good to go. If you still face any problems feel free to ask and comment.

Tags
Joshua H.

ABOUT THE AUTHOR

Hey I am Josh and I've been into Journalism since the early ages. Its my passion to create reviews and provide content that people enjoy. I have a big vision for Tech2View and me and my co-writers are constantly working on giving you the latest and most desired content. Thanks for reading - Josh

Hey! Here's a few Posts that I picked for you:

19 Comments

  1. matuhin

    I wonder if it's the best way to solve the problem…
    I've examined the apache.conf in etc/phpmyadmin, there is alias for /phpmyadmin/ to /usr/share/phpmyadmin. Can't understand why alias doesn't work :(

    Your method worked, but maybe there will be problems in future :))) I don't know ) Do you ?

    • Inderjeet

      Try setting the alias to /var/www/phpmyadmin in apache.conf. May be the absolute path works for you.

      I don't think getting the PHPmyadmin work by pointing will create any problems in future.
      Best of lucks.

  2. eddie

    hello,

    I followed your instructions exactly and all i get is a directory listing – can't get phpmyadmin to open. any help – ubuntu 10

    Thanks

  3. anthony

    Thank you! This was driving me crazy!

  4. Vaibhav Jain

    didnt work for me, tried doing the same thing, and it is asking me to save a file. open or save a phtml file type ….

  5. meena

    while saving the file in php i get the following error how to correct it…error as follows "Could not save the file /var/www/hello.php.You do not have the permissions necessary to save the file. Please check that you typed the location correctly and try again."

  6. James

    Thanks for this!! Well done!

  7. ahmad

    thanks man really it's workes

  8. Announcement

    lmao that seems a tad hacky. it tricks your system to think that the pma folder is copied to www

  9. ali tutku

    thank you. you solved my problem. i m a rookie Ubuntu user…

  10. Googler

    Thank you!!

  11. KillerByte

    not working for me, :(( please help me, :sad:

    ubuntu 10

  12. Jess

    Thanks for the help.
    I made the changes, but, Im still having problems with the permissions.
    Before the changes, it throws the 404, now it throw 403 forbidden
    I would to erase for ever the permissions, because Im using linux not for
    production of any kind.

  13. Matt

    Thank you, this worked exactly as you described!

  14. Stefan

    Thanks man, really helped me

  15. pranjal

    thanx inderjeet bro…. u saved a life here.

  16. joey

    hello i follow ur instruction and still this is a get… plsss help thanks thaks

    Not Found

    The requested URL /phpmyadmin was not found on this server.
    Apache/2.2.14 (Ubuntu) Server at localhost Port 80

  17. Niraj

    I did as u said and got the following error!!

    Forbidden

    You don't have permission to access /phpmyadmin on this server.

  18. sube

    Hey
    I did what u said but still it says Not Found what should i do?

POST YOUR COMMENTS

Your email address will not be published. Required fields are marked *

Name *

Email *

Website

Tech2View.com

Tech2View - Simplifying Tech Since 2007

Hey I’m Joshua H!

Hey I am Josh and I've been into Journalism since the early ages. Its my passion to create reviews and provide content that people enjoy. I have a big vision for Tech2View and me and my co-writers are constantly working on giving you the latest and most desired content. Thanks for reading - Josh

Tech2View on Social Media

We’re on Facebook too!