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

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.

Popularity: 2% [?]

About Inderjeet

Inderjeet Singh is the founder and main author of Tech2view.com and writes about Technology, SEO, Social Media, Ways to Make Money Online and Security on Internet. Apart from blogger, he is a professional SEO and deals in onpage/offpage optimization aspects of small business websites and blogs. You can catch him at http://twitter.com/singhinder
This entry was posted in Ubuntu and tagged , . Bookmark the permalink.

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

  1. matuhin says:

    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 says:

      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 says:

    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 says:

    Thank you! This was driving me crazy!

  4. Vaibhav Jain says:

    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 says:

    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 says:

    Thanks for this!! Well done!

  7. ahmad says:

    thanks man really it's workes

  8. Announcement says:

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

  9. ali tutku says:

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

  10. Googler says:

    Thank you!!

  11. KillerByte says:

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

    ubuntu 10

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>