We have a Windows Troubleshooting guide below that goes over some common items worth checking. For example, make sure you’re running Local as an admin user, that you don’t have any security blockers, and that Local has access to update your Hosts file.
Subject: Still Facing the Issue After Trying Suggested Steps
Hello,
I followed all the troubleshooting steps mentioned in the Windows Troubleshooting guide, including:
Running Local as an Administrator Checking for any security blockers (Disabled Antivirus/Firewall temporarily) Ensuring Local has access to update the Hosts file Restarting Local and my computer Reinstalling Local after deleting the Local.
However, I’m still getting the same ERROR: no such file or directory, scandir error when creating a new site.
Is there any other solution I can try? Or is there a way to manually install the missing PHP version?
I also noticed another issue while trying to create a new site.
When I select the Preferred environment, it defaults to: PHP 8.2.23 | Web Server: Nginx | MySQL: 8.0.35
However, when I switch to Custom environment: I can select the Web Server (Apache/Nginx) I can select the Database (MySQL version) But I can’t select the PHP version—it keeps loading indefinitely and never lets me choose a version.
Since my previous issue is related to missing PHP files, could this be connected? Is there a way to manually fix or install PHP versions for LocalWP?
Uninstalled LocalWP completely. Deleted all LocalWP files permanently from:
C:\Users\Your_Username\AppData\Roaming\Local
C:\Users\Your_Username\AppData\Local\Local (including the Local updater file). Uninstalled LocalWP from the Control Panel as well. Reinstalled LocalWP from scratch.
After doing this, everything started working perfectly!
Thanks for the support! Hopefully, this helps anyone facing the same issue.