4 GNU social 1.1.x to GNU social 1.2.x
5 ------------------------------------
7 If you are tracking the GNU social git repository, we currently recommend
8 using the "master" branch (or nightly if you want to use latest features)
9 and follow this procedure:
11 0. Backup your data. The StatusNet upgrade discussions below have some
12 guidelines to back up the database and files (mysqldump and rsync).
14 1. Stop your queue daemons (you can run this command even if you do not
15 use the queue daemons):
16 $ bash scripts/stopdaemons.sh
18 2. Run the command to fetch the latest sourcecode:
21 If you are not using git we recommend following the instructions below
22 for upgrading "StatusNet 1.1.x to GNU social 1.2.x" as they are similar.
24 3. Run the upgrade script:
25 $ php scripts/upgrade.php
27 The upgrade script will likely take a long time because it will
28 upgrade the tables to another character encoding and make other
29 automated upgrades. Make sure it ends without errors. If you get
30 errors, create a new task on https://bugz.foocorp.net/
32 4. Start your queue daemons again (you can run this command even if you
33 do not use the queue daemons):
34 $ bash scripts/startdaemons.sh
36 5. Report any issues at https://bugz.foocorp.net/ (tag GNU social)
38 StatusNet 1.1.x to GNU social 1.2.x
39 -----------------------------------
41 We cannot support migrating from any other version of StatusNet than
42 1.1.1. If you are running a StatusNet version lower than this, please
43 follow the upgrade procedures for each respective StatusNet version.
45 You are now running StatusNet 1.1.1 and want to migrate to GNU social
46 1.2.x. Beware there may be changes in minimum required version of PHP
47 and the modules required, so review the INSTALL file (php5-intl is a
48 newly added dependency for example).
50 * Before you begin: Make backups. Always make backups. Of your entire
51 directory structure and the database too. All tables. All data. Alles.
53 0. Make a backup of everything. To backup the database, you can use a
54 variant of this command (you will be prompted for the database password):
55 $ mysqldump -u dbuser -p dbname > social-backup.sql
57 1. Stop your queue daemons 'bash scripts/stopdaemons.sh' should do it.
58 Not everyone runs queue daemons, but the above command won't hurt.
60 2. Unpack your GNU social code to a fresh directory. You can do this
61 by cloning our git repository:
62 $ git clone https://gitorious.org/social/mainline.git gnusocial
64 3. Synchronize your local files to the GNU social directory. These
65 will be the local files such as avatars, config and files:
74 This command will point you in the right direction on how to do it:
75 $ rsync -avP statusnet/{.htaccess,avatar,background,file,local,config.php} gnusocial/
77 4. Replace your old StatusNet directory with the new GNU social
78 directory in your webserver root.
80 5. Run the upgrade script: 'php scripts/upgrade.php'
81 The upgrade script will likely take a long time because it will
82 upgrade the tables to another character encoding and make other
83 automated upgrades. Make sure it ends without errors. If you get
84 errors, create a new task on https://bugz.foocorp.net/
86 6. Start your queue daemons: 'bash scripts/startdaemons.sh'
88 7. Report any issues at https://bugz.foocorp.net/ (tag GNU social)