I'm trying to install a fresh copy of Craft 4.

The following error:

message: "An error occurred while executing the \"craft\\migrations\\Install migration: rename(): The first argument to copy() function cannot be a directory"

returned by the endpoint


After scouring the internet for an answer, I'm hopelessly lost as to why this error is thrown.

In my composer.json, I have "craftcms/cms": "^", and the whole thing is launched from a container based on craftcms/nginx:8.0.

Has anyone seen this before? Thanks in advance!

New contributor
Eric is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.


Your Answer

Eric is a new contributor. Be nice, and check out our Code of Conduct.

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.