1 Replies - 2460 Views - Last Post: 30 April 2014 - 10:13 AM

#1 Ntwiles  Icon User is offline

  • D.I.C Addict

Reputation: 148
  • View blog
  • Posts: 830
  • Joined: 26-May 10

Permissions on Windows

Posted 26 April 2014 - 08:54 PM

I'm having some trouble with users being able to upload files on my windows web server. I assume this is a permission issue, since I can upload them fine locally. I've been using PHP's chmod() and fileperms() functions, but I don't know how well I can trust their results since I'm not running a Linux system.

I can try to chmod the directory to "0666" with no error, but running fileperms() immediately after gives me "0555". I've set the permissions manually through the explorer to allow all from everyone, which I assume is the Windows equivalent of "0777", but that seems to get no result either. Can someone tell me how to make this work?

Edit: Disregard, I suck phalluses. I had the folder set to read-only.

This post has been edited by Ntwiles: 26 April 2014 - 09:39 PM


Is This A Good Question/Topic? 0
  • +

Replies To: Permissions on Windows

#2 no2pencil  Icon User is online

  • Admiral Fancy Pants
  • member icon

Reputation: 5354
  • View blog
  • Posts: 27,314
  • Joined: 10-May 07

Re: Permissions on Windows

Posted 30 April 2014 - 10:13 AM

666 on Linux is read & write. 555 on Linux is read & execute. You need to set a directory to execute in order to enter into it. I would assume that's why it gets re-set.

All that aside, I would assume that Apache logs the error. What do the logs say?

View PostNtwiles, on 26 April 2014 - 11:54 PM, said:

Edit: Disregard, I suck phalluses. I had the folder set to read-only.

Oops, didn't read this. Glad you figured it out :)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1