Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
  • Install ejabberd with patch file

    • 0
    • 1
    • 1
    • 1
    • 0
    • 0
    • 0
    • 0
    • 831
    Comment on it

    To install ejabberd with patch file(Serve cross domain policy file for Flash).

    1. Install erlang on your system.
    2. Download ejabberd
    3. tar zxf ejabberd-2.1.11.tar.gz 4 cd ejabberd-2.1.11
    4. Download patch files for ejabberd
    5. Install the patch file patch -p1 < flash-policy-file-ejabberd-2.1.x.diff
    6. cd ejabberd-2.1.6/src/
    7. ./configure --enable-odbc
    8. Run
    9. Run
      make install

    Add ejabberd mysql module

    1. cd ejabberd-2.1.6/src/
    2. svn co
    3. cd ejabberd-modules/mysql/trunk/
    4. ./
    5. cp ebin/*.beam /lib/ejabberd/ebin/

    Import database
    1. mysql -uusername -ppassword
    2. Create database and import mysql file
    3. Grant all privileges on database.* to 'user'@'localhost' identified by 'password' ;

    Configure ejabberd-mysql etc/ejabberd/ejabberd.cfg [conf file]
    2.Comment the line in the file {auth_method, internal}
    3.Uncomment the line in the file {auth_method, odbc}
    {odbc_server, {mysql, "server", "DatabaseName", "Username", "password"}}. Change mod_last[under modules] to mod_last_odbc to store the last seen date in MySQL.

    Update conf file vi etc/ejabberd/ejabberd.cfg [conf file] {hosts, [""]}.

    Start ejabberd server.

        ejabberdctl start/live
        ejabberdctl stop
    Your ejabberd is free to run.

    Cheers :)

 0 Comment(s)

Sign In

Sign up using

Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: