Page 1 of 1

Localhost Access Not Working

PostPosted: 09. May 2006 01:45
by datamang
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

PostPosted: 09. May 2006 10:37
by WorldDrknss
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

Cannot Access XAMPP via Localhost after rebooting PC

PostPosted: 14. May 2006 03:41
by datamang
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

PostPosted: 14. May 2006 04:11
by WorldDrknss
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/");
?>