As the title indicates, I am going to share with you what I had to do just yesterday after installing WAMP Server on my laptop where I run Windows 7 Beta Operating System. Honestly I never experienced this kind of trouble ever before but strange things happen regularly as we face technology on our day-to-day basis.
A little story first. I had WAMP services all running smooth and sound, however, whenever I typed http://localhost on any browser in my system, it returned a Page Not Found result. I was still able to access my local web server using 127.0.0.1, but then when it came to loading WordPress locally, no stylesheet was loaded and the page layout was totally naked. I may just assume that could also be tweaked by altering WordPress address (URL) in Admin –> Settings –> General page, but I preferred the standard approach so I had to dig deeper. If you ever happen to encounter the same issue then keep following me till the end of this explanation.
In every Windows OS there are two files, one called lmhosts.sam and the other hosts, lying deep inside C:\Windows\System32\drivers\etc folder. Of course that differs for Windows NT editions, simply replace C:\Windows with C:\WINNT. Now lets get back to our task. I needed to tell Windows to consider localhost as I’d have entered 127.0.0.1 on the address bar. Hence I went and opened the hosts file in Notepad (you can use any text editor for this). All you have to do to fix the problem is go to the end of hosts content and make sure whether there is a line like this
127.0.0.1 localhost
If false, then type that in, just be sure to leave a space between the 127.0.0.1 address an localhost.
For some particularly strange reasons, after I did that WAMP still hesitated to work. So I pasted that into lmhosts.sam file too and the spell was gone.
Note: Keep in mind that normally these two files should already be configured by default once you install Windows, but this case is specific to Windows 7 Beta, therefore it’s not that strange to not be that way.
Did you experience such a problem? Were you able to fix it? Tell me your story, I’d be glad to read it.
11 responses
Do you want to comment?
Comments RSS and TrackBack Identifier URI ?
Trackbacks