Joomla!1.6.5升级到1.7.0

Joomla!1.7.0如期发布,我的一个网站也从1.6.5升级到了1.7.0,过程很顺利。1.6系列的网站必须升级到1.6.5才能升级1.7.0。就国内服务器的速度来说,最好还是下载升级包进行升级。

在做升级之前一定要备份。

1、在线升级1.7.0

如果你的服务器在国外,那么用在线升级很方便,点击扩展-扩展管理-更新-查找更新,选中找到的升级包,然后点更新,即可。

如果服务器在国内的话,这种在线升级的方法还是别用了,会连接超时的,Joomla的服务器的下载速度不敢恭维,我的一个Wordpress网站(国内)在线升级都经常失败,而Wordpress的包才2M多,Joomla的包在7M,可想而知。

2、用扩展管理上传更新

下载1.6.5到1.7.0的升级包

(1)如果你的本地电脑上服务器的连接速度还不错的话,上传7M不会超时的话,可以直接在后台上传安装。

(2)如果上传速度不行,要么ftp上传到tmp目录,用从文件夹安装,要么就上传某一个服务器(或者就那台服务器)用通过网址远程安装。

3、手动升级

不建议采用,手动升级有些麻烦。还是下载那个升级包(或者完全包,但是要删除installtion文件夹),然后解压之后,再解压里面的Joomla_1.7.0-Stable-Update_Package.zip(升级包里)文件,把里面的文件全部上传,覆盖。

/templates/atomic/css/blueprint/src/blueprintcss-0-9-1-cheatsheet-3-5-3-gjms.pdf
/administrator/manifests/packages/joomla.xml
/administrator/templates/bluestork/css/rounded.css
/administrator/templates/bluestork/css/norounded.css
/administrator/templates/bluestork/images/j_corner_bl.png
/administrator/templates/bluestork/images/j_header_right_rtl.png
/administrator/templates/bluestork/images/j_crn_br_dark.png
/administrator/templates/bluestork/images/j_crn_br_black.png
/administrator/templates/bluestork/images/j_crn_tr_black.png
/administrator/templates/bluestork/images/j_crn_bl_dark.png
/administrator/templates/bluestork/images/j_crn_tr_med.png
/administrator/templates/bluestork/images/j_crn_bl_light.png
/administrator/templates/bluestork/images/j_header_right.png
/administrator/templates/bluestork/images/j_crn_br_light.png
/administrator/templates/bluestork/images/j_crn_tl_black.png
/administrator/templates/bluestork/images/j_crn_bl_black.png
/administrator/templates/bluestork/images/j_crn_tr_dark.png
/administrator/templates/bluestork/images/j_crn_bl_med.png
/administrator/templates/bluestork/images/j_header_left.png
/administrator/templates/bluestork/images/j_crn_tl_med.png
/administrator/templates/bluestork/images/j_crn_tl_dark.png
/administrator/templates/bluestork/images/j_crn_br_med.png
/administrator/templates/bluestork/images/j_crn_tl_light.png
/administrator/templates/bluestork/images/j_crn_tr_light.png
/administrator/templates/bluestork/images/j_corner_br.png
/administrator/templates/bluestork/images/j_header_left_rtl.png
/administrator/templates/hathor/html/com_modules/module/modal.php
/administrator/templates/hathor/html/com_modules/module/edit_assignment.php
/administrator/templates/hathor/html/com_menus/item/edit_modules.php
/administrator/templates/hathor/html/com_menus/items/default_batch.php
/administrator/templates/hathor/html/com_languages/language/edit.php
/administrator/templates/hathor/html/com_content/article/edit_metadata.php
/administrator/templates/hathor/html/com_categories/category/edit_metadata.php
/administrator/templates/hathor/html/com_categories/categories/default_batch.php
/administrator/components/com_menus/models/forms/item_options.xml
/administrator/language/overrides/xx-XX.override.ini
/administrator/help/helpsites-16.xml
/administrator/help/en-GB/Components_Content_Categories_Edit.html
/administrator/help/en-GB/Components_Weblinks_Categories_Edit.html
/administrator/help/en-GB/Components_Newsfeeds_Categories_Edit.html
/administrator/help/en-GB/Components_Banners_Categories_Edit.html
/administrator/help/en-GB/Components_Contact_Categories_Edit.html
/media/editors/codemirror/css/docs.css
/media/editors/tinymce/jscripts/tiny_mce/tiny_mce_gzip.js
/media/editors/tinymce/jscripts/tiny_mce/tiny_mce_gzip.php
/media/editors/tinymce/jscripts/tiny_mce/plugins/media/css/content.css
/media/mod_languages/images/ta.gif
/libraries/joomla/config.php
/libraries/joomla/import.php
/libraries/joomla/version.php

和这些目录

/plugins/authentication/example
/plugins/user/example
/plugins/content/example
/plugins/extension/example
/administrator/templates/hathor/html/com_modules/select
/administrator/templates/hathor/html/com_media
/administrator/templates/hathor/html/mod_popular
/administrator/templates/hathor/html/mod_status
/administrator/templates/hathor/html/mod_latest
/administrator/components/com_weblinks/helpers/html
/media/editors/tinymce/jscripts/tiny_mce/plugins/pagebreak/css
/media/editors/tinymce/jscripts/tiny_mce/plugins/pagebreak/img
/media/editors/tinymce/jscripts/tiny_mce/plugins/example

不想删的话,也可以,就是多一些垃圾,不过在以后升级的时候,也许垃圾文件是越来越多,还是建议删掉吧。 做完这些之后,要升级数据库了,如果下载的是完全包,那么在phpmyadmin里执行installation/sql/mysql/joomla_update_17ga.sql,要是升级包的话,在phpmyadmin里执行/administrator/components/com_admin/sql/updates/mysql/1.7.0-2011-06-06.sql 和administrator/components/com_admin/sql/updates/mysql/1.7.0-2011-06-06-2.sql两个文件。 其实这两个文件的内容为以下,把#_替换成你的前缀,如jos 1、languages表增加ordering字段,用于排序,并设置索引

 ALTER TABLE `#__languages` ADD COLUMN `ordering` int(11) NOT NULL DEFAULT 0 AFTER `published`; ALTER TABLE `#__languages` ADD INDEX `idx_ordering` (`ordering`); 

2、增加表associations表

 CREATE TABLE IF NOT EXISTS `#__associations` ( `id` VARCHAR(50) NOT NULL COMMENT 'A reference to the associated item.', `context` VARCHAR(50) NOT NULL COMMENT 'The context of the associated item.', `key` CHAR(32) NOT NULL COMMENT 'The key for the association computed from an md5 on associated ids.', PRIMARY KEY `idx_context_id` (`context`, `id`), INDEX `idx_key` (`key`) ) DEFAULT CHARSET=utf8; 

至此,你的网站就运行在1.7.0下了。也许,这个时候你的浏览器里出现的后台界面会有一些不工整,你需要清除浏览器的缓存,然后刷新即可。

发表评论

电子邮件地址不会被公开。 必填项已用*标注