Error: EPERM: operation not permitted, rmdir

Issue Summary

I am getting an error when I choose “Site Domain” instead of localhost when running NGINX, using Windows 11:

Error: EPERM: operation not permitted, rmdir

Full permissions are set for my user (and all users).

Troubleshooting Questions

  • Does this happen for all sites in Local, or just one in particular?

All sites.

  • Are you able to create a new, plain WordPress site in Local and access it in a Browser?

Same thing.


Change Local Preferences >> Advanced >> Router Mode to “Site Domains”. Running NGINX, PHP 8, MySQL 8 (all PHP versions and MySQL versions do this.

System Details

  • Which version of Local is being used?

Local 6.4.2+

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

Windows 11 Home

local-lightning.log (176.9 KB)

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.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.