Page 1 of 1

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

PostPosted: 08. October 2011 02:02
by tbenton
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?

Re: Cannot view Page via Local Host

PostPosted: 08. October 2011 02:05
by Sharley
Delete or rename the 2 index files in the htdocs folder.

This may also fix your other issue you posted about.

Re: Cannot view Page via Local Host

PostPosted: 08. October 2011 02:50
by vineeta2k
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.

Re: Cannot view Page via Local Host

PostPosted: 08. October 2011 03:00
by Sharley
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:

Re: Cannot view Page via Local Host

PostPosted: 08. October 2011 15:08
by tbenton
Sharley,
I did what you suggested and not it says "it Works".......Really confused on the problem..

Re: Cannot view Page via Local Host

PostPosted: 08. October 2011 15:22
by Sharley
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.

Re: Cannot view Page via Local Host

PostPosted: 08. October 2011 15:32
by tbenton
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

Re: Cannot view Page via Local Host

PostPosted: 08. October 2011 15:38
by Sharley
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.

Re: Cannot view Page via Local Host

PostPosted: 08. October 2011 16:00
by tbenton
Got it Thanks..Your Awesome!!!

Re: Cannot view Page via Local Host

PostPosted: 08. October 2011 16:03
by Sharley
Your welcome. 8)

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

Good luck. :)