Page 1 of 1

localhost/ points to my old inetpub

PostPosted: 29. September 2011 17:55
by LN888
HI! I am new to XAMPP and so far I would like to say that I am very impressed!!!! :D

But I have a serious problem that I just cannot seem to find the answer for.

let me set out what I have successfully performed so far:
permanently stopped my IIS service.
rebooted
Installed XAMPP successfully,
XAMPP control panel states that Apache and MySQL are RUNNING (in green)
successfully imported a database into phpmyadmin via http://127.0.0.1/phpmyadmin
Can see the XAMPP's landing page (Welcome to XAMPP for Windows!) via typing in http://127.0.0.1 url.

now... here's the problem...
when I type in http://localhost/ it still goes back to my old inetpub/wwwroot content.
not sure if I have php installed somewhere else... and so I am not sure if I need to UNINSTALL php... and where would I find that?
is there something I should have in my .htaccess or something?

Sorry, but I am very new, (damn nOOb's!! lol)
pls help :)

- LN

Re: localhost/ points to my old inetpub

PostPosted: 29. September 2011 18:06
by LN888
OH... I want to let you know, though... that even though localhost/ goes to a file in inetpub/wwwroot folder, but any link that shows up in that file goes to the apache server with a 404 not found (duh! since the files are NOT LOCATED there, they are in the wwwroot directory...)...

I also want to add the fact that I am on Windows 7 64 bit...

Re: localhost/ points to my old inetpub

PostPosted: 29. September 2011 22:04
by Sharley
Check you have this line as the first available line in C:\windows\system32\drivers\etc\hosts file using notepad while running as administrator
Code: Select all
127.0.0.1 localhost


Which drive and folder tree did you install XAMPP and what version is it please?

Re: localhost/ points to my old inetpub

PostPosted: 30. September 2011 14:25
by LN888
OH! I Forgot to mention that...
I HAVE ALREADY went into the drivers/etc/hosts and put that line in... it was already in there with a hash # but I also added a line after that (like you have above) without the hash #.
the version is 1.7.7

oh... and installed it how it wanted to ... c:/xampp/

Re: localhost/ points to my old inetpub

PostPosted: 30. September 2011 21:40
by Sharley
It saves time if you include all the details of your issue in your first post. :)

Follow the link and try the instructions in this posts and see if it helps:
viewtopic.php?p=169028#p169028

Reboot after the above instructions often helps.

Good luck :)

Re: localhost/ points to my old inetpub

PostPosted: 01. October 2011 16:01
by LN888
I am not fully understanding what you are wanting me to do in that thread as I have no problem starting the apache service...
I went and checked my error log, and basically it all looks normal...
Terminating on signal SIGTERM(15)
[Sat Oct 01 09:46:57 2011] [warn] pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sat Oct 01 09:46:57 2011] [notice] Digest: generating secret for digest authentication ...
[Sat Oct 01 09:46:57 2011] [notice] Digest: done
[Sat Oct 01 09:46:59 2011] [notice] Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Sat Oct 01 09:46:59 2011] [notice] Server built: Sep 10 2011 11:34:11
[Sat Oct 01 09:46:59 2011] [notice] Parent: Created child process 2704
[Sat Oct 01 09:47:01 2011] [notice] Digest: generating secret for digest authentication ...
[Sat Oct 01 09:47:01 2011] [notice] Digest: done
[Sat Oct 01 09:47:03 2011] [notice] Child 2704: Child process is running
[Sat Oct 01 09:47:03 2011] [notice] Child 2704: Acquired the start mutex.
[Sat Oct 01 09:47:03 2011] [notice] Child 2704: Starting 150 worker threads.
[Sat Oct 01 09:47:03 2011] [notice] Child 2704: Starting thread to listen on port 443.
[Sat Oct 01 09:47:03 2011] [notice] Child 2704: Starting thread to listen on port 80.
[Sat Oct 01 09:47:03 2011] [notice] Child 2704: Starting thread to listen on port 443.
[Sat Oct 01 09:47:03 2011] [notice] Child 2704: Starting thread to listen on port 80.


... so I am hestitant to make apache listen on a different port, as It seems to open no problem on that port. Win IIS service does NOT start, and I am aware that I do NOT have to uninstall the service.

Re: localhost/ points to my old inetpub

PostPosted: 01. October 2011 17:36
by Radostus
You tell that you are directed to wwwroot-Folder instead of htdocs-Folder where you want to be.
The first thing we should know is whether it is windows or XAMPP that redirects you to the wwwroot-Folder.
Therefore you have to check your XAMPP-config-files if there is the path to the wwwroot-Folder listed anywhere. If so change it to the htdocs path.
If it is not you have to use something like TweakUI and check if this is able to change the path to the shared-websites-folder in windows. Check if the shared-websites-folder is still wwwroot and change it to the htdocs-folder.
This should solve this issue I believe.
Oh, and check both options because maybe it is wrong in both ways.

Re: localhost/ points to my old inetpub

PostPosted: 02. October 2011 16:54
by LN888
you have to check your XAMPP-config-files if there is the path to the wwwroot-Folder listed anywhere.


Sounds fantastic. now... where are the config files?

Going to see if I can find a TweakUI and run that and see if I can figure it out....
Thnx for the help and will post if I find the issue...

:)