Add mod_mam for ejabberd in ubuntu 12.04 - ejabberd

I have successfully configured ejabberd 2.1.10 in ubuntu 12.04 environment with mysql storage. Now I need to integrate mod_mam module for my chat server. I have downloaded the mysql modules from the url https://svn.process-one.net/ejabberd-modules/ and configured using the steps mentioned here https://www.ejabberd.im/ejabberd-modules. But I couldn't find the mod_mam library in that repository.
At the same time, I installed ejabberd 16.02 in my windows 7 machine and found that the mod_mam is available by default. Please provide a solution for this.

Install latest version of ejabberd server put the following lines in module section of ejabberd.yml-
mod_mam:
db_type: odbc ##mnesia|odbc
default: always ##always|never|roster
request_activates_archiving: true ##true|false
assume_mam_usage: on_request ##if_enabled|on_request|never
cache_size: 1000
cache_life_time: 3600
for detail configration check here

Related

Install Dreamfactory on Xampp

I have been trying to install Dreamfactory on Xampp but can't find a single article on how to do so.
Purpose: To generate REST API in php with mysql.
What I have tried:
Initially I installed windows version of
Dreamfactory from official site. It was installed successfully but it don't allow access to MYSQL database in free version. Paid version is out of my budget, so I tried with Xampp. I downloaded open-source version from
Github. After extracting it, executed php artisan serve in xampp command shell as mentioned on Dreamfactory Wikipedia Installation guide. This resulted in following error:
Warning: require(D:\xampp\htdocs\sandbox\dreamfactory\public/../vendor/autoload.php): failed to open stream: No such file or directory in D:\xampp\htdocs\sandbox\dreamfactory\public\index.php on line 24
Fatal error: require(): Failed opening required 'D:\xampp\htdocs\sandbox\dreamfactory\public/../vendor/autoload.php' (include_path='D:\xampp\php\PEAR') in D:\xampp\htdocs\sandbox\dreamfactory\public\index.php on line 24
As mentioned in Git documentation, they have given installation procedures for Ubuntu and Debian. Further more, they have mentioned about Bitnami official installation software, but non for XAMPP or stuff like that.
Question:
Is there any way we can install Dreamfactory on XAMPP? If yes, how so!
I'd venture it's going to be fairly difficult task to run DreamFactory on XAMPP because DreamFactory requires quite a few dependencies which are not installed on XAMPP by default.
Your best bet would be to run the Bitnami for DreamFactory environment, or alternatively use Docker. Both can be downloaded from the DreamFactory website downloads page. Alternatively, if you'd like to run DreamFactory in a VM, the OSS download README points to automated installers for Debian and Ubuntu. Additional installers for CentOS and Fedora are found here, they work great however we just haven't moved them into the official distribution yet.

Ejabberd source code Installation in windows 10

I want to know the procedure to install Ejabberd from source code in windows 10. In their documentation, the installation with source code is only given for the Linux based operating system. I am struggling to find any good documentation on the same.
I think the windows installer is, in fact, compiled and packaged in Linux or other operating system. Following this reasoning, there's a way to get your self-compiled ejabberd running in Windows:
Download and install the latest ejabberd binary package in your Windows server. See what Erlang/OTP version and what ejabberd version you have.
Now, go to a development machine where you know ejabberd can be compiled: GNU/Linux, BSD, maybe Mac.
Download the same Erlang/OTP version, and download the source code of the same ejabberd version
Compile ejabberd
Copy the resulting *.beam files from the development machine to the Windows server, overwriting the originally installed ones

Using Windows MySQL Workbench 8.0 with Mariadb and PAM authentication

I'm currently attempting to get the latest version of MySQL Workbench for Windows to connect to Mariadb v 5.6.10 running on CentOS. With a user authenticated using MySQL's built-in authentication, I can connect fine (I get an incompatibility message, but I can still connect and run queries), but if I try to connect using a PAM-authenticated user, it complains about a missing DLL:
Authentication plugin 'dialog' cannot be loaded.
With procmon, I was able to determine that it is looking for C:\Program Files\MySQL\MySQL Server 8.0\lib\plugin\dialog.dll
Under the pre-8 versions of MySQL Workbench, you could simply extract the DLL from the Windows MariaDB distribution and copy it to the appropriate directory, but this doesn't work with Workbench 8.0 (I tried with the latest Mariadb Windows distribution and it complained about an API incompatibility with the version of dialog.dll I copied in). Are there any DLLs that will allow this to work? Any other workaround?
An alternative is to change the sever configuration and force the client to use mysql_clear_password instead of dialog. However this will not work if PAM service requires multiple questions or challenge-responses.
[mariadb]
....
pam_use_cleartext_plugin

Linux : install mysql-client after Zimbra

I installed Zimbra on my Linux server (Ubuntu 12.04 x64), and now I have to install mysql-client / mysql-server for other things.
During Zimbra install, it install mysql (in /opt/zimbra/mysql). This mysql server listen on port 7301.
Can I install mysql on my Linux without breaking my Zimbra install?
I tested. No problem. The MySql server of Zimbra is completely independent of the system.
Zimbra uses mysql/mariadb for storing the metadata.
The Data Store is a MariaDB database where internal mailbox IDs are linked
with user accounts. All the message metadata including tags, conversations,
and pointers indicate where the messages are stored in the file system. The
MariaDB database files are in /opt/zimbra/db
Reference; https://files.zimbra.com/website/docs/8.6/Zimbra_NE_Admin_Guide_8.6.0.pdf

how to install ejabberd on amazon ec2 using ssh

I am trying to install ejabberd on Amazon ec2 dedicated server. The machine is Amazon Linux AMI 2014.09.2 (HVM). Can anyone help me regarding this thing.
ejabberd installation is fully documented on ejabberd documentation site: ejabberd installation.
The easiest approach is to download binary installer from official ejabberd download page, to make it executable on you Linux server and to run the installer executable. For example:
chmod +x ejabberd-15.07-linux-x86_64-installer.run
./ejabberd-15.07-linux-x86_64-installer.run
There is nothing Amazon EC2 specific.