Edit the php.ini file on your server. This may require root access. You can confirm the location of the php.ini file by viewing a phpinfo page like admin.php?tools/phpinfo in XenForo (look for "Loaded Configuration File" near the top). Then restart the web server after making changes to that file.