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

Whenever I install phpmyadmin it installs to

root

instead of

var/www

Can anyone tell me why this is happening? I can fix it by moving the files but it's a weird one.

3 Replies

How are you installing PHPMyAdmin?

If you're downloading the PHPMyAdmin tarball from their website, it'll extract it to the current working directory. Once you've extracted it, if you move the folder to your webroot, you'll be able to access it then. Make sure you adjust the permissions accordingly.

You should install phpmyadmin from your distro's repositories to ensure that it gets updated with the rest of your software. For example, Ubuntu's copy of phpmyadmin will install into /var/www.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct