Local Community

File Permissions / Windows 11 - provisioning fails and files inaccessible

Issue Summary

When pulling a site from WPEngine to Local on Windows (possibly where the files have been previously developed on a Mac), the operation fails to complete due to permissions errors and the site gives a 403 error

Troubleshooting Questions

  • 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?


  • pull site from WPEngine
  • start site
  • => 403 error - access denied
  • files are not even viewable or editable by the operating system eg .htaccess

System Details

  • Which version of Local is being used?

  • What Operating System (OS) and OS version is being used?
    Windows 11 Home

  • Attach the Local Log.
    (will attach shortly)

this error pops up at the end

[Window Title]

[Main Instruction]
Uh-oh! Unable to change site domain to host.

Error: Command failed: “C:\Program Files (x86)\Local\resources\extraResources\lightning-services\php-8.1.9+8\bin\win64\php.exe” “C:\Program Files (x86)\Local\resources\extraResources\bin\wp-cli\wp-cli.phar” --path=“S:\work\bitbucket\client\mysite\website\app\public” --require=“C:\Program Files (x86)\Local\resources\extraResources\bin\wp-cli\local-wpcli-error-reporting.php” --skip-plugins --skip-themes --url=mysite.wpengine.com “search-replace” --all-tables-with-prefix “http://mysite.wpengine.com” “http://mysite.local

at ChildProcess.exithandler (node:child_process:407:12)
at ChildProcess.emit (node:events:527:28)
at maybeClose (node:internal/child_process:1092:16)
at ChildProcess._handle.onexit (node:internal/child_process:302:5)


Hi @codemonkeynorth

Do you have any antivirus, security, or firewall applications that could be blocking Local?

More details about troubleshooting this here: Router Mode

no. it’s the same issue here

have to take ownership in command prompt

takeown /f . /r /d Y

I never got that issue resolved, and ended up going back to WAMP, which is a shame.

I notice you also have your sites on a different drive than C:
I believe this has something to do with the issue.