MyBB Community Forums

Full Version: Keep Old config or settings file for Full Upgrade?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
When doing a full upgrade, like 1.8.7 to 1.8.10, are there certain files that should not be overwritten?
This is from the install instructions https://docs.mybb.com/1.8/install/
wget --content-disposition https://www.mybb.com/download/latest -O mybb.zip
unzip mybb.zip "Upload/*"
mv Upload/* .
rm -Rf Upload mybb.zip
mv inc/config.default.php inc/config.php
chmod -R 0777 cache uploads inc/settings.php inc/config.php

I had to change it some for an upgrade:
cd /path/to/my/forum/
wget https://resources.mybb.com/downloads/mybb_1810.zip
unzip mybb_1810.zip "Upload/*"
rsync -v Upload/* .
rm -Rf Upload mybb_1810.zip
mv inc/config.default.php inc/config.php
chmod -R 0777 cache uploads inc/settings.php inc/config.php

Does that look right? Are there any files, config.php or settings.php maybe, that should not be overwritten?
Don't overwrite config.php. settings.php is just a cache and is automatically regenerated if missing.

https://docs.mybb.com/1.8/install/upgrade/
Thank you. That should probably be mentioned on https://docs.mybb.com/1.8/install/upgrade/
Currently all it say is this:
Quote:Full Upgrade

If your current version is more than one point below the newest version, you need to make a full upgrade. For example, if you’re using 1.6.1 and the newest version is 1.6.4, then you need a full upgrade. The same applies if you’re using 1.6.x and you’re upgrading to 1.8.x. You need to use the latest version of the software.

Download the latest version.
Quote:Upload all of the files and folders inside the package (from inside the Upload/ folder if using the full package), including the install/ folder (if it exists), overwriting the existing copies of the files in your file system.

This sort of covers it. It doesn't tell you to rename any files, only overwrite them. config.default.php is named as such so you don't accidentally overwrite your config file.
Yes, config.php isn't actually in the download to ensure it can't be overwritten.
Where it gets confusing, is if you are not an expert, you end up going to the installation instructions to remind yourself how to upload all the stuff. And then you see things there that make you wonder.

Something missing from the instructions is that you need to chmod stuff again after you overwrite stuff. That is what screwed me up and made me go to the install instructions and get confused and overwrite my config.

p.s. Now that I know the right way to do it, upgrading all my other MyBB forums from 1.8.7 to 1.8.10 went super fast and smooth!