understanding php permissions (and servers/OS's)

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

matthijs
DevNet Master
Posts: 3360
Joined: Thu Oct 06, 2005 3:57 pm

Post by matthijs »

I do know how to chmod with my ftp client. But the thing is that sometimes 777 is necessary. And sometimes scripts create directories which I cannot access. Which I cannot chmod in any way.

Say I have a gallery script. The script creates a dir /summertrip/
If I check the permissions in my ftp client (smartFTP) they are 0700.
The dir has user apache and group apache.
Permissions:

Code: Select all

User  Group  Others
X        -       - 
x        -       -
x        -       -
or: RWX --- ---
Nothing I can do about that. I can't even make a backup of the dir because I don't have the right permissions. Even from the control panel I cannot access the dir.

So is that a fault of the script or can it also be some setting in apache?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

matthijs wrote:I do know how to chmod with my ftp client. But the thing is that sometimes 777 is necessary. And sometimes scripts create directories which I cannot access. Which I cannot chmod in any way.
The scripts themselves can chmod and chown them.
matthijs
DevNet Master
Posts: 3360
Joined: Thu Oct 06, 2005 3:57 pm

Post by matthijs »

feyd wrote:The scripts themselves can chmod and chown them
I knew it! Those sneaky little ba***3ds!! You leave them alone for 2 mins ... :wink:

(ok, i'll stop whining now and shut up.. thanks for all the help guys)
Post Reply