Starting Lampp

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

Starting Lampp

Postby jensolav2 » 14. November 2006 13:28

I have installed lampp on Ubuntu 6.10 and trying to start localhsot I get the errormassage: 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

What is that about?

kind regards

jensolav2
jensolav2
 
Posts: 4
Joined: 09. November 2006 21:04

Re: Starting Lampp

Postby underdone » 14. November 2006 20:09

jensolav2 wrote: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


This error is happening because the lang.tmp file in the /opt/lampp/htdocs/xampp/ folder got deleted. So use nano, vim or whatever text editor you like and make a file call lang.tmp in that folder and simply put the text "en" and save it. Make sure you don't have some kind of cleanup program that is deleting .tmp files in that folder, and if you can't figure out why just remove all privileges but read.

I'm not sure what the second error is, but see if it is resolved with the first fix.
User avatar
underdone
 
Posts: 34
Joined: 15. October 2006 04:56
Location: Albuquerque, NM

Postby kulgan » 17. November 2006 21:31

would seem that the first error message gave html output, and therefore the headers could not be modified - makes sense.
kulgan
 
Posts: 22
Joined: 27. August 2006 16:48
Location: Norway

Postby jensolav2 » 20. November 2006 17:19

Now I get the errormessage:
Warning: include(lang/en .php) [function.include]: failed to open stream: No such file or directory in /opt/lampp/htdocs/xampp/index.php on line 12

Warning: include() [function.include]: Failed opening 'lang/en .php' for inclusion (include_path='.:/opt/lampp/lib/php') in /opt/lampp/htdocs/xampp/index.php on line 12

How does that come

kind regards

jensolav2
jensolav2
 
Posts: 4
Joined: 09. November 2006 21:04

Postby jensolav2 » 20. November 2006 17:24

Now I get the errormessage:
Warning: include(lang/en .php) [function.include]: failed to open stream: No such file or directory in /opt/lampp/htdocs/xampp/index.php on line 12

Warning: include() [function.include]: Failed opening 'lang/en .php' for inclusion (include_path='.:/opt/lampp/lib/php') in /opt/lampp/htdocs/xampp/index.php on line 12

How does that come

kind regards

jensolav2
jensolav2
 
Posts: 4
Joined: 09. November 2006 21:04

Postby kulgan » 20. November 2006 17:38

it seems that there is an error message because php is searching for the wrong name - lang/en .php instead. You could try renaming the file to "en .php", but that will most likely give problems later. You could try finding the place in the file that gives the error, then see if there is a space too many somewhere....
kulgan
 
Posts: 22
Joined: 27. August 2006 16:48
Location: Norway

Postby martinpre » 20. November 2006 19:34

i think that you put "en " instead of "en" in the lang.tmp

am i right?
martinpre
 
Posts: 405
Joined: 22. May 2006 16:14
Location: Nähe Tulln / Österreich

Postby jensolav2 » 20. November 2006 20:39

No , I'm not adding the space. I have the suspicion that the space comes in the index.php in the xampps-folder, but I can't figure out how.
the line:
<?include("lang/".file_get_contents("lang.tmp").".php"); ?>

By the way how do I start phpmyadmin?

I get the message:

Existing configuration file (./config.inc.php) is not readable.

starting at http://localhost/phpmyadmin.

kind regards

jensolav2
jensolav2
 
Posts: 4
Joined: 09. November 2006 21:04

Postby martinpre » 20. November 2006 20:47

hmm, how does your read/write permissions look like? and did you installed and started the server with root rights?
martinpre
 
Posts: 405
Joined: 22. May 2006 16:14
Location: Nähe Tulln / Österreich

Postby kulgan » 21. November 2006 13:25

jensolav2 wrote:No , I'm not adding the space. I have the suspicion that the space comes in the index.php in the xampps-folder, but I can't figure out how.
the line:
<?include("lang/".file_get_contents("lang.tmp").".php"); ?>

By the way how do I start phpmyadmin?

I get the message:

Existing configuration file (./config.inc.php) is not readable.

starting at http://localhost/phpmyadmin.

kind regards

jensolav2


Have a look in the lang/lang.tmp file....
It might be deleted after the script has run through, though, so it might not actually be there unless the script is running...
kulgan
 
Posts: 22
Joined: 27. August 2006 16:48
Location: Norway

Postby Dave_L » 21. November 2006 20:54

My lang.tmp file is exactly two bytes long, and contains "en".

-rw------- 1 nobody root 2 2005-05-28 21:23 lang.tmp

If yours is longer than two bytes, edit it again and make sure it only contains those two bytes.

If the editor you're using won't do that, you can do it with this command:

echo -n "en" > lang.tmp
User avatar
Dave_L
 
Posts: 212
Joined: 23. October 2004 00:43

Postby maddog39 » 25. November 2006 21:43

The way I fix this is by running the command recommended to install xampp.

Ubuntu:

sudo tar xvfz xamp-x.x.x.x.tar.gz -C /opt

or other distros:

su -c "tar xvfz xamp-x.x.x.x.tar.gz -C /opt"
maddog39
 
Posts: 6
Joined: 23. December 2005 04:52

Postby burckaya » 26. November 2006 23:16

Thanks for openning this subject.
I used these steps to solve the problem:

1. created lang.tmp file
2. typed en in the lang.tmp file.
3. changed the permision of the lang.tmp file to rw rw rw

my mistake was to type "en" in lang.tmp file. Then I got the error on line 12. Then I corrected the lang.tmp file.

:)
burckaya
 
Posts: 1
Joined: 26. November 2006 23:07

Postby Placebo » 01. February 2008 10:39

Hi i have the same problem running under vectorlinux 5.8 std gold
now i tryde the above solution given but it still doesn't work
am i doing anything wrong
excuse my poor englisch
i log in as root so i think the problem isn't there
but i cold be wrong

hope you can help me
grtzzzzzzzzz Placebo

edit found it
i made the file as a user and not as root
Placebo
 
Posts: 1
Joined: 01. February 2008 10:21

Postby joaomrpereira » 16. February 2008 17:04

maddog39 wrote:The way I fix this is by running the command recommended to install xampp.

Ubuntu:

sudo tar xvfz xamp-x.x.x.x.tar.gz -C /opt

or other distros:

su -c "tar xvfz xamp-x.x.x.x.tar.gz -C /opt"


If blind are those who don't want to see, and I'm one of those. Thanks maddog39. It really helps read the instructions :)
joaomrpereira
 
Posts: 1
Joined: 16. February 2008 17:01

Next

Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 8 guests