First install the test environment in aaPanel
Create a website and enter your domain name
Choose to create a database
If you have multiple php,Check if your php cli is 71
If not, please go to the panel switch
Start installing composer
Go to your site root directory
curl -sS https://getcomposer.org/installer | php
Check if composer works
Set up the php environment
Remove these php functions that are disabled by default by the panel
Install the file_info extension
composer create-project flarum/flarum . --stability=beta
If the process is killed during the installation process
Please add Swap in Linux Tools
If you see this prompt after the installation is complete, don't panic,
This is just a warning message for developers and means that Laravel / Flarum should take the time to update the Carbon dependency. It shouldn't cause any problems for you.
Carbon 1 is deprecated, see how to migrate to Carbon 2.
You can run './vendor/bin/upgrade-carbon' to get help in updating carbon and other frameworks and libraries that depend on it.
Now you can access your FLARUM domain name.
If permissions denied,
Go to the site settings settings directory owner for www
You can now go to the FLARUM installation page.
Thanks for reading