[BlueOnyx:00674] Re: File uploads and PHP settings

Brian Santee brian at visions-online.com
Fri Feb 27 07:27:18 -05 2009


What I do is chown -R apache:apache all the files in the web directory  
of the site, then everything can be managed through the CMS, since the  
php runs as the user apache anyway. This works for Joomla sites  
anyway. I also turn safe mode off.

Brian

On Feb 26, 2009, at 3:14 PM, Mels van Kooten <Mels at stijlloos.nl> wrote:

> Like other people I want to upload files with a CMS.
> Unfortunately it isn't possible to do this, because the user  
> "apache" doesn't got the right permissions.
> Even when I chmod the directory and files as 777.
>
> I've read the other mailings that concerns this problem, but it  
> doesn't offer a solution that I like.
>
> Because we're the only users on the server I think it's safe to turn  
> PHP safemode off.
> Maybe this solves the upload problem.
>
> php.net:
> When safe mode is enabled, PHP checks whether the files or  
> directories being operated upon have the same UID (owner) as the  
> script that is being executed.
>
> So I turned safemode off for a virtual side, via "Services/PHP".
> But when I run a PHPinfo() script, it says safemode still is on.
> How can I edit the PHP setting so it really changes the PHP settings?
>
> As a desperate measure I tried to turn safemod off in the server  
> management, but then the whole webservice gone down...
> When the server was accessible again (through the GUI), all the  
> sites where down.
> Then I switched safemode back on, and all the websites worked again.
>
> how can I fix this problem?
>
> Ps. I'm running all sites in preview mode at this time
>
> _______________________________________________
> Blueonyx mailing list
> Blueonyx at blueonyx.it
> http://www.blueonyx.it/mailman/listinfo/blueonyx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.blueonyx.it/pipermail/blueonyx/attachments/20090227/99827989/attachment.html>


More information about the Blueonyx mailing list