One or two sentence summary of the issue.
asks for admin privilege’s and gives an error could not update hosts file. It also tells me missing C++ 2015-2019 redistributables depedency.
Does this happen for all sites in Local, or just one in particular?
Are you able to create a new, plain WordPress site in Local and access it in a Browser?
Site doesn’t get created until I close and reopen local but I can’t access it at all in browser and get an error upon trying to start site.
Describe the steps that others can take to replicate this issue. If you have screenshots that can help clarify what is happening, please include them!
Click start site and get error messages.
Which version of Local is being used?
What Operating System (OS) and OS version is being used?
For example: macOS Catalina or Windows 10 Professional
Attach the Local Log. See this Help Doc for instructions on how to do so:
I tried it but still doesn’t work. It says its missing still and then I get another error about not being able to update host files. It was says it’s requesting admin privileges but It never pops up. local-lightning.log (171.8 KB)
If it’s working normally with Router Mode enabled then that indicates something was indeed creating a conflict with Local. It could have been something leftover from XAMPP, or something still running security interference.
You’re totally safe to develop in LocalHost mode. Some features like Live Links won’t work in this mode but the site can be pushed to WP Engine, however when you’re ready.
If you want to get Site Domains working again you can use some of the troubleshooting steps on that document linked above in order to help investigate any lingering port conflicts.
Hi @Crockoclock - It certainly could be. It sounds like it isn’t getting removed/uninstalled fully.
If you aren’t able to figure out how to completely wipe it, you can try at least checking and end any port conflicts using these steps:
Stop all sites that are running in Local
Force quit Local
(If using Mac) Run the command lsof -nP -iTCP -sTCP:LISTEN
(If using Windows) Run the command netstat -ano
What you’ll be looking for here is to see when sites are stopped and Local is properly shut down if there are still programs running on ports 80 and 443. These may be conflicting with Local or the system may be reporting Local is still running.
Once you run that command you should see a list of listening ports. If you see a particular program making use of those ports, you can then kill that process by running sudo kill -9 XXX where XXX is the PID number of that process. (On Windows you will use taskkill /F /pid XXX where XXX is the PID number of that process)
After that, you should be able to retry. Keep us posted if you have any questions or continuing issues.
It’s tough to say, it seems like there is still some type of permissions issue or security blocker on your machine. Do you have another machine you can attempt to test with? Otherwise, you may need to do some searching and troubleshooting to try and diagnose further what may be causing the problem.
For one last try, since you’ve made a lot of changes and disabled many potentially conflicting things, you could try these steps to do a big refresh:
Export any sites that you have on Local and save them to a folder somewhere on your computer.