Can't work with Local at all, problems with host file and php 8 and above

What issue or error are you experiencing?

i have removed Local totally and re-installed it, but facing the same issues. it is unworkable!! when i try to create a new site i get this error:


i have checked the hosts file and it has all permissions, and it is not read-only. also i have checked windows defender and Local is allowed.
another issue i get when i try to choose php 8 and above, i get this message:

so at the moment the only thing that works for me is if i change the prefrences to localhost and php version 7.4.
any idea what’s wrong?


What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc

i have included all above


System Details

  • Local Version:
    9.1.1
  • Operating System (OS) and OS version:
    windows 11 Pro 23H2

Local Logs

Attach your Local Logs here (Help Doc - Retrieving Local’s Log)
2024/12/13 18:41:29 [warn] 12748#6612: the “listen … http2” directive is deprecated, use the “http2” directive instead in C:/Users/Lenovo/AppData/Roaming/Local/run/router/nginx/conf/server-block-ssl.conf:1
2024/12/13 18:41:29 [warn] 12748#6612: the “listen … http2” directive is deprecated, use the “http2” directive instead in C:/Users/Lenovo/AppData/Roaming/Local/run/router/nginx/conf/server-block-ssl.conf:2
2024/12/13 18:41:29 [warn] 13420#3236: the “listen … http2” directive is deprecated, use the “http2” directive instead in C:/Users/Lenovo/AppData/Roaming/Local/run/router/nginx/conf/server-block-ssl.conf:1
2024/12/13 18:41:29 [warn] 13420#3236: the “listen … http2” directive is deprecated, use the “http2” directive instead in C:/Users/Lenovo/AppData/Roaming/Local/run/router/nginx/conf/server-block-ssl.conf:2
2024/12/14 11:35:01 [warn] 1184#11244: the “listen … http2” directive is deprecated, use the “http2” directive instead in C:/Users/Lenovo/AppData/Roaming/Local/run/router/nginx/conf/server-block-ssl.conf:1
2024/12/14 11:35:01 [warn] 1184#11244: the “listen … http2” directive is deprecated, use the “http2” directive instead in C:/Users/Lenovo/AppData/Roaming/Local/run/router/nginx/conf/server-block-ssl.conf:2
2024/12/14 11:35:01 [warn] 16996#15828: the “listen … http2” directive is deprecated, use the “http2” directive instead in C:/Users/Lenovo/AppData/Roaming/Local/run/router/nginx/conf/server-block-ssl.conf:1
2024/12/14 11:35:01 [warn] 16996#15828: the “listen … http2” directive is deprecated, use the “http2” directive instead in C:/Users/Lenovo/AppData/Roaming/Local/run/router/nginx/conf/server-block-ssl.conf:2


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.

Hi @Heid22

Based on that VCRUNTIME error you might start with one of the solutions below and see if that helps to resolve your problems here:

https://answers.microsoft.com/en-us/windows/forum/all/vcruntime140dll-and-msvcp140dll-missing-in-windows/caf454d1-49f4-4d2b-b74a-c83fb7c38625