Changes between Version 24 and Version 25 of InstallationGuidelines/Chat
- Timestamp:
- 07/02/14 15:52:12 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
InstallationGuidelines/Chat
v24 v25 80 80 81 81 82 == Custom D b Integration(MYSQl/Postgre SQL)==82 == Custom DB Integration == 83 83 84 For MYSQL 84 === MySQL === 85 85 86 1 ) Clean the databases(when in base eden folder) using86 1. In the sql table of auth_user add a user with email "chat_admin@example.com" , username "chat_admin_example.com" and password of your choice(having alphanumeric characters). 87 87 {{{ 88 rm -rf databases/* errors/* uploads/* sessions/* 88 w2p 89 db.auth_user.insert(email="chat_admin@example.com", username="chat_admin_example.com", password="changeme", first_name="Chat") 90 db.commit() 89 91 }}} 90 92 91 2 ) In models/000_config.py choose database connection settings (use mysql).93 2. Open Openfire console http://servname:7070. Go to System Properties and set the following properties. 92 94 93 3) In the sql table of auth_user add a user with email "chat_admin [at] example.com" , username "chat_admin_example.com" and password of your choice(having alphanumeric characters). 95 Change: 96 * provider.auth.className to org.jivesoftware.openfire.auth.JDBCAuthProvider 97 * provider.user.className to org.jivesoftware.openfire.user.JDBCUserProvider 94 98 95 4) Install openfire. During installation use mysql and choose the openfire database name. 96 97 5) After Installation and following steps from above. Go to system properties and set the following properties.If some property names are already present modify them to the given values. 99 Add (if some property names are already present modify them to the given values): 98 100 * jdbcProvider.driver : com.mysql.jdbc.Driver 99 101 * jdbcProvider.connectionString : jdbc:mysql://localhost/<sahana database name>?user=<sql_username>&password=<sql_password> 100 * change provider.auth.className to org.jivesoftware.openfire.auth.JDBCAuthProvider101 102 * jdbcAuthProvider.passwordSQL : select password from auth_user where username=? 102 103 * jdbcAuthProvider.passwordType : plain 103 * change provider.user.className to org.jivesoftware.openfire.user.JDBCUserProvider104 104 * jdbcUserProvider.loadUserSQL : select first_name,email from auth_user where username=? 105 105 * jdbcUserProvider.userCountSQL : select count(*) from auth_user 106 106 * jdbcUserProvider.allUsersSQL : select username from auth_user 107 107 * jdbcUserProvider.searchSQL : select username from auth_user where 108 * jdbcUserProvider.usernameField : username 108 * jdbcUserProvider.usernameField : username 109 109 * jdbcUserProvider.emailField : email 110 110 * jdbcUserProvider.nameField : first_name 111 111 * admin.authorizedJIDs: choose a username from the user database and put it here e.g. chat_admin_example.com@<servername> 112 112 113 6) Restart the server 113 3. Restart the Openfire server. 114 {{{ 115 sudo /opt/openfire/bin/openfire restart 116 }}} 117 118 === PostgreSQL === 119 120 tbc