Differences
This shows you the differences between the selected revision and the current version of the page.
punbb12:installation 2008/09/29 11:10 | punbb12:installation 2020/02/06 11:04 current | ||
---|---|---|---|
Line 3: | Line 3: | ||
===== Forum upgrading ===== | ===== Forum upgrading ===== | ||
- | You can download upgrades from [[http://punbb.informer.com/download/]] or [[http://punbb.informer.com/download/museum/]]. | + | * You can download the upgrade patches from [[https://punbb.informer.com/download/patch/]] and apply them using the [[http://en.wikipedia.org/wiki/Patch_(Unix)|patch]] utility. If there is no patch for upgrading from ''1.2.n'' to ''1.2.m'' directly, you should upgrade forum step by step to version you needed. This is recommended for modded installations: the ''patch'' is able to resolve some conflicts automatically, otherwise it points out the lines it couldn't work out. |
- | If there is no patch for upgrading from ''1.2.n'' to ''1.2.m'' directly, you should upgrade forum step by step to version you needed. | + | * You may download the changed files only from [[https://punbb.informer.com/download/]]. Recommended for updates from previous version of the forum and for non-modded forums. This is the easiest way to update the forum via FTP only. Update files version be version to upgrade from old versions. Old changed files archives are located at [[https://punbb.informer.com/download/museum/]]. |
- | Here is instructions how to upgrade forum from ''1.2.15'' to ''1.2.20'' version: | + | * You can always [[https://punbb.informer.com/download/hdiff/|take a look at hdiff]] to see the human-headable [[http://ginini.com/software/hdiff/|HTML version of diff]]. |
- | - Download upgrades from http://punbb.informer.com/download/museum/punbb-1.2.16-changed_files.zip, http://punbb.informer.com/download/museum/punbb-1.2.17-changed_files.zip, http://punbb.informer.com/download/punbb-1.2.17_to_1.2.20-changed_files.zip and unpack archives. | + | |
- | - Every upgrade include 3 steps: | + | |
- | - replace all files with files in directory ''<FORUM_VERSION>/upload''; | + | |
- | - copy file ''12_to_12*_update.php'' from ''<FORUM_VERSION>/extras'' to root of your forum, if it exists; | + | |
- | - run file ''12_to_12*_update.php'' | + | |
- | - Upgrade your forum to ''1.2.16'', than to ''1.2.17'' and to ''1.2.20''. | + | |
+ | ==== Example ==== | ||
+ | A forum is located in ''~/public_html/punbb/''. The forum URL is http://example.com/punbb/. The forum is using the MySQL database ''punbb_db'' with the user ''punbb_user'' and password ''punbb_pass''. There are no mods or the modded files were not updated. | ||
+ | To upgrade the forum from ''1.2.15'' to ''1.2.20'' version: | ||
+ | - Backup all your forum files and database: | ||
+ | - ''cd ~/public_html'' | ||
+ | - ''tar -czf ~/punbb.tgz punbb'' or download them all via FTP | ||
+ | - ''mysqldump -upunbb_user -ppunbb_pass punbb_db > ~/punbb_dump.sql'' or use other tool of your hosting provider | ||
+ | - Download the patches and place them in the parent directory of your PunBB root directory: | ||
+ | - ''cd ~/public_html'' | ||
+ | - ''wget https://punbb.informer.com/download/patch/punbb-1.2.15_to_1.2.17.patch'' or upload it via FTP | ||
+ | - ''wget https://punbb.informer.com/download/patch/punbb-1.2.17_to_1.2.20.patch'' | ||
+ | - Apply the patches: | ||
+ | - ''patch -ul -d punbb -p2 < punbb-1.2.15_to_1.2.17.patch'' | ||
+ | - ''patch -ul -d punbb -p2 < punbb-1.2.15_to_1.2.17.patch'' | ||
+ | * You will maybe have to manually resolve some conflicts, if there still were some modifications in the files being patched. | ||
+ | - Download and unpack the forum release archive, copy the file ''12_to_1220_update.php'' from ''extras'' to the root of your forum and open ''12_to_1220_update.php'' in your browser. Remove it when the database upgrade is finished: | ||
+ | - ''cd ~'' | ||
+ | - ''wget https://punbb.informer.com/download/punbb-1.2.20.tar.gz'' | ||
+ | - ''tar xzf punbb-1.2.20.tar.gz'' or do this locally on your computer | ||
+ | - ''cp extras/12_to_1220_update.php public_html/punbb/'' or upload it via FTP | ||
+ | - Visit http://example.com/punbb/12_to_1220_update.php. Follow the instructions. | ||
+ | - ''rm public_html/punbb/12_to_1220_update.php'' | ||
+ | Done. |