“HTTP request status” in Drupal 6.x on localhost
I just set up XAMPP on my Vista x64 PC and found that after installing Drupal 6 that the status report was throwing up an error.
HTTP request status
Your system or network configuration does not allow Drupal to access web pages, resulting in reduced functionality. This could be due to your webserver configuration or PHP settings, and should be resolved in order to download information about available updates, fetch aggregator feeds, sign in via OpenID, or use other network-dependent services.
It took a while to find the solution, but I eventually found it on drupal.org. The solution was posted by mrSjoerd.
- Open up the hosts file which is located at C:\Windows\System32\drivers\etc in notepad
- You should find a line like the following at the bottom:
::1 localhost - Add a # in front of it to make it look like this:
#::1 localhost - Save the file and close notepad.
- Refresh the status page in Drupal and the error should be gone. This should work without a restart, but if it doesn’t work without a restart it is worth a try.
Comments
Tommy
Sun, 2009-05-17 03:13
Permalink
This solve the problem. Thank
This solve the problem. Thank you very much!
Kathy
Mon, 2009-05-18 14:07
Permalink
Thanks! This worked.
Thanks! This worked.
Ken
Sun, 2009-05-24 03:12
Permalink
Excellent! Thank you. I've
Excellent! Thank you. I've been searching for hours for this solution. Now I just need to figure out why it worked.
admin
Sun, 2009-05-24 10:58
Permalink
Apache uses the hosts file.
Apache uses the hosts file. So when it does a localhost request it was looking at the IPv6 IP address. You comment it out and it uses IPv4. Not sure if this is a Drupal thing or an Apache thing, I am sure Apache must be upto date for IPv6 though.
Antti
Mon, 2009-07-06 09:04
Permalink
Thanx many. Tried all kind of
Thanx many. Tried all kind of thinks at this finally did it.
Cheers
Evieg
Wed, 2009-07-08 18:07
Permalink
I am on Windows 7 RC x64 and
I am on Windows 7 RC x64 and experiencing the same issue with the latest Drupal (6.13) and Wamp (2.0h). That line had the # already but which didn't help but removing the line entirely worked.
Craig
Tue, 2009-07-21 11:06
Permalink
Hey dude, thanks for the help
Hey dude, thanks for the help this fixed my problem :D
yeah~
Wed, 2009-08-05 18:39
Permalink
that was great! ass-saver
that was great! ass-saver article!
Heart Driven
Mon, 2009-11-16 23:23
Permalink
Worked like a charm.
Worked like a charm.
greenavus
Wed, 2009-12-30 23:54
Permalink
Tried using the example you
Tried using the example you stated above but everytime i try to save it after adding the # sign, it comes up with this error report "pls check weather if this file is opened by another program".
What other program could be using it?
admin
Thu, 2009-12-31 12:07
Permalink
@greenavus, Go to Start, type
@greenavus, Go to Start, type in notepad, then right click notepad and select Run as Administrator. Navigate to the hosts file and open, edit and save it.
greenavus
Thu, 2009-12-31 12:21
Permalink
Thank you, thank you, thank
Thank you, thank you, thank you soo much. I tried everysingle suggestion on the official drupal forum and it did not work. This was by far the simplest and the best solution.
Will be a regular visitor to your blog from now on.
wef1
Tue, 2010-02-02 01:03
Permalink
Many thanks! That was clear,
Many thanks! That was clear, concise, and very helpful.
leunam75
Wed, 2010-02-03 20:34
Permalink
thanks for the help!!
thanks for the help!!
Santiago
Sat, 2010-02-13 13:42
Permalink
I am on Windows 7 RC x32 and
I am on Windows 7 RC x32 and experiencing the same issue with Drupal version 6.15.
That line had # already but which helped in my case was to remove the # from the line
# 127.0.0.1 localhost
matt
Mon, 2010-03-15 13:25
Permalink
santiagos method worked for
santiagos method worked for me in w7
JW
Thu, 2010-03-18 16:52
Permalink
THANKS!!!! Finally a Drupal
THANKS!!!! Finally a Drupal fix that works. Most problems go unresolved.
brow
Tue, 2010-06-15 08:23
Permalink
God bless u. thnx
God bless u. thnx
franz
Sun, 2010-08-29 17:31
Permalink
God bless u all your long
God bless u all your long long life. thnx
Minh Thuan
Tue, 2010-09-28 20:13
Permalink
In Win7, here is my solved
In Win7, here is my solved way:
Open file "host" in C:\Windows\System32\drivers\etc\
Change:
# 127.0.0.1 localhost
# ::1 localhost
To:
127.0.0.1 localhost
# ::1 localhost
(No change in line 2)
Good luck!
Matt
Sat, 2010-12-18 02:36
Permalink
You rock! Thanks for posting
You rock! Thanks for posting this; it saved me a lot of trouble. Thanks again.
Steve W
Tue, 2010-12-28 04:21
Permalink
I just want to thank you for
I just want to thank you for taking the time to provide this solution in such a straight forward manner. Thank goodness their are people like you willing to provide this assistance.
A couple of additional items might help those still working with Vista. You have to open Windows Notepad by right clicking the Notepad.exe. file (located in C:\Windows - since it's no longer listed under Accessories in All Programs) and select Run As Administrator. Make the change and that red line in your status report goes away. And, CRON ran right after that. Everything is now GREEN. Thanks again.
Anonymous
Thu, 2011-04-21 12:08
Permalink
Thank You For share this..
Hi
Thank a lot for share this solution. I have solved it...................thanks again.
Anonymous
Fri, 2011-05-13 06:54
Permalink
tnxs dude
Am gonna be a regular visitor of this site