I migrate a flarum today but some unexpected error happened to me. I migrated the old flarum folder system and database to new server, edited nginx.conf settings, adjusted config.php and use chown -R 755 <path> to give permission to /public,public/assetsand storage. Having done all of them above, I use php flarum cache:clear to clear cache, and visit my website.
However, an 500 internal error encoutered, I knew that the request can't be handled by index.php, but I don't clear about why the index.php cannot be accessed. Did I use the wrong chown command to the folders above?