Localhost Access Not Working

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

Localhost Access Not Working

Postby datamang » 09. May 2006 01:45

Hello Apache Forum,

This is my first request for assistance - XAMPP has always run perfectly till now.

I install XAMPP via the Windows installer, everything works perfectly. I am able to access XAMPP via the Localhost and the XAMPP Control Panel.

However once I log off my computer and then come back into my system at some later time and then try to access via Localhost I get the following message:

Warning: file_get_contents(lang.tmp) [function.file-get-contents]: failed to open stream: No such file or directory in C:\Program Files\xampp\htdocs\xampp\index.php on line 2

Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\xampp\htdocs\xampp\index.php:2) in C:\Program Files\xampp\htdocs\xampp\index.php on line 9


I cannot work out what is causing the issue - I am running Zone Alarm Suite, Spyware Doctor, Adaware and Spybot (just because I am parnoid).

Does anyone have any suggestions on what my be the cause of the problem.

Thanks in anticipation
datamang
 
Posts: 2
Joined: 09. May 2006 01:32
Location: Melbourne, Victoria, Australia

Postby WorldDrknss » 09. May 2006 10:37

in xampp\security\htdocs\ create a file called lang.tmp and in the file type "en" without quotes and save it, or just navigate to http://localhost/xampp/splash.php
http://wdguides.org - XAMPP Tutorials & MORE!!!!
User avatar
WorldDrknss
 
Posts: 292
Joined: 17. September 2005 13:40

Cannot Access XAMPP via Localhost after rebooting PC

Postby datamang » 14. May 2006 03:41

Thanks for the suggestion. I did try what you recommended - worked initially but once again when I rebooted the pc the problem returned with virtually the same message:

"Warning: file_get_contents(lang.tmp) [function.file-get-contents]: failed to open stream: No such file or directory in C:\Program Files\xampp\htdocs\xampp\index.php on line 2

Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\xampp\htdocs\xampp\index.php:2) in C:\Program Files\xampp\htdocs\xampp\index.php on line 9


The fact that I can install XAMPP and have it working but once I reboot my pc and try to access XAMPP that this problem continually recurs.

Can anyone suggest a solution?

Thanks in anticipation
datamang
 
Posts: 2
Joined: 09. May 2006 01:32
Location: Melbourne, Victoria, Australia

Postby WorldDrknss » 14. May 2006 04:11

open C:\Program Files\xampp\htdocs\xampp\index.php and remove the line
Code: Select all
exit();
save and try it again,

if that doesnt work replace the code in index.php with
Code: Select all
<?php
header("Location: http://localhost/xampp/");
?>
http://wdguides.org - XAMPP Tutorials & MORE!!!!
User avatar
WorldDrknss
 
Posts: 292
Joined: 17. September 2005 13:40


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 48 guests