Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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: http://www.windowsecurity.com/articles/Understanding-Windows-NTFS-Permissions.html

share|improve this answer

Your Answer

 
discard

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.