Patch Files
This method is for advanced users who wish to use a patch/diff style update process. If you don't know what the patch utility is, this method is not for you.
A number of patch files are provided and you should choose the one that corresponds to the version of the board that you are currently running. For example, if your current version is 3.2.0 and you are updating to 3.2.2, you need the phpBB-3.2.0_to_3.2.2.patch file.
Make a backup of the original files
Make a backup of the database
Locally, perform for the following steps:
Download the phpBB 3.2 Patch Files archive
Extract the
install/
directoryExtract the
vendor/
directoryExtract the desired patch file for your version
On your web server, delete the
vendor/
directoryUpload the
install/
directoryUpload the
vendor/
directoryUpload the patch file to the parent directory containing the phpBB core files (i.e. index.php, viewforum.php, etc.). With this done you should run the following command:
patch -cl -d [PHPBB DIRECTORY] -p1 < [PATCH NAME]
(where PHPBB DIRECTORY is the directory name your phpBB Installation resides in, for example phpBB, and where PATCH NAME is the relevant filename of the selected patch file). This should complete quickly, hopefully without any HUNK FAILED comments.If you do get failures, you should look at using the Code Changes page to update the files which failed to patch. Alternatively, if you know how, you can examine the .rej files to determine what failed where and make manual adjustments to the relevant source.
Update the database:
Tip
For large boards, you may wish to update via the command line instead of using a web browser. From your board's root, execute the following command:
php ./bin/phpbbcli.php db:migrate --safe-mode
Using your web browser, visit /install/app.php/update in your board's root (e.g. http://www.example.com/yourforum/install/app.php/update). You will see the following warning message: No valid update directory was found, please make sure you uploaded the relevant files. This is expected and not an error.
Select "Update database only" and click Submit
Wait for the progress bar to reach 100% and for a message indicating that the update has completed
Depending on your previous version this will make a number of database changes. You may receive FAILURES during this procedure. They should not be a cause for concern unless you see an actual ERROR, in which case the script will stop (in this case you should seek help via our forums).
Delete the
install/
directory on the serverDelete the uploaded patch file from the server
Licensed under the CC Attribution-NonCommercial-ShareAlike 3.0 license