How to set read/write permissions in Apache on a Windows computer

后端 未结 2 1230
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-03 09:13

I am building a web page with Apache2.2, PHP5.2.2 on a Windows XP computer in a localhost configuration. I\'m developing app/pages/submitProcessor.php to validate photo uplo

相关标签:
2条回答
  • 2021-01-03 09:51

    If you are running Apache as a Service (the default setup for stand-alone & WAMP Apache installations), then that Apache Service is running under Windows' LocalSystem account.

    This Windows account already has full read and write ('777') permissions on most local paths.

    So when you read instructions to chmod 777 this, chmod 755 that, etc, ... you can ignore those parts of the instructions. Apache already can read-from and writeout-to those directories (unless it's a UNC path of a networked drive).

    Setting File Permissions with chmod on Windows for Apache and PHP

    I'm not 100% positive if that was the account on Windows XP (it is on Vista and up), but the behavior was the same.

    0 讨论(0)
  • 2021-01-03 09:53

    In Windows, access to directories/folders is set by right clicking the directory, and reading through the selections provided by the various tabs to set access and specific uses of the directory. Its not as fine-grained as CHMOD, but it was good enough for my purposes at the moment.

    0 讨论(0)
提交回复
热议问题