Welcome Guest, Not a member yet? Register   Sign In
Can't upload to directory when 755
#3

(This post was last modified: 01-23-2015, 05:52 AM by sv3tli0.)

755 is perfect mode for directory owner Smile
Usually if the folder is owned by let say www-data:www-data (which is apache client in debian) your script will work fine with 755.
Else the easiest way is to use 777 - but from sysadmin point this is FORBIDDEN Smile

The problem comes from the point that if you are creating the folder manually it will be owned by current user (usually root)..
But apache is not root and its not in root user group so 755 can't work ..
An option is to create the folder with in the request of upload so it will be owned by apache (the same user who is uploading the file) and 755 will be just fine..
Best VPS Hosting : Digital Ocean
Reply


Messages In This Thread
RE: Can't upload to directory when 755 - by sv3tli0 - 01-23-2015, 05:49 AM
RE: Can't upload to directory when 755 - by Narf - 01-23-2015, 07:03 AM



Theme © iAndrew 2016 - Forum software by © MyBB