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

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: superuser.com/questions/166265/… –  Jonas Jul 21 '10 at 21:51
show 3 more comments

1 Answer

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: http://sourceforge.net/tracker/index.php?func=detail&aid=2936528&group_id=95717&atid=612382

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
add comment

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.