Check if the file is writable.
You can also edit the file by using your ftp end an editor on your computer.
Usually you don’t need a ftp service at your localhost.
Which software are you using to run your localhost? Are you on Windows or Mac?
Woops, posted twice.
Reply at this one please.