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

后端 未结 2 1229
爱一瞬间的悲伤
爱一瞬间的悲伤 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.

提交回复
热议问题