0

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.

8
  • You should get a different error message, but just to be sure, are you sure the file isn't read-only?
    – Cocowalla
    Jul 21, 2010 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, 2010 at 21:30
  • Are there any Swedish characters in the path?
    – Cocowalla
    Jul 21, 2010 at 21:45
  • @Cocowalla: No the path is C:\Program Files (x86)\Yaws-1.88\yaws.conf
    – Jonas
    Jul 21, 2010 at 21:50
  • And there is no other process that has a lock on the file: superuser.com/questions/166265/…
    – Jonas
    Jul 21, 2010 at 21:51

1 Answer 1

2

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).

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .