About technology, programming and internet marketing

Monday, June 1, 2009

How to configure Vista to work with apache's localhost webdirectory

inorder for windows vista to work w/ apache's http://localhost address you have to edit "hosts" file in windows vista. It can be found at c:\windows\system32\drivers\etc folder.

1. click on start, program, accessories and right click notepad. choose run as administrator.
2. open c:\windows\system32\drivers\etc\hosts file. locate the following lines

127.0.0.1 localhost
::1 localhost

and remark or delete the second line to make it look like
127.0.0.1 localhost

or

127.0.0.1 localhost
#::1 localhost

3. save the file and your apache's http://localhost address will now work as expected

0 comments:

Post a Comment