UPGRADE 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. Upgrading
  2. =========
  3. StatusNet 1.1.1 to GNU social
  4. -----------------------------
  5. We cannot support migrating from any other version of StatusNet than
  6. 1.1.1. If you are running a StatusNet version lower than this, please
  7. follow the upgrade procedures for each respective StatusNet version.
  8. You are now running StatusNet 1.1.1 and want to migrate to GNU social.
  9. Beware there may be changes in minimum required version of PHP and the
  10. modules used, so double-check the INSTALL file's requirements list.
  11. Before you begin: Make backups. Always make backups. Of your entire
  12. directory structure and the database too. All tables. All data. Alles.
  13. 0. Stop your queue daemons 'php scripts/stopdaemon.php' should do it.
  14. Not everyone runs queue daemons, but the above command won't hurt.
  15. 1. Unpack your GNU social code to a fresh directory.
  16. 2. Synchronize your local files to the GNU social directory. These
  17. will be the local files such as avatars, config and files:
  18. avatar/*
  19. background/*
  20. file/*
  21. local/*
  22. .htaccess
  23. config.php
  24. 3. Replace your old StatusNet directory with the new GNU social
  25. directory in your webserver root.
  26. 4. Run the upgrade script: 'php scripts/upgrade.php'
  27. 5. Start your queue daemons: 'php scripts/startdaemons.php'
  28. 6. Report any issues at https://bugz.foocorp.net/ (tag GNU social)
  29. Legacy StatusNet instructions
  30. -----------------------------
  31. These instructions are here for historical and perhaps informational
  32. purposes.
  33. If you've been using StatusNet 1.0 or lower, or if you've
  34. been tracking the "git" version of the software, you will probably
  35. want to upgrade and keep your existing data. Try these step-by-step
  36. instructions; read to the end first before trying them.
  37. 0. Download StatusNet and set up all the prerequisites as if you were
  38. doing a new install.
  39. 1. Make backups of both your database and your Web directory. UNDER NO
  40. CIRCUMSTANCES should you try to do an upgrade without a known-good
  41. backup. You have been warned.
  42. 2. Shut down Web access to your site, either by turning off your Web
  43. server or by redirecting all pages to a "sorry, under maintenance"
  44. page.
  45. 3. Shut down XMPP access to your site, typically by shutting down the
  46. xmppdaemon.php process and all other daemons that you're running.
  47. If you've got "monit" or "cron" automatically restarting your
  48. daemons, make sure to turn that off, too.
  49. 4. Shut down SMS and email access to your site. The easy way to do
  50. this is to comment out the line piping incoming email to your
  51. maildaemon.php file, and running something like "newaliases".
  52. 5. Once all writing processes to your site are turned off, make a
  53. final backup of the Web directory and database.
  54. 6. Move your StatusNet directory to a backup spot, like "statusnet.bak".
  55. 7. Unpack your StatusNet 1.1.1 tarball and move it to "statusnet" or
  56. wherever your code used to be.
  57. 8. Copy the config.php file and the contents of the avatar/, background/,
  58. file/, and local/ subdirectories from your old directory to your new
  59. directory.
  60. 9. Copy htaccess.sample to .htaccess in the new directory. Change the
  61. RewriteBase to use the correct path.
  62. 10. Upgrade the database.
  63. NOTE: this step is destructive and cannot be
  64. reversed. YOU CAN EASILY DESTROY YOUR SITE WITH THIS STEP. Don't
  65. do it without a known-good backup!
  66. In your new StatusNet 1.1.1 directory and AFTER YOU MAKE A
  67. BACKUP run the upgrade.php script like this:
  68. php ./scripts/upgrade.php
  69. 11. Use mysql or psql client to log into your database and make sure that
  70. the notice, user, profile, subscription etc. tables are non-empty.
  71. 12. Turn back on the Web server, and check that things still work.
  72. 13. Turn back on XMPP bots and email maildaemon.
  73. NOTE: the 1.0.0 version of StatusNet changed the URLs for all admin
  74. panels from /admin/* to /panel/*. This now allows the (popular)
  75. username 'admin', but blocks the considerably less popular username
  76. 'panel'. If you have an existing user named 'panel', you should rename
  77. them before upgrading.