0

I installed Apache2 and PHP with success, but when I want visit http://localhost/phpmyadmin I got the following error:

Not Found

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

Apache/2.4.7 (Ubuntu) Server at localhost Port 80

How can I fix this, because I need it working before I can continue.


Edit:
Now I have a new error:

Forbidden

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

Apache/2.4.7 (Ubuntu) Server at localhost Port 80

9
  • I tried that solution, but it wasn't working for me.
    – Korkel
    Jun 1, 2014 at 17:00
  • Does localhost work? That is, a simple php file in localhost?
    – Parto
    Jun 1, 2014 at 17:05
  • 1
    You're running 14.04 right? If so, try running this command: sudo ln -s /usr/share/phpmyadmin /var/www/html/phpmyadmin
    – Parto
    Jun 1, 2014 at 17:15
  • Still the same error.
    – Korkel
    Jun 1, 2014 at 17:18

2 Answers 2

4

If you used the command...

sudo apt-get install lamp-server

phpMyAdmin will not automatically install.

You need to run:

sudo apt-get install phpmyadmin

And for future reference, I install lamp servers using this command:

sudo apt-get install lamp-server^ phpmyadmin
4
  • I tried that already, but not helping.
    – Korkel
    Jun 1, 2014 at 16:50
  • Is phpmyadmin.conf in /etc/apache2/conf-available? this might be a dumb question.. but when you go to localhost does anything come up?
    – Dan
    Jun 1, 2014 at 16:51
  • In Localhost yes, I added already something. How do I chek?
    – Korkel
    Jun 1, 2014 at 16:54
  • sudo apt-get install lamp-server^ phpmyadmin command solved my problem. Jan 25, 2015 at 10:43
2

I did the following to fix it:

sudo apt-get purge phpmyadmin -y

Followed by:

sudo apt-get install phpmyadmin -y

Now I can access http://localhost/phpmyadmin/

Not the answer you're looking for? Browse other questions tagged .