Forbidden error
Posted by: ldpozo68 (---.cpe.net.cable.rogers.com)
Date: January 15, 2013 08:05PM

I am trying to get localhost working so I can access mysql. I keep getting a "forbidden error":

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

I have checked many threads and I am lost as to the solution. On IIS you add the IUSER_machinename to the permissions with read/write access and you are good.

I am new to apache.

I tried adding a user to the config file:

User daemon
Group daemon

User "luis"

didn't work...

I tried changing:


<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>

to



<Directory />
#Options FollowSymLinks
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order deny,allow
Allow from all
</Directory>

didn't work either.

I am lost

Options: ReplyQuote
Re: Forbidden error
Posted by: ldpozo68 (---.cpe.net.cable.rogers.com)
Date: January 15, 2013 09:59PM

forget it - this product is too problematic. Xampp installed cleanly and no additional configuration

Options: ReplyQuote
Re: Forbidden error
Posted by: RiggsFolly (---.as13285.net)
Date: January 15, 2013 10:50PM

Undo all those changes, the second is actually dangerous and majorly insecure.

Try this address:

http://127.0.0.1/phpmyadmin

If that works then you have a IPV4 , IPV6 issue and you should do the following:

check c:\windows\system32\drivers\etc\hosts

It should have

127.0.0.1 localhost

in it and not
::1

Then edit httpd.conf ... use the wampmanager -> Apache -> httpd.conf link to ensure you edit the correct file.

Look for the line

Listen 80

and change it to

Listen 0.0.0.0:80


This will make APache only listen on the IPV4 network. This is so that the security for phpMyAdmin will work properly as that only allows 127.0.0.1 to access the phpmyadmin app. You may well be getting there on the IPV6 network which is ::1 and therefore fails the security check.

It may sound complex but its there to protect those who dont know enough to make there systems secure.

Options: ReplyQuote


Sorry, only registered users may post in this forum.