Body: <p>I'm trying to install a fresh copy of Craft 4.</p>
  <p>The following error:</p>
  <pre><code>message: &quot;An error occurred while executing the \&quot;craft\\migrations\\Install migration: rename(): The first argument to copy() function cannot be a directory&quot;
  </code></pre>
  <p>returned by the endpoint</p>
  <pre><code>/index.php?p=admin%2Factions%2Finstall%2Finstall&amp;v=.....
  </code></pre>
  <p>After scouring the internet for an answer, I'm hopelessly lost as to why this error is thrown.</p>
  <p>In my <code>composer.json</code>, I have  <code>&quot;craftcms/cms&quot;: &quot;^4.0.0.1&quot;,</code> and the whole thing is launched from a container based on <code>craftcms/nginx:8.0</code>.</p>
  <p>Has anyone seen this before?
  Thanks in advance!</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-07-06T03:47:58.223Z
Comments.Text: Can you find the full stack trace leading up to the error in the Craft `storage/logs` folder and edit the original question to share it?
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-07-06T10:22:57.193Z
Comments.Text: We solved this, the issue was the presence an existing config/project folder, that remained after a test install locally. Removing this folder solved the issue. Thanks for the attention tho! :)
Comments.UserDisplayName: Eric
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-07-08T21:02:50.157Z
Comments.Text: Ahh... glad you're all sorted! Want to add that as an official answer in case it ends up helping someone in the future?
Comments.UserDisplayName: Brad Bell
Tags: <installation><craft4>
Title: Craft 4 install error at craft/migrations/install
ThreadText: # Craft 4 install error at craft/migrations/install
  
  (Asked by: username_0 on 2022-06-22)
  
  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
  
  ```
  /index.php?p=admin%2Factions%2Finstall%2Finstall&v=.....
  
  ```
  
  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": "^4.0.0.1",` and the whole thing is launched from a container based on `craftcms/nginx:8.0`.
  
  Has anyone seen this before?
  Thanks in advance!
  
  **Tags:** installation, craft4
  
  > **Comments:**
  > **username_1**: Can you find the full stack trace leading up to the error in the Craft `storage/logs` folder and edit the original question to share it?  
  > **username_0**: We solved this, the issue was the presence an existing config/project folder, that remained after a test install locally. Removing this folder solved the issue. Thanks for the attention tho! :)  
  > **username_1**: Ahh... glad you're all sorted! Want to add that as an official answer in case it ends up helping someone in the future?  
  
  ---
  
  ## 0 answers
  
  