XAMPP permissions

Using applications, configuring, problems
Post Reply
Message
Author
robertobech
Posts: 23
Joined: Wed 07 Mar 2007, 19:58

XAMPP permissions

#1 Post by robertobech »

I'm trying to setup xampp on my Puppy 2.16. I unpack the tarball to /opt, start the server with /opt/lampp/lampp start, but then when I try to access localhost I get this error:

Code: Select all

You don't have permission to access / on this server
I see that the htdocs folder has the permissions set to:

Code: Select all

drwxr-xr-x   4 nobody root  4096 2007-05-11 20:40 htdocs
And inside of it things are like this:

Code: Select all

-rw-r--r--  1 root   root 30894 2007-05-11 20:40 favicon.ico
-rw-r--r--  1 nobody root   163 2003-11-01 05:15 index.html
drwxr-xr-x  2 nobody root  4096 2004-12-26 18:30 webalizer
drwxr-xr-x  6 root   root  4096 2006-11-26 18:56 xampp
How can I solve it? I guess this has something to do with permissions, but I don't know how I should set them.

GuestToo
Puppy Master
Posts: 4083
Joined: Wed 04 May 2005, 18:11

#2 Post by GuestToo »

if you want to set the ownership of all the files in folders in a directory, you can type:

chown -R nobody:nobody /opt/lampp/htdocs

use the correct name of the folder, of course

some programs like web servers might have trouble if the web directory is in a pup_save file

robertobech
Posts: 23
Joined: Wed 07 Mar 2007, 19:58

#3 Post by robertobech »

Thanks for your help, GuestToo, but in fact I know how to set the permissions. The problem is that I don't know the correct permissions for the webserver to work properly. I remember something about a www-data group or something like that used by apache in other distros I used.

Post Reply