Skip to content

Instantly share code, notes, and snippets.

@BernhardBaumrock
Created April 4, 2021 13:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BernhardBaumrock/813739f3ca76c3c8b342fe377ed158d8 to your computer and use it in GitHub Desktop.
Save BernhardBaumrock/813739f3ca76c3c8b342fe377ed158d8 to your computer and use it in GitHub Desktop.
# list of commands that I used for upgrading phpBB3.2 to phpBB3.3
# I did not have any extensions or other languages installed so I skipped these steps!
# https://www.phpbb.com/support/docs/en/3.3/ug/upgradeguide/upgrade32/
# backup your files
cd /path/to/your/forum
# go to parent folder
cd ..
# backup your database
# do that manually if necessary
# download phpbb
wget https://download.phpbb.com/pub/release/3.3/3.3.3/phpBB-3.3.3.zip
# unzip files to phpBB3 folder
unzip phpBB-3.3.3.zip
# rename new forum to new
# rename old forum to old
mv phpBB3 new
mv forum old
# delete files that will be replaced by old settings
rm new/config.php
rm -r new/images
rm -r new/files
rm -r new/store
# delete install directory
# we will do the database update from CLI
rm -r new/install
# now copy necessary files to the new forum
cp old/config.php new/config.php
cp -r old/ext new/ext
cp -r old/images new/images
cp -r old/files new/files
cp -r old/store new/store
# upgrade the database
php ./new/bin/phpbbcli.php db:migrate --safe-mode
# backup old forum and then rename new one
mv forum backup
mv new forum
# now your forum should work
# you might need to set general > board settings > disable board = NO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment