Closed (fixed)
Project:
Boost
Version:
6.x-1.16
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Nov 2009 at 14:07 UTC
Updated:
6 Dec 2009 at 00:30 UTC
Jump to comment: Most recent file
Hi!
I'm running my site with fastcgi and php safe_mode, thats why I changed the default octal permissions for both directories and files.
Under cache/normal everything is ok, directories 0775 and files 0664. Under cache/perm directories has got 0775 permission, files has got 0600 permission. The files permission should be 0664 too here.
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | boost-638390.1.patch | 4.73 KB | mikeytown2 |
| #9 | boost-638390.patch | 4.72 KB | mikeytown2 |
| #6 | boost-638390.patch | 4.4 KB | mikeytown2 |
| #1 | boost-638390.patch | 3.67 KB | mikeytown2 |
Comments
Comment #1
mikeytown2 commentedI set chmod for files in the perm dir as well... interesting.
I went through the code and added in a chmod wherever there was a file_put_contents() let me know if this patch does the trick for you.
Comment #2
xmarket commentedHi!
Patch has been applied, but nothing changed at all. This is a multisite install, with one language. Drupal 6.14, php 5.2.11.
Structure:
Only the files permissions wrong from the first www.mysite.com level.
PHP default octal permission is 0600. I'm running php under fastcgi with fastphp user and group, that is why apache user and group can't access to the files directly with php safe_mode = on. I need at least 0644 octal permission, if I would like to use this module.
Comment #3
mikeytown2 commentedMy guess is php created the normal dir and you created the perm dir; or a subdir in here.
http://www.php.net/manual/en/features.safe-mode.functions.php
chmod will not work if php does not own that dir if running in safe mode.
What you need to do is del the perm dir and let boost automatically create the dir for you.
Comment #4
mikeytown2 commentedScratch the above comment. I see the bug... patch should be here soon.
Comment #5
xmarket commentedI'm looking forward to it.
Comment #6
mikeytown2 commentedComment #7
xmarket commentedPatch
boost-638390.patchhas been applied without errors, and I can confirm, this patch works. Persmissions - both file and directory - now everywhere OK, as it should be. Thanks for the fast and great work!Comment #8
xmarket commentedComment #9
mikeytown2 commentedCreated a function that creates the dir, writes the file and chmod it.
Comment #10
xmarket commentedPatch at comment #9 fails. Bug comes back, under perm AND normal every file has got 0600 octal permission, ONLY files.Patch at comment #6 OK, works.Comment #11
mikeytown2 commentedtry this one
key difference
if (
$bytes &&is_numeric(BOOST_PERMISSIONS_FILE)) {Comment #12
xmarket commentedI'm so sorry, I didn't noticed, that the patch tricked me. After applying the patch, I needed to setup again the permissions in the settings page, and after everything becamed OK. So the patch at comment #9 works fine, just the settings needs to be checked.
Comment #13
mikeytown2 commentedcommitted