ejabberd - Comments for "External program not working" https://www.ejabberd.im/node/3390 en Some ideas to try https://www.ejabberd.im/node/3390#comment-54010 <p>Your configuration looks to be good, maybe the problem is in other place.</p> <p>I downloaded the php file from <noindex><a href="http://yo.jabber.ru/bugzilla/show_bug.cgi?id=385" title="http://yo.jabber.ru/bugzilla/show_bug.cgi?id=385" rel="nofollow" >http://yo.jabber.ru/bugzilla/show_bug.cgi?id=385</a></noindex><br /> I configured ejabberd similar to you.<br /> I do not have Drupal installed, so I am not sure if the script works correctly, but there are a few tips you can try.</p> <p>1. When ejabberd starts, check the files ejabberd.log and sasl.log. Maybe you see an error like this:</p> <pre> sh: /etc/ejabberd/drupal_auth.php: /usr/local/bin/php: bad interpreter: The file does not exist </pre><p> In my Debian I have php in a different location:</p> <pre> $ which php /usr/bin/php </pre><p>so I have to change in drupal_auth.php the first line:</p> <pre> #!/usr/bin/php </pre><p> 2. When ejabberd starts and no error is shown in its log files, check if the script is running:</p> <pre> $ ps -C drupal_auth.php PID TTY TIME CMD 23182 ? 00:00:00 drupal_auth.php </pre><p> 3. Then I tried to login with an account 'test123', but of course I couldn't login because I didn't configure MySQL.<br /> I tried to login with an account that existed in 'internal', but ejabberd didn't allow me to login.<br /> This means ejabberd in my case was using external.</p> <p>4. I wanted to see some log files of the script, so I changed those lines to a place easy to remember:</p> <pre> var $debugfile = "/tmp/pipe-debug.log"; /* Debug output */ var $logging = true; /* Do we log requests ? */ var $logfile = "/tmp/pipe-log.log" ; /* Log file ... */ </pre><p>But I don't see any log files in /tmp.</p> Tue, 10 Feb 2009 23:30:15 +0000 mfoss comment 54010 at https://www.ejabberd.im