- First check Roundcube error log at /var/log/roundcube
PHP Error: Failed to load plugin file /var/lib/roundcube/plugins/fail2ban/fail2ban.php in /usr/share/roundcube/program/include/rcube_plugin_api.php on line 196 (GET /webmail/)
- Check roundcube config in /var/lib/roundcube/config/main.inc.php for syntax
$rcmail_config['plugins'] = array('fail2ban');
Syntax is correct.
- Check /usr/share/roundcube/plugins/fail2ban/fail2ban.php. Found fail2ban ver 1.0 in directory plugins
- Try to upgrade fail2ban to ver 1.1 following directions below:
Install the roundcube logger plugin form http://mattrude.com/projects/roundcube-fail2ban-plugin/.
Basically you have to download the above file (fail2ban.php) and paste it in the fail2ban folder in the plugins folder of roundcube: /usr/share/roundcube/plugins/fail2ban/fail2ban.php
This plugin will first create and then update the log file with each login attempt: /var/log/roundcube/userlogins
mv rc-plugin-fail2ban fail2ban.tgz
tar xvfz fail2ban.tgz
Extend the jail.local file that Falko suggests in The Perfect Server - Debian Squeeze (Debian 6.0) With BIND & Courier [ISPConfig 3]: /etc/fail2ban/jail.local
Last (and very important) don't forget to create the roundcube.conf file /etc/fail2ban/filter.d/roundcube.conf with the contents below:
failregex = FAILED login for .*. from
Restart fail2ban and apache but problem is not solved. Try to look at apache error log (not roundcube error log)
SoftException in Application.cpp:221: File "/usr/share/roundcube/index.php" is not in document root of Vhost "/var/www/ispconfig/"
Premature end of script headers: index.php
Anh here is solution for it
Thank you HowToForge