error with php pages

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

error with php pages

Postby cesko89 » 27. February 2006 12:00

hi! i'm italian so excuse me for my bad english... :oops:
so...i have installed xampp 1.5.1 on ubuntu 6.04 dapper drake flight 4 and i can view the xampp configuration so and i can view all the example scripts...but if i create a directory called web in /opt/lampp/htdocs and in that directory I put in a index.php file with some php code or without everything i receive this error:
Code: Select all
Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0

Warning: Unknown: Failed opening '/opt/lampp/htdocs/index.php' for inclusion (include_path='.:/opt/lampp/lib/php') in Unknown on line 0

What I can do??? thx
Posts: 2
Joined: 27. February 2006 11:51

Postby deepsurfer » 27. February 2006 18:02

have you unpack XAMPP with "sudo" permisions ?

1) download XAMPP to folder of your choice (better Userhome folder)

2) open Terminal

3) normaly you are in Userhome folder, also " cd /folder/to/your/download "

4) " sudo tar -xzvf xampp-linux-1.5.1.tar.gz -C /opt "

5) " sudo /opt/lampp/lampp start "

thats all.

In Ubunto Browser http://localhost or
from another PC in your LAN write in the Browser http://ip_of_your_ubuntu
chirio Deep
Wie sagte einst der MCP aus Tron auf dem Bildschirm zu schreiben Pflegte
" ... end of communication ... "
User avatar
AF Moderator
Posts: 6440
Joined: 23. November 2004 10:44
Location: Cologne
Operating System: Win-XP / Win7 / Linux -Debian

Postby cesko89 » 27. February 2006 18:49

but now i can't create my files inside htdocs!?! :shock:
Posts: 2
Joined: 27. February 2006 11:51

Postby thorsin » 05. March 2006 21:47

cd /your/htdocs/

chmod -R 755 .
chown -R yourUser:yourGroup .

yourGroup will most likely be www-data if you use a debian-based system like knoppix,ubuntu,kubuntu,....
User avatar
Posts: 136
Joined: 05. March 2006 20:39

Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 7 guests