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
My Windows PC Missing hosts entry. This site may be inaccessible
Uh-oh! Could not update hosts file ERROR
Local ran into an EPERM
[Windows] Unable to provision site due to mysqld.exe error
EPERM Error. Tried the suggested solutions, but it didn't work
EPERM Error - Even After uncheking read only property in hosts file
Unable to fetch WordPress version from wp-includes/version.php -- 9-20-2018
Could not update hosts file local by flywheel
Cannot update hosts file on Windows, EPERM error
Have a problem with local
Uh oh! Unable to start site. Can't connect to mysql server
I cannot start a site and get an error message
Warning! missing entry. This site may be inaccessible
Missing Host Entry
Local hangs up in "Starting up Service Settings"
Warning! Missing hosts entry when trying to access the site Amazing College for tutorial
I need help to install WordPress and remove this host administrative privllages issue
Could not update hosts file
Whats iss this error? how can fix it? not install WP
Cannot Set up local site using existing template
I want to access WordPress via local but this error appears I can no longer access it
Cant access wordpress site and WP admin on local
Duplicate existing Local site into another Local instance
Error creating a site
I cannot login to wordpress admin or wordpress sub-pages
Assistance Needed with Export Error
Error message and cannot access my sites
EPERM Error. Tried the suggested solutions, but it didn't work
Site shows "Permissions denied" on /wp-includes/functions.php
Unable to get WP Admin
Adding Site from Cloud Backup & Google Fails
Local no longer open
Uh-oh! unable to start site
Unable to provision site: Error EPERM windows
Admin doesn't work: The requested URL was not found on this server
Admin doesn't work: The requested URL was not found on this server
Missing MySQL v8.0 - Not sure what to do
Cannot update WordPress version on Windows 10
Unable to update host files
Error after updating to Version 8.0.2+6509
Creating site
Local is requesting administrative privileges to modify and trust
“Uh-oh! Unable to provision site!” Error | Windows 11
Missing hosts entry + hosts file locked
After installing the LOCAL package, I proceeded to create the first website, but before creation I get this message, after which the creation procedure is cancelled
Deleting site, Local does not let me use same domain
Issues with accessing my website
Site is not able to be created
PROBLEME START SITE
PROBLEME START SITE
Uh-oh! The start site doesn't work!
Uh-Oh! Unable to start / provision site
Could not update hosts file/missing hosts entry
Uh-oh! Could not update hosts file, Please help
When i leave Visual Builder, the icons disappears
Can't run local on windows
Unable to load a data site from U3A Siteworks on my pc
Will not install/start
Uh-Oh! Unable to start / provision site
"WP Admin" and "Open site" don't work
Local no me deja ingresar mi usuario y contraseña
Not able to open Local
Uh-oh! could not update hostes file
I get this error when downloading Local: Local is requesting administrative privileges to modify your /etc/hosts file,
Unable to use site domain - WP Admin Not Found
Localwp not opening
Hello i try install local on my laptop it doesnt work , when launching site it dont connect to worpress. keep searching for wordpress version
What are the entries needed in the /etc/hosts file?
Downloaded Wordpress, it stays on the infinite loading screen, any solution?
Can't login + on the FE: The requested URL was not found on this server
WP admin does not start and site not accessible
Uh-oh we ran into an issue when pulling from flywheel
Can't create new sites, since Local is requesting administrative privileges
Localwp not open on Windows 10
Local not opening under Windows 10 Pro Versão 22H2
Hi am facing this issue can some one please help me
How do I modify the Nginx configurations in Local?
Error: EPERM: operation not permitted, open
Uh-oh! unable to start site
Hosts file issue
Can't open the website
Kapersky positive inside of Local/npm-cache
Error: Command Failed
How i solve missing host entry issue
Local Bad Gateway 502 error
Error 'unable to provision site'. Error: spawn EPERM
Local not starting on Windows 11
Somehow something changed my administrator privileges and is blocking Local from being able to edit the file
I dowload local on my computer but it keeps poping out this
Unable to delete site - folder missing
Cannot Open Local v6.6.1, runs in Task Manager as a Background Process
Error Installing WordPress while creating new site
No https (SSL) on Windows 10 PRO
How can i add host data manually?
Hi everyone
Ran into a problem trying to update host file
My SQL v8 missing
Win 10 - Uh-oh! Could not update hosts file
Error creating new website
SIte Import
Stuck on adding
MS Blocking site access?
**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
Local not working correcty
Can't upload hosts file and can't access site
Uh-oh! Could not update hosts file | Unable to Grant Admin Permission
Cartel "warninig! Missing hosts entry."
Local is requesting administrative privileges to modify your etc/hosts file
Could not update hosts files
Stuck at creating new site
I need help! Can't get Local running on My MacOs High Sierra
Persistent Hosts File Access Issue in LocalWP on Windows 11
Could not update host file
Unable to Proceed After Adding New Site in LocalWP
Unable to Proceed After Adding New Site in LocalWP
error flywheel missing hosts entry this site may be inaccessible
EPERM: operation not permitted, copyFile
Uh-oh! Unable to start site error
Heads up! local's router is having trouble starting
Unable to add a new site
Unable to fetch WordPress version from wp-includes/version.php -- 9-20-2018
Error On Starting Flywheel
Using WP Migrate Lite and importing to Local, no themes or media are migrated
Windows not launching the latest version of Local
502 Bad Gateway nginx/1.26.1
Local installed but does not start up
Database insert memory
About the problem in opening wordpress site and admin page
Can't able to start the website
This site may be inaccessible
Missing My SQL v8
Missing My SQL v8
Downloading WordPress - Not Happening
Unable to import SQL db into local WP site
Local WP Uh-Oh Unable to provision site. error enoent
Can't start site MYSQL connection error
Not being able to create site and PHp version is not loading
Import WP site to local issue
Error - Could not update hosts file
Permission Problems?
Uh-oh Unable to Provision site I need help
Local (Not Responding) when clicking on Open Adminer and then does nothing
Why can't I create a local site?
Error Message when Starting Site
Cant find HOSTS file
Issues removing installations
Install wordpress
Unable to communicate back with site to check for fatal errors, so the PHP change was reverted. You will need to upload your PHP file change by some other means, such as by using SFTP
Error: EPERM: operation not permitted, open
LocalWP is frozen when loading WP
What data is needed in hosts file?
Uh-oh! Could not update host files
One day it was all fine the next local was refusing my requests please help
Error Installing WordPress Local 7.1.0
Missing Mailpit
I When I Click On Open Site OR Admin To SHows to me Some error In Above Line highlighted in Red Line ,Kindly Tell Me The Solution?
Unable to start site receiving error
Uh oh! Unable to pull site (permissions issue)
Chrome: "This site can't be reached"
LocalWP won't start on my laptop after update
Delete site Problem