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).
Many thanks for some guidance for this matter...
Todd
From: Todd Cary todd@aristesoftware.com
directory insufficient permission... I am not sure what to set for Owner and Group for the "uploads" directory nor the permissions (it is now set to 775).
Give permission to the apache user...?
JD
-----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
On 12 July 2010 10:43, Markus Falb markus.falb@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@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...
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 Falbmarkus.falb@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@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@centos.org http://lists.centos.org/mailman/listinfo/centos