You don't have permission to access /phpmyadmin/ on this server.
Posted by: digicomm (195.54.242.---)
Date: December 16, 2012 06:42PM

Hi everyone.... As always there is something to really get you going

I keep getting the message ... 'You don't have permission to access /phpmyadmin/ on this server'
The Wampserver icon is green and all services installed fine, but shows server offline...?

I have tried starting all services, but to no avail...


I am using Windows Vista, on a 32 bit machine.
WampServer Version 2.2

Wampserver auto loads Firefox latest version.

Any advice, or assistance would be very welcome, thank you

Regards, Steve

Options: ReplyQuote
Re: You don't have permission to access /phpmyadmin/ on this server.
Posted by: RiggsFolly (---.as13285.net)
Date: December 16, 2012 07:25PM

Server Offline/Online is irrelevant.

Online means wamp changes the httpd.conf to allow access from any IP address
Offline means it only allows access from 127.0.0.1 i.e. localhost
Offline is fine while you develop a site and keeps prying eye out of your system.



This is probably an IPV4 / IPV6 issue.

Wamp comes configured expecting you to use IPV4, but W7 and W8 have IPV6 available as well as IPV4.


Make the following changes
httpd.conf
Listen 80 to Listen 0.0.0.0:80

this tells Apache to listen on on the IPV4 network


Also edit your hosts file

c:\windows\system32\drivers\etc\hosts ( no extension )


Make sure you have this line existing in the file

127.0.0.1 localhost

If you have this line comment it out with a '#'
::1 localhost


===========================================================================

The hosts file is protected by windows, in order to save it you must have Administrator privilages.
Vista/W7/W8 you may think you are an Administrator BUT YOU ARE NOT.

To successfully save the hosts file do this to launch your editor with Admin Privilages.

Locate your editors icon on the desktop or from the Start menus ( notepad will do if you have nothing else )
left click + shift over your chosen editor icon - will show a menu.
select "Run As Administrator" from the menu.
Navigate your editor to the c:\windows\system32\drivers\etc\hosts file.

When you have made changes you will now be allowed to save them.

Options: ReplyQuote
Re: You don't have permission to access /phpmyadmin/ on this server.
Posted by: digicomm (195.54.242.---)
Date: December 16, 2012 08:02PM

Hi again...

Well, it worked first time with the hash tag comment for ::1 localhost.

I also accept the point you made about online/offline, that makes perfect sense now.

I will make those other changes to httpd.conf file too...

Once more, many thanks for you advice and assistance.
Steep learning curve sometimes, but the effort was worth it...

Kind Regards - Steve

Options: ReplyQuote
Re: You don't have permission to access /phpmyadmin/ on this server.
Posted by: RiggsFolly (---.as13285.net)
Date: December 16, 2012 08:07PM

You are more than welcome.

Options: ReplyQuote
Re: You don't have permission to access /phpmyadmin/ on this server.
Posted by: wingman1985 (114.224.26.---)
Date: December 18, 2012 11:38AM

RiggsFolly Wrote:
-------------------------------------------------------
> Server Offline/Online is irrelevant.
>
> Online means wamp changes the httpd.conf to allow
> access from any IP address
> Offline means it only allows access from 127.0.0.1
> i.e. localhost
> Offline is fine while you develop a site and keeps
> prying eye out of your system.
>
>
>
> This is probably an IPV4 / IPV6 issue.
>
> Wamp comes configured expecting you to use IPV4,
> but W7 and W8 have IPV6 available as well as
> IPV4.
>
>
> Make the following changes
> httpd.conf
> Listen 80 to Listen 0.0.0.0:80
>
> this tells Apache to listen on on the IPV4
> network
>
>
> Also edit your hosts file
>
> c:\windows\system32\drivers\etc\hosts ( no
> extension )
>
>
> Make sure you have this line existing in the file
>
> 127.0.0.1 localhost
>
> If you have this line comment it out with a '#'
> ::1 localhost
>
>
> ==================================================
> =========================
>
> The hosts file is protected by windows, in order
> to save it you must have Administrator
> privilages.
> Vista/W7/W8 you may think you are an Administrator
> BUT YOU ARE NOT.
>
> To successfully save the hosts file do this to
> launch your editor with Admin Privilages.
>
> Locate your editors icon on the desktop or from
> the Start menus ( notepad will do if you have
> nothing else )
> left click + shift over your chosen editor icon -
> will show a menu.
> select "Run As Administrator" from the menu.
> Navigate your editor to the
> c:\windows\system32\drivers\etc\hosts file.
>
> When you have made changes you will now be allowed
> to save them.

I have two questions because I encountered the same issue:

"Make the following changes
> httpd.conf
> Listen 80 to Listen 0.0.0.0:80 "

How do you make the change? I located the httpd.conf file and does "Listen 80 to Listen 0.0.0.0:80" mean you change "listen 80" to " Listen 0.0.0.0:80"?

Second: "If you have this line comment it out with a '#'
> ::1 localhost"

How do I do this?

Thanks.

Options: ReplyQuote
Re: You don't have permission to access /phpmyadmin/ on this server.
Posted by: shanto_xp (---.netvigator.com)
Date: December 18, 2012 05:00PM

Hi,

Just need a proper entry to alias .

For example if your wamp is installed in c:\

find out alias in : C:\wamp\alias\phpmyadmin.conf

---------------------
Alias /phpmyadmin "c:/wamp/apps/phpmyadmin3.5.1/"


<Directory "c:/APP/wamp/apps/phpmyadmin3.5.1/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Require local
</Directory>
--------------------

Hope that it will solve.

Ahsan
RHCE,OCP

Options: ReplyQuote
Re: You don't have permission to access /phpmyadmin/ on this server.
Posted by: RiggsFolly (---.as13285.net)
Date: December 18, 2012 10:47PM

Wingman,

Q1. How do you make the change? I located the httpd.conf file and does "Listen 80 to Listen 0.0.0.0:80" mean you change "listen 80" to " Listen 0.0.0.0:80"?

use the wamp manager links:
wampmanager -> Apache -> httpd.conf ( to edit the correct httpd.conf file )

You should find a line like this
Listen 80

change it to look like this

Listen 0.0.0.0.:80


Q2. Second: "If you have this line comment it out with a '#'
> ::1 localhost"

With an editor or notepad if that all you have, eit the file
c:\windows\system32\drivers\etc\hosts

If you have never edited this file before here are some helpful notes on how to do it and why you need to do it.

================================================================
The hosts file is protected by windows, in order to save it you must have Administrator privilages.
Vista/W7/W8 you may think you are an Administrator BUT YOU ARE NOT.

To successfully save the hosts file do this to launch your editor with Admin Privilages.

Locate your editors icon on the desktop or from the Start menus ( notepad will do if you have nothing else )
left click + shift over your chosen editor icon - will show a menu.
select "Run As Administrator" from the menu.
Navigate your editor to the c:\windows\system32\drivers\etc\hosts file.

When you have made changes you will now be allowed to save them.
===============================================================

Options: ReplyQuote
Re: You don't have permission to access /phpmyadmin/ on this server.
Posted by: wingman1985 (180.114.247.---)
Date: December 24, 2012 12:16PM

Very helpful!Thanks!

Options: ReplyQuote


Sorry, only registered users may post in this forum.