Local Community

Help! I'm running into an EPERM error with the hosts file on Windows

This is usually caused by the hosts file being set to read-only or locked by anti-virus.


1. Remove Read-only Attribute

  1. Go to C:\Windows\System32\drivers\etc
  2. Right-click on the hosts file and go to “Properties”
  3. Uncheck “Read-only”
  4. Click “Apply”
  5. Re-open Local

Screenshot


2. Anti-Virus/Internet Security

Avira

See https://answers.avira.com/en/question/avira-blocks-hosts-file-what-can-i-do-90

Kaspersky Total Security

  1. Open Kaspsersky Total Security
  2. Go to “More Tools”

  1. Go to “Application Control » Details”

  1. Click “Manage applications”

  1. Right-click on “Local by Flywheel” and set its Restrictions to Trusted


If the steps above do not work, you can try adding the Window’s hosts file to the exclusions list in Kaspersky to resolve this issue. See https://support.kaspersky.com/12160 for details on how to add an exclusion.

Once you have the exclusion window open, exclude this path: C:\Windows\System32\drivers\etc\hosts

Local ran into an eperm error when trying to update the hosts file
I am getting an EPERM error message
Trying to fix Warning! Missing hosts entry. This site may be inaccessible
HELP PLEASE! Missing hosts entry. WINDOWS 7
Error On Starting Flywheel
Uh-oh! Could not update hosts file ERROR
My Windows PC Missing hosts entry. This site may be inaccessible
Conflicts with Kaspersky
Local ran into an EPERM
Unable to fetch WordPress version from wp-includes/version.php -- 9-20-2018
EPERM Error - Even After uncheking read only property in hosts file
Help me please please
[Windows] Unable to provision site due to mysqld.exe error
Could not update hosts file local by flywheel
Could not update hosts files
EPERM Error. Tried the suggested solutions, but it didn't work
Missing hosts entry + hosts file locked
Stuck at creating new site
Uh-oh! could not update hostsfile
EPERM: operation not permitted, copyFile
Warning! Missing hosts entry when trying to access the site Amazing College for tutorial
Uh-oh! Could not update hosts file | Unable to Grant Admin Permission
Can't upload hosts file and can't access site
Cannot Set up local site using existing template
Missing Host Entry
I need help! Can't get Local running on My MacOs High Sierra
error flywheel missing hosts entry this site may be inaccessible
Have a problem with local
Could not update hosts file
Cartel "warninig! Missing hosts entry."
Warning! missing entry. This site may be inaccessible
Cannot update hosts file on Windows, EPERM error
I dowload local on my computer but it keeps poping out this
Error On Starting Flywheel
Somehow something changed my administrator privileges and is blocking Local from being able to edit the file
Unable to fetch WordPress version from wp-includes/version.php -- 9-20-2018
Creating site
Cannot Open Local v6.6.1, runs in Task Manager as a Background Process
SIte Import
Whats iss this error? how can fix it? not install WP
Error creating new website
**Apache is not an available option**
All site are stuck by loading
New user encountering several errors after installation
Need assistance with installing Local properly
Hosts file issue
Local not working correcty
Ran into a problem trying to update host file
Win 10 - Uh-oh! Could not update hosts file
EPERM Error. Tried the suggested solutions, but it didn't work
Hi everyone
How can i add host data manually?
No https (SSL) on Windows 10 PRO
Error Installing WordPress while creating new site
Stuck on adding