1. An Nguyen

    An Nguyen bụi Ban quản trị

    11/11/17
    #1
    Phần này mình chỉ hướng dẫn cách nâng cấp từ xenforo 1.x lên xenforo 2 thông qua dòng lệnh CLI

    1. Đầu tiên, tải về Xenforo 2, search google nhé
    2. Giải nén file vừa tải về, sau đó chép tất cả file trong folder upload giải nén lúc nãy vào folder source xenforo 1.x (ví dụ là folder là mywebsite)
    3. Đổi tên file config.php.default trong mywebsite/src/ thành config.php, sau đó chỉnh sửa cho đúng với thiết lập mysql của bạn
    Mã (Text):
    1. <?php
    2.  
    3. $config['db']['host'] = 'localhost';
    4. $config['db']['port'] = 3306;
    5. $config['db']['username'] = 'root';
    6. $config['db']['password'] = '12345';
    7. $config['db']['dbname'] = 'xenforo2';
    8. $config['db']['socket'] = null;
    3. Trỏ dòng lệnh về folder mywebsite và chạy dòng lệnh php cmd.php xf:upgrade
    4. Ở lời nhắc "Are you sure you want to continue with the upgrade? [y/n]", nhập Y để bắt đầu nâng cấp lên Xenforo 2.
    Mã (Text):
    1. an@dmdc:/var/www/beta.nopviet$ php cmd.php xf:upgrade
    2. Current version: 1051570
    3. Upgrade target: 2000051 (2.0.0 Release Candidate 1)
    4. Are you sure you want to continue with the upgrade? [y/n] y
    5.  
    6. Running upgrade to 2.0.0 Alpha, step 1... done.
    7. Running upgrade to 2.0.0 Alpha, step 2... done.
    8. Running upgrade to 2.0.0 Alpha, step 3... done.
    9. Running upgrade to 2.0.0 Alpha, step 4... done.
    10. Running upgrade to 2.0.0 Alpha, step 5... done.
    11. Running upgrade to 2.0.0 Alpha, step 6... done.
    12. Running upgrade to 2.0.0 Alpha, step 7... done.
    13. Running upgrade to 2.0.0 Alpha, step 8... done.
    14. Running upgrade to 2.0.0 Alpha, step 9... done.
    15. Running upgrade to 2.0.0 Alpha, step 10... done.
    16. Running upgrade to 2.0.0 Alpha, step 11... done.
    17. Running upgrade to 2.0.0 Alpha, step 12... done.
    18. Running upgrade to 2.0.0 Alpha, step 13... done.
    19. Running upgrade to 2.0.0 Alpha, step 14... done.
    20. Running upgrade to 2.0.0 Alpha, step 15... done.
    21. Running upgrade to 2.0.0 Alpha, step 16... done.
    22. Running upgrade to 2.0.0 Alpha, step 17... done.
    23. Running upgrade to 2.0.0 Alpha, step 18... done.
    24. Running upgrade to 2.0.0 Alpha, step 19... done.
    25. Running upgrade to 2.0.0 Alpha, step 20... done.
    26. Running upgrade to 2.0.0 Alpha, step 21... done.
    27. Running upgrade to 2.0.0 Alpha, step 22... done.
    28. Running upgrade to 2.0.0 Alpha, step 23... done.
    29. Running upgrade to 2.0.0 Alpha, step 24... done.
    30. Running upgrade to 2.0.0 Alpha, step 25... done.
    31. Running upgrade to 2.0.0 Alpha, step 26... done.
    32. Running upgrade to 2.0.0 Alpha, step 27... done.
    33. Running upgrade to 2.0.0 Alpha, step 28... done.
    34. Running upgrade to 2.0.0 Alpha, step 29... done.
    35. Running upgrade to 2.0.0 Alpha, step 30... done.
    36. Running upgrade to 2.0.0 Alpha, step 31... done.
    37. Running upgrade to 2.0.0 Alpha, step 32... done.
    38. Running upgrade to 2.0.0 Alpha, step 33... done.
    39. Running upgrade to 2.0.0 Alpha, step 34... done.
    40. Running upgrade to 2.0.0 Alpha, step 35... done.
    41. Running upgrade to 2.0.0 Alpha, step 36... done.
    42. Running upgrade to 2.0.0 Alpha, step 37... done.
    43. Running upgrade to 2.0.0 Alpha, step 38... done.
    44. Running upgrade to 2.0.0 Alpha, step 39... done.
    45. Running upgrade to 2.0.0 Alpha, step 40... done.
    46. Running upgrade to 2.0.0 Alpha, step 41... done.
    47. Running upgrade to 2.0.0 Alpha, step 42... done.
    48. Running upgrade to 2.0.0 Alpha, step 43... done.
    49. Running upgrade to 2.0.0 Alpha, step 44... done.
    50. Running upgrade to 2.0.0 Alpha, step 45... done.
    51. Running upgrade to 2.0.0 Alpha, step 46... done.
    52. Running upgrade to 2.0.0 Alpha, step 47... done.
    53. Running upgrade to 2.0.0 Alpha, step 48... done.
    54. Running upgrade to 2.0.0 Alpha, step 49... done.
    55. Running upgrade to 2.0.0 Alpha, step 50... done.
    56. Running upgrade to 2.0.0 Alpha, step 51... done.
    57. Running upgrade to 2.0.0 Alpha, step 52... done.
    58. Running upgrade to 2.0.0 Alpha, step 53... done.
    59. Running upgrade to 2.0.0 Beta 2, step 1... done.
    60. Running upgrade to 2.0.0 Beta 2, step 2... done.
    61. Running upgrade to 2.0.0 Beta 3, step 1... done.
    62. Running upgrade to 2.0.0 Beta 4, step 1... done.
    63. Running upgrade to 2.0.0 Beta 4, step 2... done.
    64. Running upgrade to 2.0.0 Beta 6, step 1... done.
    65. Running upgrade to 2.0.0 Beta 6, step 2... done.
    66. Running upgrade to 2.0.0 Beta 7, step 1... done.
    67. Importing... Master data (Phrases)
    68. Importing... Master data (Phrases: 8.2%)
    69. Importing... Master data (Phrases: 17.3%)
    70. Importing... Master data (Phrases: 26.5%)
    71. Importing... Master data (Phrases: 33.5%)
    72. Importing... Master data (Phrases: 40.2%)
    73. Importing... Master data (Phrases: 46.9%)
    74. Importing... Master data (Phrases: 52.4%)
    75. Importing... Master data (Phrases: 57.4%)
    76. Importing... Master data (Phrases: 61.6%)
    77. Importing... Master data (Phrases: 68.1%)
    78. Importing... Master data (Phrases: 73.0%)
    79. Importing... Master data (Phrases: 78.1%)
    80. Importing... Master data (Phrases: 82.2%)
    81. Importing... Master data (Phrases: 86.3%)
    82. Importing... Master data (Phrases: 91.0%)
    83. Importing... Master data (Phrases: 94.6%)
    84. Importing... Master data (Phrases: 99.4%)
    85. Importing... Master data (Templates)
    86. Importing... Master data (Templates: 7.0%)
    87. Importing... Master data (Templates: 29.9%)
    88. Importing... Master data (Templates: 45.7%)
    89. Importing... Master data (Templates: 60.6%)
    90. Importing... Master data (Templates: 78.8%)
    91. Rebuilding... Phrases .
    92. Rebuilding... Phrases . .
    93. Rebuilding... Templates .
    94. Rebuilding... Templates . .
    95. Rebuilding... Templates . . .
    96. Rebuilding... Templates . . . .
    97. Rebuilding... Core caches
    98.  
    99. Upgrade completed successfully.
    100.  
    101. Running clean up tasks...
    5. Kết thúc nâng cấp với thông báo "Upgrade completed successfully"

    Chúc các bạn thành công! :):):)

     
    Sửa lần cuối: 13/2/19
    • ngày tạo

      An Nguyen 11/11/17
    • trả lời cuối

      An Nguyen 12/3/19
    • 1,086

      lượt xem

    • 5

      trả lời

    • 0

      lượt thích

    Đang tải...
  2. Tôi đang xái v1.4 nâng cấp lên v2.1
    Làm như bạn hướng dẫn nhưng không được, có còn config gì không mod
     
  3. An Nguyen

    An Nguyen bụi Ban quản trị

    12/3/19
    #3
    bạn nói chi tiết hơn đi
     
  4. An Nguyen

    An Nguyen bụi Ban quản trị

    12/3/19
    #4
  5. An Nguyen

    An Nguyen bụi Ban quản trị

    12/3/19
    #6
    bạn cần nói chi tiết hơn, quá trình cài đặt, lỗi,...
     
Đã lưu nháp Draft deleted
Đang tải...