Pages: 12Next
Current Page: 1 of 2
Wamp and windows 8 cp
Posted by: ckrudelux (---.223.216.81.static.rny.siw.siwnet.net)
Date: April 10, 2012 07:08AM

Have been reading around to get my wamp installation working on my windows 8.

Many of the topics have told me to uncomment the 127.0.0.1 in the "hosts" file. The problem I have is what I have no permissions to any file on the server using localhost in the browser.

In my hosts file 127.0.0.1 is just how it should be, haven't changed anything so no uncommeting for me.

What's working is 127.0.0.1 looking at the log I found that by typing localhost will make you access the server by ::1 this is not set in my hosts file, adding ::1 localhost to hosts didn't help.

By putting the server online I solve the issue cause then it doesn't matter who is requesting the page. I still don't have access to phpmyadmin etc. this can be solved by adding:
Allow from ::1

into the phpmyadmin.conf in the alias folder.

Hope this helps anyone getting wamp running this is just a quick and dirty fix, maybe someone else could make as nicer long term fix below.

Options: ReplyQuote
Re: Wamp and windows 8 cp
Posted by: froozt (---.182.eidsiva.net)
Date: April 10, 2012 01:13PM

of some weird reason I cant get it to work, my file looks like this:

127.0.0.1 localhost
::1 localhost

Can you see whats wrong?

Options: ReplyQuote
Re: Wamp and windows 8 cp
Posted by: ckrudelux (---.223.216.81.static.rny.siw.siwnet.net)
Date: April 10, 2012 02:10PM

froozt Wrote:
-------------------------------------------------------
> of some weird reason I cant get it to work, my
> file looks like this:
>
> 127.0.0.1 localhost
> ::1 localhost
>
> Can you see whats wrong?


As I said if you can access your server with 127.0.0.1 then localhost is most likely using ::1 this should be added to the settings of wamp and not the hosts file.

I don't know how to change localhost to be 127.0.0.1 in windows so for now only thing I can say is to add ::1 to wamp/apache settings. you can find phpmyadmins apache settings under c:/wamp/alias

Options: ReplyQuote
Re: Wamp and windows 8 cp
Posted by: RiggsFolly (---.as13285.net)
Date: April 10, 2012 09:57PM

Remove the ::1 localhost entry from the HOSTS file.

Options: ReplyQuote
Re: Wamp and windows 8 cp
Posted by: froozt (---.251.34.95.customer.cdi.no)
Date: April 10, 2012 10:24PM

So the phpmyadmin.conf file should look like this?

Alias /phpmyadmin "c:/wamp/apps/phpmyadmin3.3.8/"

# to give access to phpmyadmin from outside
# replace the lines
#
# Order Deny,Allow
# Deny from all
# Allow from 127.0.0.1
#
# by
#
# Order Allow,Deny
# Allow from all
#

<Directory "c:/wamp/apps/phpmyadmin3.3.8/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Deny from all
Allow 127.0.0.1
Allow from ::1
</Directory>

Options: ReplyQuote
Re: Wamp and windows 8 cp
Posted by: RiggsFolly (---.as13285.net)
Date: April 11, 2012 04:55PM

ckrudelux,


I installed WAMP (latest) in the W8 CP as follows and all worked fine.

1. Install W8 CP.
2. Run Windows Update ( yes there are already updates available for the W8 CP ).
3. Install WAMP
4. Edit c:\windows\system32\drivers\etc\hosts ( need to open your editor with "Run As Administrator" )
remove the # (comment) from the line 127.0.0.1 localhost
OR add it if it does not exists
DO NOT remove the # (comment) from the ::1 localhost line
5. Start WAMP.
6. When wamp goes green do wampmanager->localhost
You should see the wamp info page.
Anything that goes wrong after that is your own doing.


INFO:
The ::1 ip address is a IPV6 address.By default apache does not play in the IPV6 address space.
Microsoft have just added it EARLY so to speak in readyness for whenever we all bite the bullet and convert the internet to IPV6.


The reason you get the "You have no permissions" message is because you are using the IPv6 localhost address BUT apache has been told ( via httpd.conf ) to allow access ONLY FROM 127.0.0.1

Look for these lines in httpd.conf


# onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1

In its initial ( just installed ) state WAMP is set as above, to refuse access from any IP ADDRESS other than 127.0.0.1 as a SECURITY MEASURE.

So if you try and use the ::1 ip address it will be refused !!!!!

This section of httpd.conf is maintained by wamp manager. When you use the wampmanager to "Put Offline"/"Put Online" wamp edits the httpd file and changes the above part of the conf file to be

# onlineoffline tag - don't remove
Order Allow,Deny
Allow from all

Thus allowing access from the whole internet ( if your router is port forwarding port 80 to the PC you have apache running on).


Its best to stick to the 127.0.0.1 ip address for localhost for now anyway. Trying to use the IPV6 address space will just cause you heart ache and pain.


Hope this helps your general understanding of what is being suggested

Options: ReplyQuote
Re: Wamp and windows 8 cp
Posted by: froozt (---.173.9.46.customer.cdi.no)
Date: April 12, 2012 08:23PM

I cant thank you enough for this! Im pretty bad at this in the first part but this time it works, just when i needed it the most! THANK YOUgrinning smiley

Options: ReplyQuote
Re: Wamp and windows 8 cp
Posted by: ZebraN (---.gavlenet.com)
Date: July 24, 2012 03:23AM

RiggsFolly Wrote:
-------------------------------------------------------
> ckrudelux,
>
>
> I installed WAMP (latest) in the W8 CP as follows
> and all worked fine.
>
> 1. Install W8 CP.
> 2. Run Windows Update ( yes there are already
> updates available for the W8 CP ).
> 3. Install WAMP
> 4. Edit c:\windows\system32\drivers\etc\hosts (
> need to open your editor with "Run As
> Administrator" )
> remove the # (comment) from the line 127.0.0.1
> localhost
> OR add it if it does not exists
> DO NOT remove the # (comment) from the ::1
> localhost line
> 5. Start WAMP.
> 6. When wamp goes green do wampmanager->localhost
> You should see the wamp info page.
> Anything that goes wrong after that is your own
> doing.
>
>
> INFO:
> The ::1 ip address is a IPV6 address.By default
> apache does not play in the IPV6 address space.
> Microsoft have just added it EARLY so to speak in
> readyness for whenever we all bite the bullet and
> convert the internet to IPV6.
>
>
> The reason you get the "You have no permissions"
> message is because you are using the IPv6
> localhost address BUT apache has been told ( via
> httpd.conf ) to allow access ONLY FROM 127.0.0.1
>
> Look for these lines in httpd.conf
>
>
> # onlineoffline tag - don't remove
> Order Deny,Allow
> Deny from all
> Allow from 127.0.0.1
>
> In its initial ( just installed ) state WAMP is
> set as above, to refuse access from any IP ADDRESS
> other than 127.0.0.1 as a SECURITY MEASURE.
>
> So if you try and use the ::1 ip address it will
> be refused !!!!!
>
> This section of httpd.conf is maintained by wamp
> manager. When you use the wampmanager to "Put
> Offline"/"Put Online" wamp edits the httpd file
> and changes the above part of the conf file to be
>
>
> # onlineoffline tag - don't remove
> Order Allow,Deny
> Allow from all
>
> Thus allowing access from the whole internet ( if
> your router is port forwarding port 80 to the PC
> you have apache running on).
>
>
> Its best to stick to the 127.0.0.1 ip address for
> localhost for now anyway. Trying to use the IPV6
> address space will just cause you heart ache and
> pain.
>
>
> Hope this helps your general understanding of what
> is being suggested

I'm quite baffled. I tried your way. I portforwarded port 80, I changed hosts file so that only 127.0.0.1 was localhost. I changed httpd.conf to Allow from all. But it did not work, though.

When I changed phpmyadmin.conf, sqlbuddy.conf and webgrind.conf to "Allow from ::1". It all worked.
I haven't got WAMPSERVER to run on Windows 8 what so ever, I read in so much forums and I tried everything, but all I had to do now was "Allow from ::1". So why is that, any clues?

Reply as soon as possible please smiling smiley

Options: ReplyQuote
Re: Wamp and windows 8 cp
Posted by: RiggsFolly (---.ppp.as43234.net)
Date: July 24, 2012 04:09PM

::1 localhost
is the IPV6 equivalent of
127.0.0.1 localhost
You are much better NOT USING IPV6


If you had to change all those configs to Allow ::1 then your problem is that your HOSTS file still contains the line "::1 localhost"

Remove this line ( or comment it out with a # (hash)

make sure you have a line like this in the hosts file ( not commented out )

127.0.0.1 localhost

undo all the changes you made to phpMyAdmin etc to use "Allow ::1"

To avoid the need to be an Administrator when editing the hosts file copy it to c:\ make the changes there and then copy it back.

Options: ReplyQuote
Re: Wamp and windows 8 cp
Posted by: LPent (---.244.172.223.dynamic.ttnet.com.tr)
Date: July 30, 2012 09:39PM

RiggsFolly Wrote:

> If you had to change all those configs to Allow
> ::1 then your problem is that your HOSTS file
> still contains the line "::1 localhost"

No, if you open the hosts file in windows 8 you will notice a comment that reads:
# localhost name resolution is handled within DNS itself.

The default hosts file does NOT contain ::1 localhost but if you ping localhost you will get a response from ::1. Why? Because windows 8 resolves ip6 before ip4 (it is "built in"winking smiley. The only way to work around this is to disable ip6 completely in windows 8. You do this in the regsitry:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters
and add a key DisabledComponents with value 0xffffffff. Either that or add Allow ::1 to the apache files.



Edited 2 time(s). Last edit at 07/30/2012 10:19PM by LPent.

Options: ReplyQuote
Re: Wamp and windows 8 cp
Posted by: stevenmartin99 (Moderator)
Date: July 30, 2012 09:40PM

you could do that... but best to tell apache not to use ipv6 by changing

listen 80

to

listen 0.0.0.0:80

in the httpd.conf

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Wamp and windows 8 cp
Posted by: LPent (---.244.172.223.dynamic.ttnet.com.tr)
Date: July 30, 2012 10:20PM

That would be another option indeed.

Options: ReplyQuote
Re: Wamp and windows 8 cp
Posted by: coultonluke (146.90.42.---)
Date: August 31, 2012 07:02PM

Perfect. Uncommenting the "127.0.01 Localhost" AND "::1 localhost" lines from the hosts file got Wamp running on my Windows 8 machine.

I could get to the wamp server page by going to 127.0.01. So for anyone else who is adamant that Wamp isn't working, it's probably worth inserting the local IP into the browser first.

Php my admin wasn't working until I commented both lines out, and not just the 127.0.0.1 one

Thank you lots!



Edited 2 time(s). Last edit at 08/31/2012 07:13PM by coultonluke.

Options: ReplyQuote
Re: Wamp and windows 8 cp
Posted by: luuky19 (---.kpn.net)
Date: November 01, 2012 08:42AM

I also had this problem and manage to fix this by changing this:

<Directory "c:/wamp/apps/phpmyadmin3.4.5/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Directory>

To:

<Directory "c:/wamp/apps/phpmyadmin3.4.5/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1 ::1
</Directory>

allowing access from both IP4 and IP6 to call for phpmyadmin. I did this in the alias map.

AND THAT IS ALL I CHANGED

Options: ReplyQuote
Re: Wamp and windows 8 cp
Posted by: luuky19 (---.kpn.net)
Date: November 01, 2012 08:42AM

I also had this problem and manage to fix this by changing this:

<Directory "c:/wamp/apps/phpmyadmin3.4.5/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Directory>

To:

<Directory "c:/wamp/apps/phpmyadmin3.4.5/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1 ::1
</Directory>

allowing acces from both IP4 and IP6 to call for phpmyadmin. I did this in the alias map.

AND THAT IS ALL I CHANGED

Options: ReplyQuote
Re: Wamp and windows 8 cp
Posted by: elcedion (190.209.251.---)
Date: December 02, 2012 02:59PM

stevenmartin99 Wrote:
-------------------------------------------------------
> you could do that... but best to tell apache not
> to use ipv6 by changing
>
> listen 80
>
> to
>
> listen 0.0.0.0:80
>
> in the httpd.conf

This and uncomment 127.0.0.1 localhost from hosts work for me. Thanks ^^

Options: ReplyQuote
Re: Wamp and windows 8 cp
Posted by: usascottwright1 (---.se.biz.rr.com)
Date: April 05, 2013 05:07PM

I am a little tech savy but not to the extent to what is all said above. Can anybody call me and help me walk through this or logon via teamviewer and help me fix my wamp issue?

WrightEnterprises at hotmail or call 2132835229. My name is Scott Wright

Options: ReplyQuote
Re: Wamp and windows 8 cp
Posted by: RiggsFolly (---.as13285.net)
Date: April 05, 2013 05:26PM

Is this a bit more help??


Right, Windows as of Windows7 comes with the ability to use the IPV4 network address range and the IPV6 network address range and by default they are both turned on.
IPV4 addresses look like this: 123.321.10.234
IPV6 addresses look like this: 2001:0db8:85a3:0042:1000:8a2e:0370:7334

The IPV4 address for localhost is 127.0.0.1
The IPV6 address for localhost is ::1


See
[en.wikipedia.org]
[en.wikipedia.org]
[en.wikipedia.org]


However, Wamp's security as of now ( Feb 2013 ) is only configured to expect the IPV4 address range, but the Apache that is delivered with WAMPServer is aware of both the IPV4 and IPV6 address ranges and is happy to use either or in fact both.
I am not sure how Windows/Browsers decide which range to use but it appears to be fairly arbitrary, so you can get either.

This is the route of your problem.

There are 2 ways you can go to solve this small anomily. You can either ignore the IPV6 address range or change the security to include the IPV6 address range.


+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
KEEP COPIES OF ALL FILES CHANGED SO YOU CAN EASILY UNDO THESE CHANGES IF THEY DO NOT WORK FOR YOU

In fact copy c:\wamp to a backup location and then you can just replace
the whole folder if you have problems with your changes.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


Option 1 is easier to do.
==============================================================

Option 1:
Ignore the IPV6 address range.


Use the wamp menus to edit these files where possible.

edit httpd.conf
change Listen 80 TO Listen 0.0.0.0:80
The 0.0.0.0 part tells Apache to only listen on IPV4 addresses.


edit c:\windows\system32\drivers\etc\hosts
If it exists, remove or comment out (comment is a # in colum 1) the line containing the IPV6 address for localhost >::1 localhost
(This makes the domain 'localhost' disappear from the IPV6 network, its existance is not hard coded anywhere it has to be mentioned in the hosts file to make it exists)
Make sure you have a line in the hosts file like this >127.0.0.1 localhost
(This makes the domain 'localhost' exists on the IPV4 network)

Wamps security should now work after a reboot. And
http://localhost
should now get you to wamps Apache installation. The exisiting security should also now work for phpMyAdmin,WebGrind and SQLBuddy


============================================================
Option 2:
Add the IPV6 address range to wamps security.


Again always use the wamp menus to edit these files where possible.

!!!! Make sure WAMP is set to 'Offline' before starting this part.


Now this is the dangerous bit!!!!! You must get these next 2 edits right. The text between the double quotes in C:\wamp\scripts\onlineOffline.php must match exactly that used in the httpd.conf file, so a copy and paste would be recommended. If you get this wrong the Online/Offline process will not work.

edit httpd.conf

Change
# onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1

TO
# onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1 ::1

Note we have added the ::1 IPV6 localhost address to the security, make sure there is a space between 127.0.0.1 and ::1.


Edit C:\wamp\scripts\onlineOffline.php
Change

$offlineText = "# onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1";

TO

$offlineText = "# onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1 ::1";

This makes sure that the Online/Offline process still works in WampServer. Make sure that this exactly matches your change above made to httpd.conf


Now edit each of the files
C:\wamp\alias\phpmyadmin.conf
C:\wamp\alias\sqlbuddy.conf
C:\wamp\alias\webgrind.conf

were ever you see >127.0.0.1 change it to >127.0.0.1 ::1
Ignore the lines that start with a #, as these are comment lines

This tells Wamp that whichever ip address from either address range you get for the domain localhost, is allowed to access the apache server.
Now whichever address range windows/browser picks for you when you use the
http://localhost
domain the security will allow you in.

edit c:\windows\system32\drivers\etc\hosts
In Windows8 you will probably see both domains in the file, but this is not guaranteed. When you are finished it should look like this.

127.0.0.1 localhost
::1 localhost

This makes the domain localhost appear on both the IPV4 and IPV6 address ranges.


When you get as far as accessing MySQL you will see that the 'root' user is configured so that it can be accesses from localhost and 127.0.0.1 and ::1 so that is all ready to go and needs no changes.

If you decide to change the password for the 'root' userid in mysql, make sure you use the same password for all the instances of root that exist in mysql. A complete MySQL userid is associated with a location, so it is not the same userid when you login from root@127.0.0.1 as when you login from root@::1. This is why there are 3 'root' userids in the default MySQL userid configiration.

Options: ReplyQuote
Re: Wamp and windows 8 cp
Posted by: usascottwright1 (---.se.biz.rr.com)
Date: April 06, 2013 11:14PM

PS My wamp icon does turn green it just does not connect to the outside world

Options: ReplyQuote
Re: Wamp and windows 8 cp
Posted by: RiggsFolly (---.as13285.net)
Date: April 07, 2013 12:11AM

Well try starting a new thread and describe YOUR actual problems rather than piggyback on an irrelevant thread.

Options: ReplyQuote
Pages: 12Next
Current Page: 1 of 2


Sorry, only registered users may post in this forum.