Only one way to find out. :-) > -----Original Message----- > From: blueonyx-boun...@mail.blueonyx.it [mailto:blueonyx- > boun...@mail.blueonyx.it] On Behalf Of Stephanie Sullivan > Sent: Sunday, July 24, 2011 2:47 PM > To: 'BlueOnyx General Mailing List' > Subject: [BlueOnyx:07806] Re: Open cart and umask > > Is channeling president Clinton the best direction to head an issue like > this? ;-) > > > -----Original Message----- > > From: blueonyx-boun...@mail.blueonyx.it [mailto:blueonyx- > > boun...@mail.blueonyx.it] On Behalf Of Darrell D. Mobley > > Sent: Sunday, July 24, 2011 2:26 PM > > To: 'BlueOnyx General Mailing List' > > Subject: [BlueOnyx:07805] Re: Open cart and umask > > > > I feel your pain. :-) > > > > > -----Original Message----- > > > From: blueonyx-boun...@mail.blueonyx.it [mailto:blueonyx- > > > boun...@mail.blueonyx.it] On Behalf Of Stephanie Sullivan > > > Sent: Sunday, July 24, 2011 1:06 PM > > > To: 'BlueOnyx General Mailing List' > > > Subject: [BlueOnyx:07804] Re: Open cart and umask > > > > > > Let me answer my own question. I'm trying to make files created > > have > > > default > > > permissions allowing group write and others read. The default allow > > rwx > > > for > > > the owner and nothing for anyone else. Sigh. > > > > > > In /etc/suphp.conf I made the following change. > > > > > > ; [original] umask=0077 > > > umask=0002 > > > > > > This mask also allows execute as suphp created directories lacked > > execute > > > permissions locking out apache from getting php generated images > > from the > > > folder created by suphp. Sigh. > > > > > > May I suggest that files created under suphp might at least, by > > default, > > > allow for file creation with group read write execute, and global > > (other) > > > read and execute. This way suphp created directories and files > > (like > > > images) > > > will be readable by apache. > > > > > > Now, to be clear - I like the more restrictive permissions. The > > work fine > > > as > > > long as suphp is reading the files. But if access is to be from > > apache as > > > for an image created by suphp, no-go. > > > > > > One can add a chmod() php call to the code that creates the files > > or a > > > umask() php call to change the default. Great for code I write. I > > like it. > > > But much of what runs on my servers is from elsewhere - shopping > > carts, > > > CMS's, etc. and many of these create files and feel adding chmod() > > to the > > > code is an onerous requirement. I can add this in but then an > > update comes > > > out and undoes my fix. I'm sure you all know the cycle... > > > > > > So, that's my rant for today. At the risk of being a PITA - if > > there is a > > > way (and I haven't researched it yet) to set the suphp umask on > > per-site > > > basis I'll start to dance in delight. > > > > > > Thank you all for your attention. If you have opinions or thoughts > > I am > > > all > > > ears. > > > > > > Thanks, > > > -Stephanie > > > > > > > > > > > > > -----Original Message----- > > > > From: blueonyx-boun...@mail.blueonyx.it [mailto:blueonyx- > > > > boun...@mail.blueonyx.it] On Behalf Of Stephanie Sullivan > > > > Sent: Sunday, July 24, 2011 8:40 AM > > > > To: 'BlueOnyx General Mailing List' > > > > Subject: [BlueOnyx:07803] Open cart and umask > > > > > > > > Has anyone used opencart on BX? The reason I ask is I've > > installed it > > > > - > > > > easy-peasy. I enabled suphp and set site ownership. > > > > > > > > One problem that in many mentions in their forums always gets > > blamed > > > > on the > > > > hosting company. The default file creation permissions appear to > > be > > > > 600. > > > > This is not ideal as an image created cannot be read by apache > > and > > > > give a > > > > permissions error (more specifically it does not display the > > image in > > > > the > > > > page though it's there. > > > > > > > > Is there a way (I could not find it at php.net) to change the > > default > > > > umask > > > > for files created using suphp? I think there must be a reasonable > > way > > > > as all > > > > the forum threads that ended with "go complain to your web > > hosting > > > > company" > > > > stopped there. None of them had a follow-up of the web hosting > > > > company > > > > telling them they were nuts. > > > > > > > > I know there is a umask() function in php. I understand that. > > What > > > > I'm > > > > looking for is a setting that will not require me to rewrite php > > from > > > > an > > > > installed shopping cart I'll want my users to use. > > > > > > > > Maybe the answer here is obvious. I don't know. > > > > > > > > Thanks, > > > > -Stephanie > > > > > > > > PS - opencart seems much easier to work with than > > > > oscommerce/oscmax/zencart > > > > AND validates with the default theme as full XHTML strict with > > SEO > > > > friendly > > > > URLs to boot! > > > > > > > > _______________________________________________ > > > > Blueonyx mailing list > > > > Blueonyx@mail.blueonyx.it > > > > http://mail.blueonyx.it/mailman/listinfo/blueonyx > > > > > > _______________________________________________ > > > Blueonyx mailing list > > > Blueonyx@mail.blueonyx.it > > > http://mail.blueonyx.it/mailman/listinfo/blueonyx > > > > _______________________________________________ > > Blueonyx mailing list > > Blueonyx@mail.blueonyx.it > > http://mail.blueonyx.it/mailman/listinfo/blueonyx > > _______________________________________________ > Blueonyx mailing list > Blueonyx@mail.blueonyx.it > http://mail.blueonyx.it/mailman/listinfo/blueonyx
_______________________________________________ Blueonyx mailing list Blueonyx@mail.blueonyx.it http://mail.blueonyx.it/mailman/listinfo/blueonyx