I try to upgrade my flarum software and at the end i have a lot of htaccess 500 error so i find a solution on this forum that i share with you
so we have for example our website webroot at /home/my-website/public_html
First we go to the website root
cd /home/my-website
mkdir flarum
cd flarum
composer create-project flarum/flarum . --stability=beta
if you have an issue with allow_url_fopen option you can use this command
which composer
/opt/cpanel/composer/bin/composer
Then
php -d allow_url_fopen=1 /opt/cpanel/composer/bin/composer create-project flarum/flarum . --stability=beta
If you are upgrading
- Make a backup or move your existing Flarum installation into a different directory.
- Copy over the following files from your old Flarum installation:
config.php
cp /path_to_backup/config.php /home/my-website/flarum/
Now we copy files in public directory to the webroot
cd /home/my-website/flarum
cp -a /public/. ../public_html/
If you are upgrading
Copy assets directory from your old Flarum installation to public_html:
assets (copy into your public directory)
cp -a /path_to_backup/assets/. /home/my-website/public_html/assets/
then we update flarum
cd /home/my-website/flarum
composer update --prefer-dist --no-dev -o --with-all-dependencies
php flarum migrate
php flarum cache:clear
Now we Customize paths
nano /home/my-website/public_html/index.php
and we change
require '../vendor/autoload.php'; to require '../flarum/vendor/autoload.php';
'base' => DIR.'/..' to 'base' => DIR.'/../flarum',
'public' => DIR.'/../public', to 'public' => DIR.'/../flarum/public',
'storage' => DIR.'/../storage', to 'storage' => DIR.'/../flarum/storage',
Now you can open your forum in your browser