Hello,
I just installed XUploadPro 3.0 on a linux environment and file uploads work fine.
But my problem is that the uploaded files are owned by the same user/group as the cgi files (lets say admin/psacln). When I later try to handle these files via PHP, I cannot access them (ie for renaming) as apache is run by a different user/group (apache/apache).
So my question is if there is any possibility to assign a different user/group after uploading or change permissions on that file (by the upload scripts). I cannot do it via PHP as the user apache does not have the permissions to access the file.
I already tried to chown/chgrp all cgi files to apache/apache but the the upload does no longer work.
Thanks already for your help!
XUpload - Permissions/Owner of uploaded files
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
Hmm...we chmod file to 666...doesn't helps anyway? 
Do you have this in your httpd.conf?
Probably mod_suexec can do the trick.
Don't think it's possible to change owner from perl.

Do you have this in your httpd.conf?
Code: Select all
User apache
Group apache
Don't think it's possible to change owner from perl.