droidus
Posts: 264
Joined: Sat Feb 02, 2013 4:09 am

phpmyadmin forbidden access error

Sun Sep 25, 2016 8:11 pm

When I try to access phpmyadmin, I get this:

Code: Select all

Forbidden

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

Apache/2.2.22 (Debian) Server at 192.168.1.7 Port 80

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: phpmyadmin forbidden access error

Sun Sep 25, 2016 10:59 pm

Take a look in /var/log/apache2/error.log
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

droidus
Posts: 264
Joined: Sat Feb 02, 2013 4:09 am

Re: phpmyadmin forbidden access error

Sun Sep 25, 2016 11:11 pm

I can't seem to access the apache2 folder without having to switch to root:

Code: Select all

drwxr-x--- 2 root       adm            4096 Sep 25 15:08 apache2
Should it be locked down like this? I don't remember creating the root password, so not sure what it is....

User avatar
rpdom
Posts: 17173
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: phpmyadmin forbidden access error

Mon Sep 26, 2016 5:41 am

droidus wrote:I can't seem to access the apache2 folder without having to switch to root:

Code: Select all

drwxr-x--- 2 root       adm            4096 Sep 25 15:08 apache2
Should it be locked down like this? I don't remember creating the root password, so not sure what it is....
Yes. It should be locked down like that for security reasons.

The default root account on a Pi doesn't have a valid password, but you can run commands as the root user by putting "sudo " in front of them.

However, you shouldn't see that particular error if you have installed phpmyadmin correctly and have a valid MySQL user and password.

droidus
Posts: 264
Joined: Sat Feb 02, 2013 4:09 am

Re: phpmyadmin forbidden access error

Wed Sep 28, 2016 12:14 am

I do have a mysql user.
Do I need to re-install this then?

aleifuu
Posts: 18
Joined: Sat Sep 17, 2016 9:50 am

Re: phpmyadmin forbidden access error

Wed Sep 28, 2016 12:41 am

I think your options are either you can sudo apt-get update and upgrade and see what happens

If that doesnt work too, you'd probably want to reinstall ( or better still purge the installation first and then after reinstall )

Return to “Beginners”