Re: Correct permissions for uploading files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 12 July 2010 10:43, Markus Falb <markus.falb@xxxxxxxx> 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@xxxxxxxxxx
> 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@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux