Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

I have installed LAMP on ubuntu 12.10, and I want to acced PhpMyAdmin, and I don't know it's URL.

I tried to access this URL : http://localhost/phpmyadmin

But I got this problem :

Not Found

The requested URL /phpmyadmin was not found on this server.

Apache/2.2.22 (Ubuntu) Server at localhost Port 80

And this the instructions I've followed to install lamp:

share|improve this question

4 Answers 4

up vote 5 down vote accepted

Assuming you followed those installation instructions to the letter, phpmyadmin should at least be installed on your computer. However, Apache configuration needs to be added for it to work.

When you installed phpmyadmin, it should have automatically set up its configuration for Apache, making it accessible at http://localhost/phpmyadmin/ (it's possible you may need the trailing slash?).

However, in case it didn't, you can re-run the initial configuration step with the following command:

sudo dpkg-reconfigure -plow phpmyadmin

When changing Apache configuration, it should usually restart Apache automatically, but in case it doesn't, you can always restart Apache with:

sudo service apache2 reload

(Some changes require restart instead of reload).

share|improve this answer
Okey thanks for your help, I just re-run the initial configuration step and then it works, I have another question where can I find the www folder where I can put my php scritps ? – Aimad Majdou Mar 15 '13 at 14:56
www folder is /var/www - you probably should normally ask follow-up questions as new questions because you'll get more people interested in answering them (they get rep) but this is probably too basic a question. Best of luck but you may have quite a learning curve ahead when it comes to things like security and Apache configuration. – thomasrutter Mar 16 '13 at 9:09

After installing phpMyAdmin you need to configure it. There is great documentation here: phpMyAdmin @ Community Ubuntu Documentation

Try it out.

share|improve this answer
The documentation he linked to will install phpmyadmin at this line: sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin. – thomasrutter Mar 15 '13 at 14:37
Yes, you are right, my bad. Nevertheless the link I provided gives more insight to the process of configuring phpMyAdmin – catalesia Mar 15 '13 at 14:42
neon_overload's answer did not solve it on my machine, but the doc you linked to did. Had to include Include /etc/phpmyadmin/apache.conf in the file /etc/apache2/apache2.conf. I'm guessing this is a setup bug. – Pieter Jul 26 '13 at 17:22
While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. – Pilot6 Sep 27 at 14:09

Adding to @thomasrutter answer:

Just in case someone doesn't know this (i didn't for sometime), after running this command to reconfigure phpmyadmin

sudo dpkg-reconfigure -plow phpmyadmin

this screen will appear in your terminal, make sure the * is there inside the brackets [] like this [*] for apache using the Space

enter image description here enter image description here

share|improve this answer

If you are sure that you do have lamp-stack just open up your terminal and type:

edit /etc/apache2/apache2.conf

and paste the following at the end of file:

Include /etc/phpmyadmin/apache.conf
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.