Do the following (adapted from my instructions in this post):
- Make sure your server meets the minimum requirements (particularly PHP and MySQL/MariaDB versions, these requirements changed after Beta 7)
- Disable all your third party extensions.
- Back up your Flarum database, your
assets/ folder, your composer.json, composer.lock and config.php files.
- Create a new folder on your website (I'll call it newFolder now, use the name you prefer)
- FOR SHARED HOSTING
- Run the
composer create-project flarum/flarum . --stability=beta command in the newFolder
- Using this guide move the files from the
public/ folder into the newFolder
- Change the index.php and flarum files into the code I've linked for both
- Test that this works by navigating to newFolder on the web
- FOR VPS HOSTING
- Run the
composer create-project flarum/flarum . --stability=beta command in the folder above newFolder (or your preferred location)
- Move the files from
public/ to newFolder
- Ignore this step unless you have a different preferred location: edit the
index.php to reflect the location of your Flarum files
- Test if this works by navigating to newFolder on the web, you should see Flarum's installer load. If it doesn't, fix it or use the instructions above for Shared Hosting
- ALL TOGETHER NOW
- Install Flarum as normal by navigating to newFolder on the web to a new database
- Import your old Beta 7 database
- Run the following commands in newFolder:
composer update --prefer-dist --no-dev -o --with-all-dependencies
php flarum migrate
php flarum cache:clear
- Return to newFolder on the web, ensure that Flarum is working correctly
- Update/install new extensions, all non-Flarum extensions will need to be replaced or re-installed, check the Extensions tab to find new versions
- Once everything is working, move the files from newFolder to your existing Flarum folder
- Change the URL field in `config.php to the new location
- Profit $$$
If you run into problems, please tell me exactly what step you have had issues with, and what errors (if any) there are. I'm writing these from general experience/reference and have not tested directly, but they should work.