Configuration and requirements
With regards to XenForo upgrades, by default we will automatically check for stable updates (i.e. not beta/RC releases) but if early adoption and testing is your thing then you can enable receiving non-stable/pre-release upgrades under
Options > Basic board information. Of course that is only recommended on test installations which have been properly backed up (we do not take backups for you).
The upgrade checking for XF and official XF add-ons is enabled by default without any configuration because they originate from a trusted source. However, you may have reasons to disable one-click upgrades globally. These reasons could range from installations which pull code from a central version control system to having a secure configuration that would not allow the required paths to be writable.
Should you wish to
disable one-click upgrades, you simply add the following to your
src/config.php
file:
PHP:
$config['enableOneClickUpgrade'] = false;
However, add-on installations/upgrades originate from downloadable ZIP files from third party developers, which may not be something you wish to be installed as easily. Of course the same requirements in terms of file permissions apply too. As such, the add-on installer is actually disabled by default. To
enable install/upgrade from archive, you will need to add the following to your
src/config.php
file:
PHP:
$config['enableAddOnArchiveInstaller'] = true;
To make the process for both XF upgrades and add-on archive installs as resilient as possible, and to sanity check the environment to ensure that we wouldn't encounter any errors during the process (which would have the potential to leave your installation in an inconsistent state), we perform extensive checks to ensure that the target files/directories to be written/overwritten are writable by the PHP user. We go a step further with one-click XF upgrades to make sure that PHP is running as the same user who owns the files.
And, finally, in case it wasn't clear already, you will need to ensure that PHP is compiled with ZIP support which means that the
ZipArchive
class should be available.