Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Arrrg! Permissions driving me nuts in PHP
- Date: Thu, 25 Nov 2010 01:24:50 +0900
- From: Sach Jobb <sach@example.com>
- Subject: Re: [tlug] Arrrg! Permissions driving me nuts in PHP
- References: <4CEB46A8.6000202@example.com> <AANLkTikFnEpNOH6xa48Lio3e0XSGRDD9tDyJ_SM01NLv@example.com> <4CED3243.6070002@example.com>
> mkdir($dirPath,0777); > > $dirPath is, well, the name of the directory and the full path name. > That part seems to be working because the directory is placed in the > right location. > > The PHP manual says that the default permission setting is 0777 anyway, > but I put it in there explicitly after I started seeing permission problems. > > This is the permissions of the directory that won't let itself be deleted: > > drwxr-xr-x 3 nobody nobody 4096 Nov 24 04:21 backup_20101124_-_042108 Well, clearly it's not working because it make the directory 755, not 777. I seem to recall having problems with php and directory modes before. I think I got around it by explicitly changing the mode after the directory was created. That all being said, assuming your web server is running as user nobody, it should still have the right to remove the directory after it created it. Especially seeing as it's running inside the same script. You are not using apache with suexec are you? And just to clarify, this is being run from the web browser right? You are not using the cli version of php? Cheers, Sach
- Follow-Ups:
- Re: [tlug] Arrrg! Permissions driving me nuts in PHP
- From: Stephen J. Turnbull
- References:
- [tlug] Arrrg! Permissions driving me nuts in PHP
- From: Dave M G
- Re: [tlug] Arrrg! Permissions driving me nuts in PHP
- From: Edmund Edgar
- Re: [tlug] Arrrg! Permissions driving me nuts in PHP
- From: Dave M G
Home | Main Index | Thread Index
- Prev by Date: [tlug] [Jobs] Recruiting Linux/Desktop support and SW engineer
- Next by Date: Re: [tlug] Arrrg! Permissions driving me nuts in PHP
- Previous by thread: Re: [tlug] Arrrg! Permissions driving me nuts in PHP
- Next by thread: Re: [tlug] Arrrg! Permissions driving me nuts in PHP
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links