Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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 have installed Yaws webserver on my Windows Vista machine. Now I want to edit yaws.conf so that the server listen to another port instead of the default 8080.

But when I'm editing the file in a text editor, I can not save the file, because it says that another application is using the file. But I haven't started Yaws yet and I am logged in as an administrator.

I am using the latest version of Yaws, 1.88.

Any suggestions on how I can edit and save yaws.conf?

With Notepad++ I get this message, when trying to save:

Please check whether if this is opened in another program

And if I edit the file in Notepad I get this message (translated from swedish):

The file [path] could not be created. Check that the file path and name is correct.

share|improve this question
You should get a different error message, but just to be sure, are you sure the file isn't read-only? – Cocowalla Jul 21 '10 at 21:27
@Cocowalla: It looks like it's not read-only or write-protected if I look at the file properties. – Jonas Jul 21 '10 at 21:30
Are there any Swedish characters in the path? – Cocowalla Jul 21 '10 at 21:45
@Cocowalla: No the path is C:\Program Files (x86)\Yaws-1.88\yaws.conf – Jonas Jul 21 '10 at 21:50
And there is no other process that has a lock on the file:… – Jonas Jul 21 '10 at 21:51
up vote 2 down vote accepted

After asking you lots of questions, I only just realised that you are using Vista - so I think I may finally have a solution.

If you want to save anything to C:\Program Files or C:\Program Files (x86) in Vista or 7, you must run the application with escalated privileges.

Notepad++ should really be showing you a UAC prompt when you try to save to this area, ut does not yet:

I believe that if you start Notepad++ (or notepad, or whatever in escalated mode first, and then open and save the file it should work. If you're unsure how to do this, see here (it's note specific to Notepad++, but you want to use the same steps).

share|improve this answer
Thanks, that worked much better. – Jonas Jul 22 '10 at 8:01

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.