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

sotirov
  • 3,169
Korkel
  • 1,158
  • 1
  • 10
  • 26

2 Answers2

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
Dan
  • 151
  • 1
  • 1
  • 8
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/

Korkel
  • 1,158
  • 1
  • 10
  • 26