[CentOS] Correct permissions for uploading files
Todd Cary
todd at aristesoftware.com
Mon Jul 12 14:36:04 UTC 2010
Jim -
Many thanks! That took care of the problem.
Todd
On 7/12/2010 3:53 AM, James Hogarth wrote:
> On 12 July 2010 10:43, Markus Falb<markus.falb at fasel.at> wrote:
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> On 12/07/2010 04:10, Todd Cary wrote:
>>
>>> I am trying to implement PHP upload functionality for an application.
>>> When I attempt an upload in my test environment, I get the following error:
>>>
>>> An error has occurred: receiving directory insufficient
>>> permission... The upload form is reloading
>>>
>>> The destination file being moved by move_uploaded_file is
>>>
>>> /home/httpd//test/upload/uploads/1278898550-_DSC1159.jpg
>>>
>>> The initial file name is suppose to be
>>>
>>> /tmp/phpR1lmmc
>>>
>>> I am not sure what to set for Owner and Group for the "uploads"
>>> directory nor the permissions (it is now set to 775).
>>>
>> Assuming your apache process trying to move the file is running under
>> uid apache and gid apache then setting Group to apache for the uploads
>> dir should be sufficient (Leave permissions at 775)
>>
>> - --
>> Regards, Markus
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.4.10 (Darwin)
>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>>
>> iEYEARECAAYFAkw648gACgkQYoWFBIJE9eVppwCgj2lDeqFqEci/J1KIk5+YTLdX
>> iYQAniZIMyrZPVfxjCoydkejZl4IpHZC
>> =CMHq
>> -----END PGP SIGNATURE-----
>>
>> _______________________________________________
>> CentOS mailing list
>> CentOS at centos.org
>> http://lists.centos.org/mailman/listinfo/centos
>>
>>
> SELinux enabled? It may not have permission to read/write in the
> context of the directory as well...
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
>
>
--
Ariste Software
Petaluma, CA 94952
http://www.aristesoftware.com
More information about the CentOS
mailing list