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

Korkel
  • 1,158
  • 1
  • 10
  • 26
  • I tried that solution, but it wasn't working for me. – Korkel Jun 01 '14 at 17:00
  • Does localhost work? That is, a simple php file in localhost? – Parto Jun 01 '14 at 17:05
  • http://www.imgdumper.nl/uploads7/538b5e3a2520f/538b5e3a16fa3-Schermafdruk_van_2014-06-01_19:08:53.png – Korkel Jun 01 '14 at 17:09
  • 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 01 '14 at 17:15
  • Still the same error. – Korkel Jun 01 '14 at 17:18
  • That's simple to fix - see [this question](http://askubuntu.com/questions/19898/whats-the-simplest-way-to-edit-and-add-files-to-var-www) though for your case it will be `/var/www/html` – Parto Jun 01 '14 at 17:55
  • Still the 403 error. – Korkel Jun 01 '14 at 17:57
  • Let us [continue this discussion in chat](http://chat.stackexchange.com/rooms/14854/discussion-between-parto-and-korkel). – Parto Jun 01 '14 at 17:58
  • Does [Forbidden :You don't have permission to access /phpmyadmin on this server](http://stackoverflow.com/questions/23235363/forbidden-you-dont-have-permission-to-access-phpmyadmin-on-this-server) (on [Stack Overflow](http://stackoverflow.com)) help with this? There's also [Help with LAMP sever](http://askubuntu.com/q/64183/22949) here on Ask Ubuntu, which might be relevant. – Eliah Kagan Jul 24 '14 at 00:02

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