XAMPP Problem

Soldato
Joined
14 Apr 2003
Posts
4,950
Location
Deepest Yorkshire
I just installed XAMPP on MAC OS X, it seemed to go OK, but when I try and open the configuration panel I get the following error:

Code:
Warning: fopen(lang.tmp) [function.fopen]: failed to open stream: Permission denied in /Applications/xampp/xamppfiles/htdocs/xampp/lang.php on line 2

Warning: fwrite(): supplied argument is not a valid stream resource in /Applications/xampp/xamppfiles/htdocs/xampp/lang.php on line 3

Warning: fclose(): supplied argument is not a valid stream resource in /Applications/xampp/xamppfiles/htdocs/xampp/lang.php on line 4

Warning: Cannot modify header information - headers already sent by (output started at /Applications/xampp/xamppfiles/htdocs/xampp/lang.php:2) in /Applications/xampp/xamppfiles/htdocs/xampp/lang.php on line 5


lang.tmp exists but it is empty, lang.php contains the following:
Code:
<?
	$fp=fopen("lang.tmp","w");
	fwrite($fp,basename($_SERVER['QUERY_STRING']));
	fclose($fp);
	header("Location: index.php");
?>

Any ideas?
 
Your problem's in the first line:

Permission denied in /Applications/xampp/xamppfiles/htdocs/xampp/lang.php on line 2

You need to make sure that Apache has read permissions to that file.
 
Back
Top Bottom