I have a persistent issue with Local on Windows 11 regarding the modification of the hosts file. I know there are already many posts on this topic, but no matter what I do, I can’t solve the problem.
The error message is: “Local is requesting administrative privileges to modify your hosts file…”
I attached the .log file
Steps:
I have granted full control to the hosts file for all users.
Temporarily disabled my antivirus (Bitdefender).
Reinstalled Local multiple times, restarted computer.
I run LocalWP with administrative privileges.
System Details
Local Version: 10.0.22631 Build 22631
Operating System (OS) and OS version: Microsoft Windows 11 Pro
Security Reminder
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.
It is my home computer and I don’t have other antivirus, or firewall applications running.
My hosts file has full control for all users and apps. The screenshots shows the error pop-ups and hosts settings.
Can you click on the three dots ... in that first prompt and see if notifications for Local are disabled or go into your Notification settings and check those?
If you click on Fix It does that bring the pop up back?
If you click on the 3 dots and go into your Notification settings can you find anything in there that might be disabled?
Essentially that second pop up, and clicking Yes is what is missing here. I’m not sure why it’s not showing up on your machine as I’m testing it on my Windows machine but I can’t replicate it or find any other specific setting that might be blocking it here.
Have you checked your notification settings or tried clicking on Fix It? In my screenshots above that second prompt should be showing up so you can allow access, if it’s not then something might be blocking it.
You could start here for some other items to check:
@Maxianna20@Tokio and any other future users who reach this thread. One of the Local devs shared this with me today from a past post as a potential solution for the permission to make changes prompt not appearing in Windows:
Thanks for trying, @tokio. No rush but if you don’t mind you could try manually pulling your Local Log and sharing that with us? Some instructions here on how to do that for Windows.