From 561c5f4d932de069f2ff265cf88fdf692372eb29 Mon Sep 17 00:00:00 2001 From: rscmbbng Date: Mon, 19 Nov 2018 16:57:50 +0100 Subject: [PATCH] added info on upgrading --- ...configuring_an_xmpp_server_prosody_0.11.md | 24 ++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/raw/configuring_an_xmpp_server_prosody_0.11.md b/raw/configuring_an_xmpp_server_prosody_0.11.md index 159c59c..bb50930 100644 --- a/raw/configuring_an_xmpp_server_prosody_0.11.md +++ b/raw/configuring_an_xmpp_server_prosody_0.11.md @@ -68,7 +68,7 @@ Install the newest version of Prosody and its dependencies from the official pro wget https://prosody.im/files/prosody-debian-packages.key -O- | sudo apt-key add - - sudo apt-get update && sudo apt-get install prosody-0.11 + sudo apt-get update && sudo apt-get install prosody Install the newest prosody plugins: @@ -103,7 +103,7 @@ The homebrewserver.club prosody config "disco"; -- Service discovery "private"; -- Private XML storage (for room bookmarks, etc.) "vcard4"; -- User Profiles (stored in PEP) - "vcard_legacy" -- Conversion between legacy vCard and PEP Avatar, vcard + "vcard_legacy"; -- Conversion between legacy vCard and PEP Avatar, vcard "version"; -- Replies to server version requests "uptime"; -- Report how long server has been running "time"; -- Let others know the time here on this server @@ -126,7 +126,7 @@ The homebrewserver.club prosody config allow_registration = false; -- Enable to allow people to register accounts on your server from their clients, for more information see http://prosody.im/doc/creating_accounts certificates = "/etc/prosody/certs" - https_certificate = "certs/myserver.org" + https_certificate = "certs/myserver.org.crt" c2s_require_encryption = true -- Force clients to use encrypted connections @@ -235,5 +235,23 @@ When upgrading to prosody 0.11 on a server using sql make sure to run database u :::console prosodyctl mod_storage_sql upgrade +In the event you get an error about DBI not being found that is because Debian's Lua version doesn't support DBI. If that is the case you can do the following: + +Download LuaRocks source from + +Unpack it and compile with Lua5.2 support: + + :::console + ./configure --lua-version=5.2 + make + sudo make install + +Then proceed to install `luadbi` and `luadbi-` for the mysql backend you use (see [here](https://prosody.im/doc/depends) for more info): + + :::console + luarocks install luadbi + luarocks install luadbi-mysql + +Then you should be able to run the storage_sql upgrade as described above. [^1]: Previous articles descibed how to set up [Prosody 0.9](https://homebrewserver.club/drafts/configuring-a-modern-xmpp-server-0.9.html) and [Prosody 0.10](https://homebrewserver.club/drafts/configuring-a-modern-xmpp-server-0.10.html) \ No newline at end of file