> -----Original Message----- > From: [email protected] [mailto:[email protected]] > On Behalf Of Ken Marcus - Precision Web Hosting, Inc > Sent: Monday, January 04, 2010 11:48 AM > To: BlueOnyx General Mailing List > Subject: [BlueOnyx:03228] Re: php error > > >> > -----Original Message----- > >> > From: [email protected] > >> > [mailto:[email protected]] > >> > On Behalf Of Darrell D. Mobley > >> > Sent: Saturday, December 19, 2009 4:48 PM > >> > To: 'BlueOnyx General Mailing List' > >> > Subject: [BlueOnyx:03141] Re: php error > >> > > >> > What about my other question: > >> > > Another issue: > >> > > > >> > > I have a website (site4) that I am trying to get SafeMode to work > >> > > with. When I have SafeMode enabled, either with or without > >> > > SafeModeGID, it cannot use the PHP functions: > >> > > > >> > > imagecreatefromjpeg, imagecreatefrompng, imagecreatefromgif > >> > > > >> > > I include the site's absolute path in the SafeMode include > >> > > directory, and it has zero effect. > >> > > > >> > > How do I do this in BX? > >> > > >> > The files created by these image creation routines are owned by > >> > apache in group site4. Can apache not produce images in a 755 > >> > permissioned directory it owns? Is there a SafeMode restriction in > >> > place (when it is enabled)that doesn't allow apache to create files > >> > in directories it owns? I tried SafeModGID on and off, and putting > >> > the following directory paths in both the SafeMode include and > >> > SafeMode exec spots: > >> > > >> > /home/.sites/70/site4 > >> > /home/.sites/70/site4/ > >> > /home/.sites/70/site4/web > >> > /home/.sites/70/site4/web/ > >> > > >> > > >> > We know site4 owns all of those. I even changed the ownership of the > >> > /home/.sites/70/site4/web/images directory to apache:site4 and > >> > changed permissions on that one directory to 777. No joy. > > Darrell > > You seem to be purposely making things hard on yourself with your cross- > site setup. It seems to me you are adding safe mode for security, then you
> are nullifying the added security. Just put on the files on the same site > or turn safe mode off. > > Or, ask the question from a php specific list. Ken, I edited out the content above so you could re-read my question and understand it better. I have a site (not multiple sites, in this situation, just one) that runs Joomla. A helper script that Joomla executes resizes article images and puts them into a separate directory for viewing by the site's users. On Blue Quartz, the Joomla script operated under apache.siteX ownership. Under Blue Onyx, the Joomla script runs as apache.apache. If I turn on SafeMode or SafeModeGid, the script will not produce resized images, instead it produces an error about SafeMode. What I am asking is whether or not I can get this site to be able to enable SafeMode, or whether or not it is outside of the scope of Blue Onyx for Apache to co-exist unless SafeMode is disabled. If this question is too much for this list, just say so and I will stop asking questions here. When I ask this question on a PHP list, I am asked what OS and I running and then they tell me to go to the Blue Onyx list to ask questions such as this. Typical. _______________________________________________ Blueonyx mailing list [email protected] http://www.blueonyx.it/mailman/listinfo/blueonyx
