turtlekey if you are moving index.php
out of public
, make sure you keep the extension as .php
.
See https://flarum.org/docs/install.html#customizing-paths for the official instructions to remove the public folder.
If you get any error, please post it here so we can understand what is happening.
Assuming your title is a second question, it's a Composer requirement. You can only call composer create-project
on an empty folder, otherwise there could be conflicts between exiting files and those created by the create-project
command.