Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using IIS7 on my local PC for PHP development. I have problem creating a writable file inside my document root where PHP would be allowed to write logs to.

I get this error:

Specified file is not writeable

How can I set a file to be writable by PHP? I tried right clicking the file and the Read-only checkbox is unchecked.

share|improve this question
up vote 2 down vote accepted

You need to apply the correct NTFS permissions to the file or folder where you want to write the file.

In many cases (Where your site is configured for anonymous access this will be the IUSR account, if you have custom settings you will need to figure out which account is providing the anonymous access.

The NTFS permissions you give depend on what you're planning to do, a good guide on NTFS Permissions is:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.