Page 1 of 1

file-get-contents fails and results in no homepage

PostPosted: 01. November 2005 02:59
by th1alb
So I got XAMPP installed just fine. However, when I go to http://localhost I get this:
[code]
Warning: file_get_contents(lang.tmp) [function.file-get-contents]: failed to open stream: Permission denied in /opt/lampp/htdocs/xampp/index.php on line 2

Warning: Cannot modify header information - headers already sent by (output started at /opt/lampp/htdocs/xampp/index.php:2) in /opt/lampp/htdocs/xampp/index.php on line 4
[/code]
Ummm...any ideas? Are there file permissions that need to be set? I was under the impression that permissions didn't have to be explicitly set by the user. Thanks in advance!

PostPosted: 01. November 2005 03:26
by Wiedmann
You must follow the installation instructions exactly.

PostPosted: 31. December 2005 19:06
by schonning
I know this is an old post, but I just wanted to say that I needed to change write permission on lang.tmp to 666 in order to make it work.

Should I have done something else? I have read all FAQ and instructions that I know about...

I also recieve this error when I try to open phpMyAdmin:

Code: Select all
Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0

Warning: Unknown: Failed opening '/ramdisk/opt/lampp/phpmyadmin/config.inc.php' for inclusion (include_path='.:/opt/lampp/lib/php') in Unknown on line 0


I can locate the directory php in the given path: /opt/lampp/lib/php, is this related to the lang.tmp problem above?

PostPosted: 31. December 2005 20:13
by Wiedmann
'/ramdisk/opt/lampp/phpmyadmin/config.inc.php'

What is this "/ramdisk"?

The path should only be "/opt/lampp".

PostPosted: 31. December 2005 20:17
by schonning
I found the problem.

I wasn't logged in as root when I did the un-tar on the xampp package.

PostPosted: 31. December 2005 20:18
by schonning
I think I get ramdisc because I use DSL (Damn Small Linux) and that OS is only 50MB and I have an boot option to load the OS into ram memory at boot up :P


Thank you for a kick-ass application/websever!! :twisted: