{"id":3548,"date":"2008-10-04T19:50:22","date_gmt":"2008-10-04T11:50:22","guid":{"rendered":"https:\/\/2blog.ilc.edu.tw\/176\/2008\/10\/04\/moodle%e5%8d%87%e7%b4%9a-1-5-4-to-1-8-6\/"},"modified":"2021-03-18T19:55:25","modified_gmt":"2021-03-18T11:55:25","slug":"moodle%e5%8d%87%e7%b4%9a-1-5-4-to-1-8-6","status":"publish","type":"post","link":"https:\/\/2blog.ilc.edu.tw\/linkc\/2008\/10\/04\/moodle%e5%8d%87%e7%b4%9a-1-5-4-to-1-8-6\/","title":{"rendered":"moodle\u5347\u7d1a-1.5.4 to 1.8.6"},"content":{"rendered":"<p>\n\u7531\u65bc\u5b78\u6821\u7684<a href=\"http:\/\/www.gfes.ilc.edu.tw\/moodle\/\">moodle<\/a>\u7248\u672c\u592a\u820a\u4e86\uff0c\u8d81\u4f3a\u670d\u5668\u66f4\u65b0(Fedora Core4 update to CentOS5.2)\u6211\u4e5f\u9806\u9053\u5c07moode\u5347\u7d1a\uff0c\u5347\u7d1a\u5206\u6210\u5169\u968e\u6bb5\u5347\u7d1a\uff0c\u5148\u5f9e1.5.4+\u5347\u81f31.6.7\u518d\u5f9e1.6.7\u5347\u81f31.8.6\u3002\u904e\u7a0b\u9806\u5229\u5713\u6eff\u3002\n<\/p>\n<p>\n&nbsp;\n<\/p>\n<p>[@more@]<br \/>\n<span style=\"font-size: medium\"> \u5347\u7d1a\u524d\u52d5\u4f5c:<\/span><\/p>\n<p>\n&nbsp;\n<\/p>\n<p>\nFedora Core 4 \u7684MySQL\u9810\u8a2d\u7de8\u78bc\u662flatin1\uff0c\u800cCentOS 5.2MySQL\u9810\u8a2d\u7de8\u78bc\u662futf8\uff0c\u6240\u4ee5\u5728\u5347\u7d1a\u524d\u52d9\u5fc5\u8981\u5c07moodle\u8cc7\u6599\u5eab\u6539\u70bautf8\u3002\u65b9\u6cd5\u5982\u4e0b:\n<\/p>\n<p>\n1.\u532f\u51famoodle\u8cc7\u6599\u5eab:\n<\/p>\n<blockquote>\n<p>\n\t\u6307\u4ee4:(\u6211\u7684moodle\u8cc7\u6599\u5eab\u540d\u7a31moodle)<br \/>\n\t<span style=\"color: #ff0000\">&nbsp;mysqldump -u root -p &#8211;default-character-set=latin1 moodle &gt;moodle_latin1_db.sql<\/span>\n\t<\/p>\n<\/blockquote>\n<p>\n2.\u5c07 moodle_latin1_db.sql\u8f49\u6210utf8\u683c\u5f0f:\n<\/p>\n<blockquote>\n<p>\n\t\u6307\u4ee4:<br \/>\n\t<span style=\"color: #ff0000\">iconv -c -t &lt;moodle_latin1_db.sql &gt;moodle_utf8_db.sql<\/span>\n\t<\/p>\n<\/blockquote>\n<p>\n3.\u5c07moodle_utf8_db.sql\u6a94\u6848\u5167\u5bb9\u7684latin1\u5b57\u4e32\u7f6e\u63db\u6210utf8:\n<\/p>\n<blockquote>\n<p>\n\t\u6307\u4ee4:<br \/>\n\t<span style=\"color: #ff0000\">vi&nbsp; moodle_utf8_db.sql<\/span><br \/>\n\t<span style=\"color: #0000ff\">:1,$s\/latin1\/utf8\/g&nbsp;&nbsp; (ps:\u6b64\u70bavi\u7684\u6307\u4ee4)<br \/>\n\t:wq<\/span>\n\t<\/p>\n<\/blockquote>\n<p>\n4.\u65b0\u5efamoodle\u8cc7\u6599\u5eab\u4e26\u5c07\u8cc7\u6599\u8868\u53ca\u5167\u5bb9\u532f\u5165:\n<\/p>\n<blockquote>\n<p>\n\t\u6307\u4ee4:<br \/>\n\t<span style=\"color: #ff0000\">mysql admin&nbsp; -u root -p&nbsp; create&nbsp; moodle<br \/>\n\tmysql -u root -p &#8211;default-character-set=utf8 moodle &lt; <\/span><span style=\"color: #ff0000\">moodle_utf8_db.sql<\/span>\n\t<\/p>\n<\/blockquote>\n<p>\n<span style=\"font-size: medium\">\u5347\u7d1a\u81f31.6.7:<\/span>\n<\/p>\n<p>\n1.\u4e0b\u8f09:\n<\/p>\n<blockquote>\n<p>\n\t\u6307\u4ee4:<br \/>\n\t<span style=\"color: #ff0000\">wget http:\/\/download.moodle.org\/stable16\/moodle-latest-16.zip<br \/>\n\tunzip moodle-latest-16.zip<br \/>\n\tmv moodle \/var\/www\/html&nbsp;<\/span>\n\t<\/p>\n<\/blockquote>\n<p>\n2.\u5c07\u820a\u7248 Moodle \u76ee\u9304\u4e2d\u7684 config.php \u8907\u88fd\u5230 \u65b0\u7248\u76ee\u9304\u4e2d, \u8907\u88fd\u6216\u66f4\u65b0\u60a8\u984d\u5916\u5b89\u88dd\u7684\u4f48\u666f\u3001\u6a21\u7d44\u8207\u5340\u584a<br \/>\n(\u5f97\u6ce8\u610f\u7248\u672c\u76f8\u5bb9\u6027)\n<\/p>\n<p>\n<br \/>\n3.\u4fee\u6539 config.php\n<\/p>\n<blockquote><p>\n\t&#8212;&gt;\u4fee\u6539\u6307\u5411\u65b0\u8cc7\u6599\u5eab&nbsp;&nbsp; <span style=\"color: #ff0000\">$CFG-&gt;dbname&nbsp;&nbsp;&nbsp; = &#8216;moodlenew&#8217;;<\/span><br \/>\n\t&#8212;&gt;\u589e\u52a0&nbsp; <span style=\"color: #ff0000\">$CFG-&gt;unicodedb = true; <\/span><br \/>\n\t&#8212;&gt;\u5982\u679c\u60f3\u555f\u7528\u4e2d\u6587\u6a94\u540d\u518d\u589e\u52a0 <span style=\"color: #ff0000\">$CFG-&gt;unicodecleanfilename = true;&nbsp; <\/span>\n<\/p><\/blockquote>\n<p>\n4.\u81f3 <a href=\"http:\/\/moodle.club.tw\/moodle\/\">Moolde \u4e2d\u6587\u52a0\u6cb9\u7ad9<\/a>\u4e0b\u8f091.6.x\u4e2d\u6587\u8a9e\u7cfb\u6a94\uff0c\u89e3\u58d3\u7e2e\u5728 moodledata\/lang \u76ee\u9304\u4e0b!\n<\/p>\n<p>\n5.\u76f4\u63a5\u4ee5\u700f\u89bd\u5668\u57f7\u884c <a href=\"http:\/\/ip\/moodle\">http:\/\/IP\/moodle<\/a>\uff0c\u5c31\u4f9d\u7167\u756b\u9762\u4e0a\u7684\u8981\u6c42\u64cd\u4f5c\u3002&nbsp;\n<\/p>\n<p>\n&nbsp;\n<\/p>\n<blockquote><\/blockquote>\n<p>\n<span style=\"font-size: medium\">\u5347\u7d1a\u81f31.8.6:<\/span>\n<\/p>\n<p>\n1.\u4e0b\u8f09:\n<\/p>\n<blockquote>\n<p>\n\t\u6307\u4ee4:<br \/>\n\t<span style=\"color: #ff0000\">wget http:\/\/download.moodle.org\/download.php\/stable18\/moodle-1.8.6.zip<br \/>\n\tunzip <\/span><span style=\"color: #ff0000\">moodle-1.8.6.zip<\/span><br \/>\n\t<span style=\"color: #ff0000\"><br \/>\n\tmv moodle \/var\/www\/html&nbsp;<\/span>\n\t<\/p>\n<\/blockquote>\n<p>\n2.\u5c07\u820a\u7248 Moodle \u76ee\u9304\u4e2d\u7684 config.php \u8907\u88fd\u5230 \u65b0\u7248\u76ee\u9304\u4e2d, \u8907\u88fd\u6216\u66f4\u65b0\u60a8\u984d\u5916\u5b89\u88dd\u7684\u4f48\u666f\u3001\u6a21\u7d44\u8207\u5340\u584a\u3002<br \/>\n(\u5f97\u6ce8\u610f\u7248\u672c\u76f8\u5bb9\u6027)\n<\/p>\n<p>\n<br \/>\n3.\u81f3 <a href=\"http:\/\/moodle.club.tw\/moodle\/\">Moolde \u4e2d\u6587\u52a0\u6cb9\u7ad9<\/a>\u4e0b\u8f091.8.x\u4e2d\u6587\u8a9e\u7cfb\u6a94\uff0c\u89e3\u58d3\u7e2e\u5728 moodledata\/lang \u76ee\u9304\u4e0b!\n<\/p>\n<p>\n5.\u76f4\u63a5\u4ee5\u700f\u89bd\u5668\u57f7\u884c <a href=\"http:\/\/ip\/moodle\">http:\/\/IP\/moodle<\/a>\uff0c\u5c31\u4f9d\u7167\u756b\u9762\u4e0a\u7684\u8981\u6c42\u64cd\u4f5c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7531\u65bc\u5b78\u6821\u7684moodle\u7248\u672c\u592a\u820a\u4e86\uff0c\u8d81\u4f3a\u670d\u5668\u66f4\u65b0(Fedora Core4 update to CentOS5. [&hellip;]<\/p>\n","protected":false},"author":58,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ocean_post_layout":"","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"","ocean_second_sidebar":"","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"","ocean_custom_header_template":"","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"","ocean_menu_typo_font_family":"","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"","ocean_post_oembed":"","ocean_post_self_hosted_media":"","ocean_post_video_embed":"","ocean_link_format":"","ocean_link_format_target":"self","ocean_quote_format":"","ocean_quote_format_link":"post","ocean_gallery_link_images":"on","ocean_gallery_id":[],"footnotes":""},"categories":[53],"tags":[],"class_list":["post-3548","post","type-post","status-publish","format-standard","hentry","category-c-449","entry"],"meta_key":{"lt_post_id":["107233"]},"_links":{"self":[{"href":"https:\/\/2blog.ilc.edu.tw\/linkc\/wp-json\/wp\/v2\/posts\/3548"}],"collection":[{"href":"https:\/\/2blog.ilc.edu.tw\/linkc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2blog.ilc.edu.tw\/linkc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/linkc\/wp-json\/wp\/v2\/users\/58"}],"replies":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/linkc\/wp-json\/wp\/v2\/comments?post=3548"}],"version-history":[{"count":1,"href":"https:\/\/2blog.ilc.edu.tw\/linkc\/wp-json\/wp\/v2\/posts\/3548\/revisions"}],"predecessor-version":[{"id":4060,"href":"https:\/\/2blog.ilc.edu.tw\/linkc\/wp-json\/wp\/v2\/posts\/3548\/revisions\/4060"}],"wp:attachment":[{"href":"https:\/\/2blog.ilc.edu.tw\/linkc\/wp-json\/wp\/v2\/media?parent=3548"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/linkc\/wp-json\/wp\/v2\/categories?post=3548"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/linkc\/wp-json\/wp\/v2\/tags?post=3548"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}