Can't View WordPress Index Page via Localhost [SOLVED}

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Can't View WordPress Index Page via Localhost [SOLVED}

Postby tbenton » 08. October 2011 02:02

Using XAMPP WIN-32 1.7.7
operating sytem is windows vista 64.

Installed XAMP and had it setup completly VIA testing. I activated a theme in wordpress and wante to just view it using http:// localhost wich should have worked but all it does is brings back to the XAMMP Page. What is not running correctly?
tbenton
 
Posts: 5
Joined: 05. October 2011 12:56

Re: Cannot view Page via Local Host

Postby Sharley » 08. October 2011 02:05

Delete or rename the 2 index files in the htdocs folder.

This may also fix your other issue you posted about.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Cannot view Page via Local Host

Postby vineeta2k » 08. October 2011 02:50

I had the same problem with XAMPP at first. But when I tried with 127.0.0.1 instead of localhost it worked. Please try.
vineeta2k
 
Posts: 1
Joined: 08. October 2011 02:46
Location: Cochin, India
Operating System: Linux

Re: Cannot view Page via Local Host

Postby Sharley » 08. October 2011 03:00

vineeta2k wrote:I had the same problem with XAMPP at first. But when I tried with 127.0.0.1 instead of localhost it worked. Please try.
127.0.0.1 is the localhost loop back address.

You have some settings (Windows HOSTS file possibly) that are not configured correctly and so this is not a valid solution. :shock:
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Cannot view Page via Local Host

Postby tbenton » 08. October 2011 15:08

Sharley,
I did what you suggested and not it says "it Works".......Really confused on the problem..
tbenton
 
Posts: 5
Joined: 05. October 2011 12:56

Re: Cannot view Page via Local Host

Postby Sharley » 08. October 2011 15:22

It works! is coming from the index.html that is located in the htdocs folder because Apache is not running therefore no PHP files are being parsed or you typed in your browser http://localhost/index.php or there is no index.php file in the htdocs folder.
Here is the html code of the index.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
</head>
<body>
<h1>It works!</h1>
</body>
</html>
Did you delete or rename index.php and index.html in the htdocs folder?

Clear your browser's cache (Temporary Internet files).

What are you typing in the browser?

Can you see http://localhost/xampp/index.php

Use the control-xampp-3-beta.exe file to use the new control panel instead of the old one.

Make sure Apache and MySQL are showing running.

Post back when you can answer the above questions.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Cannot view Page via Local Host

Postby tbenton » 08. October 2011 15:32

Sharley,
I was typing http://localhost/.... This should have let me view the wordpress page I activated.

I typed this in ( http://localhost/xampp/index.php)

This is what I got. It says " Object not found"

The requested URL was not found on this erver. If you entered the URL manually please check your spelling and try again.

ERROR 404
tbenton
 
Posts: 5
Joined: 05. October 2011 12:56

Re: Cannot view Page via Local Host

Postby Sharley » 08. October 2011 15:38

http://localhost/.... what are the dots?

Did you delete the xampp folder that was in the htdocs folder?

Did you put all the WordPress files and folders in the htdocs folder or did you create a C:\xampp\htdocs\wordpress folder with all the WP files in there?
If so then you would type in your browser http://localhost/wordpress/index.php

Delete the index.html that is in the htdocs folder or rename it to index_xampp.html.

Where is the index.php file of the WordPress installation?

For the 404 error message read the C:\xampp\apache\logs\error.log file as it will have more details.


Please post back with the feedback from this post.
Thanks.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Cannot view Page via Local Host

Postby tbenton » 08. October 2011 16:00

Got it Thanks..Your Awesome!!!
tbenton
 
Posts: 5
Joined: 05. October 2011 12:56

Re: Cannot view Page via Local Host

Postby Sharley » 08. October 2011 16:03

Your welcome. 8)

One can only assume that the solution was found somewhere in my last post.

Good luck. :)
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 39 guests

cron