Jump to content

uploaded file permissions


Recommended Posts

Hi - hope someone can help with this, running PHP on a FreeBSD / Apache web server and have a question about how to set the file ownership of files uploaded via PHP - is this something that can be configured within php.ini or not?

 

PHP is:

PHP 5.2.10 (cgi) (built: Jun 25 2009 11:36:01)

Copyright © 1997-2009 The PHP Group

Zend Engine v2.2.0, Copyright © 1998-2009 Zend Technologies

 

I've been through the php.ini file and can see a number of variables that control aspects of file uploads but NOTHING that controls actual ownership.

 

The problem is when I use a test script to upload a file it's got the wrong group ownership, I know I can also use PHP to change the ownership afterwards but I don't want to do this.

 

PHP above as can be seen has been compiled as a CGI and is called via the suexec wrapper in Apache.

 

Any help would be greatly appreciated.

 

 

Julian.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.