这取决于您从哪个版本升级到哪个版本,可能会有些复杂。
2006 年 7 月:注意:对于从 2.0.10 ... 2.0.13.2 升级到 2.0.14 的情况,请参阅 2.0.14 发行说明以下是一些辅助操作的说明。如果您需要通过多个 xoops 版本进行升级 - 比如从 2.0.9 升级到 2.0.13,建议逐个进行。----------------------------------------------------基本方法:1- 查找您拥有的 xoops 版本 2- 确定正确的升级文件包并将其下载 3- 解压缩包并检查 README 文件 4- 备份现有站点:即您的数据库和文件 5- 关闭站点以供访客。 6- 可选:设置回滚。您可以通过记录升级文件集中的每个新文件来完成此操作,然后转到您服务器上现有的文件,并将它们重命名为不同的名称。
升级文件:header.php 服务器上现有文件:old-header.php
Do this for each file that is part of the upgrade. The purpose of this will obvious, if your upgrade goes wrong. You still have the old files available to rollback to. It can be a long process.
7- Copy your upgrade files into your xoops directories maintaining identical structure. This can be achieved in 2 ways. Either opening each directly and manually copying files over, OR drag and drop the whole contents of the upgrade patch into your xoops main directory.
This needs to be done with caution. Make sure that the upgrade files are packed in correct relative directories first. Also make sure your FTP settings are correct for updating/overwriting newer files. If you opted for a rollback you will not be overwriting any files as your existing files will be already renamed... right? If in any doubt, practice upgrades first on a test site or local server.
HACKS !!! Note, if you have hacked any files that are included in an upgrade, you will lose the hacks as they will be overwritten or deprecated. Keep notes of all hacked files. Finally, there will usually be a requirements to UPDATE the system modules and other modules. Again refer to upgrade instructions. -------------------------------------------------------- For a visual tutorial on upgrading your site please see
System Upgrade Tutorial ------------------------------------------------------- Additional details submitted by
Rabideau on 13-Jan-2005 22:16 I have just drafted this Update Procedure, I hope people find it useful.
This procdure may be worth following if you use any of the following: 1.Custom Themes If you use non-standard themes be certain that these work with the new version!
2.New modules (beta, RC, etc.) , especially from the development site which may not be ready for prime time (in otherwords, modules that may not be part of the overall XOOPS release package.
3.Obsolete/old modules or any modules which are behind the XOOPS release cycle. Not all modules run on all versions of XOOPS!
Low-risk, but time costly, XOOPS upgrade procedure. 1. Copy a full version of the latest XOOPS release to your local (development) machine. 2. Do a full backup of your complete online (production) site to your local (development) machine. 3. Identify
EVERY template change you have made to the XOOPS standard set. (I recommend keeping them in a local directory structured identically to match your production XOOPS site). 4. Export your production database (using phpMyAdmin?) to your local (development) machine. Be certain to check the variables for "Strucure" such that you can easily recreate a duplicate image of your production system on your local (development) machine. (I recommend selecting all of the following: Structure: Add DROP TABLE Add IF NOT EXISTS Add AUTO_INCREMENT value Enclose table and field names with backquotes Add into comments Creation/Update/Check dates Data: Complete inserts Extended inserts 5. Create a separate (new?) directory on your local development machine and load the latest complete version of XOOPS there. 6. Perform an Install of XOOPS on your local machine (just as if you were building a site for the first time). 7. Login to the newly created XOOPS blank site. 8. Make certain that your new blank XOOPS (new version) site functions. (It will NOT look like your production site). 9. Log off the site. 10. This will seem odd (but it is an excellent preventative set of activities). Copy all of your desired modules into the newly created XOOPS site modules area. Re-login to the new XOOPS site and access Admin==>Modules; make certain everything is visible and accessible. (Create or re-create missing module components as required). 11. Load the phpMyAdmin (even if you don't plan on using it on your production site; this will make the following steps much easier). 12. Install and then Login to your MySql (phpMyAdmin?) database and drop all tables from your new XOOPS database (this will make duplication of your production database quite easy). 13. Having dropped all your tables, go to SQL and browse to your production database backup (there should be an sql file somewhere on your machine that contains the contents of your production database; this was downloaded in step 4 above. Note: Steps 4 and 11 may need to be updated if your production database has been updated during this upgrade process-- it is best to perform this entire update process while your production site is closed for upgrade. 14.
This step is extremely important: save your production site mainfile.phpfile-- do not lose it or over-write it; else the rest of this process will not succeed! 15. Next make certain all of the following are copied onto the newly created XOOPS installation (on your development machine) modules (all of your current, in use modules) themes (all unique and non-standard themes)-- very important! customizations (hacks to Xoops) 16. Once you are able to access XOOPS go to the Admin==>Modules page and update all of your Modules. 17. Once all Modules are Updated, update System. 18. Test your new and now updated XOOPS system. If everything works like you had hoped for, you may now upload a copy of your local development site to your live website.
Remember to upload your original mainfile.php. 19. Once you have uploaded (copied) your XOOPS directories from your local development machine to your website, you can try to access your site. 20. If it works great... if not, you may need to do any or all of the following: -Go back to step 6 and repeat everything through step 22 again, except this time you performing those operations on your live site. -Upload your old (original) mainfile.php (to gain site access) and go from there to repeat Steps 19-22 on your newly uploaded 'live' website.
XOOPS 版本更新 comprehensive guide
上述添加内容是对更新过程一个非常全面的版本。感谢 Rabideau 为准备这份文档所做的工作,我知道这是经历非常痛苦的环境诞生,给您带来了相当多的网站问题。感谢您准备这份文档并向社区贡献了指导。我认为我们都可以从这个经历中吸取教训。
理查德