loclahost - no go, 127.0.0.1 is on line. Please help
Posted by: jpelverding (---.cm-7-7c.dynamic.ziggo.nl)
Date: March 25, 2013 12:33PM

Hello there.

I have installed the latest version on win8, de-installed and used an older (really older..) version but in both cases I cannot use [localhost]. [127.0.0.1] however does work, the server was on-line.

It was my plan to use dreamwever for handling php files on my test-server but somehow that doesn't work. After ruining half a weekend and half a monday morning in trying, looking for held and faqqing I'd like to ask for your help. On my pc I have administrator rights but most of the time no clue what to do so please give any answer as if you're writing for an 8 year old....

Thanks!
JP,
the Netherlands

Options: ReplyQuote
Re: loclahost - no go, 127.0.0.1 is on line. Please help
Posted by: RiggsFolly (---.as13285.net)
Date: March 25, 2013 01:06PM

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: loclahost - no go, 127.0.0.1 is on line. Please help
Posted by: jpelverding (---.cm-7-7c.dynamic.ziggo.nl)
Date: March 26, 2013 09:27AM

Thank you!

Today I plan to:
- delete the old old wamp elements
- install the latest version
- option two.
I'll copy all texts to notepad and have my mac with this help on the screen. If all goes well I'll be very happy and if it goes wrong: I'll try it again.

Will keep you posted!

Thanks
JP

Options: ReplyQuote
Re: loclahost - no go, 127.0.0.1 is on line. Please help
Posted by: jpelverding (---.cm-7-7c.dynamic.ziggo.nl)
Date: March 26, 2013 11:16AM

Thank you!

I have taken the second option and now I can use localhost in my browser.

One question now remain: in dreamwever I need to enter the server location. I tried wamp and www but that didn't succeed. If you have a suggestion that would be great, early this afternoon I'll be working at it again, maybe I find some answers here or it'll be trial and error.

Thanks again and have a beautiful day!

Options: ReplyQuote
Re: loclahost - no go, 127.0.0.1 is on line. Please help
Posted by: jpelverding (---.cm-7-7c.dynamic.ziggo.nl)
Date: March 26, 2013 12:47PM

THANKS!
When I typ localhost in the browser it works allright, so that work around has helped my to solve the

first problem.
Then I tried to set up the server in dreamweaver, and after some two hours of trying, testing and

trying something else it's time to get some breakfast (it's 12:41 over here..) and try to get some help

from the forum.


I hope thins information could help you point me to the right direction.
(The remote www server works fine)



Folder for local site: C:\wamp\www\WP2013STGtest\

About the server info all I coud find was the serverfolder to be defined as

C:\wamp\www (like htdocs)
When I left out wamp it couldn't find anything so I expect this to be right?

Next step: local server definition. DW has two screens, one with the server info and an advanced one

where I checked php/mysql so that shouldn't be a problem.

Information used:

serverfolder: C:\wamp\www\
url: http:/www/localhost/WP2013STGtest/

[no result. DWfolder icon on test server: red and missing document info in live view]

then i tried:
serverfolder: C:\wamp\www\
url: http:/localhost/WP2013STGtest/
[same result]

I have tried some other things as well but all the same result: error

Last question was solved so I have high hopes about this as well. I have to get a small museum site up

and running before easter weekend...

Thanks
JohnPeter

Options: ReplyQuote
Re: loclahost - no go, 127.0.0.1 is on line. Please help
Posted by: jpelverding (---.cm-7-7c.dynamic.ziggo.nl)
Date: March 26, 2013 04:30PM

The error message I get, with al kind of different tries, is:

Page ‘[wamp]’

-- has not been loaded because dreamweaver can't find the server wamp.. Make sure you are connected to the internet (WAMP is on line) and that the name of the server is correct.

(In dutch: omdat Dreamweaver de server ‘wamp’ niet kan vinden. Zorg dat u verbonden bent met internet en dat de naam van de server juist is)

Anybody out there know which parameters to enter?

Thanks!
JP

Options: ReplyQuote
Re: loclahost - no go, 127.0.0.1 is on line. Please help
Posted by: RiggsFolly (---.as13285.net)
Date: March 27, 2013 11:34AM

Try going to a Dreamweaver help site. You may have more luck, this site is for people having problems getting wamp to install and run. Sorry

Options: ReplyQuote
Re: loclahost - no go, 127.0.0.1 is on line. Please help
Posted by: jpelverding (---.cm-7-7c.dynamic.ziggo.nl)
Date: March 27, 2013 11:55AM

I know, but I need to find the name of the local host. Is that wamp? wamp/www? www? It should be easy I have done a similar set up on a macbook some years ago,,

Thanks!

Options: ReplyQuote


Sorry, only registered users may post in this forum.