Archive for June 2010

Mailman error “Bug in Mailman version 2.1.11.cp3″

If you are getting the below error while modifying the mailing list :

Bug in Mailman version 2.1.11.cp3
 We're sorry, we hit a bug!
 Please inform the webmaster for this site of this problem. Printing of traceback and other system information has been explicitly inhibited, but the webmaster can find this information in the Mailman error logs.

The just run the below command from shell as root user

 

[email protected][#]chmod 02775 -R /usr/local/cpanel/3rdparty/mailman/

If the above command doesn’t resolve your issue then try the below commands :

/usr/local/cpanel/3rdparty/bin/check_db
/usr/local/cpanel/3rdparty/bin/check_perms

And if the problem still persists then you have to reinstall mailman by using below steps.

First take backup for the current mailman directory.

[email protected][/usr/local/cpanel/3rdparty]#cp -p mailman mailman-back -R

Confirm disk space usage for both directory.

[email protected][/usr/local/cpanel/3rdparty]#du -sh mailman
 407M mailman
[email protected][/usr/local/cpanel/3rdparty]#du -sh mailman-back
 407M mailman

Then run the command

[email protected][/usr/local/cpanel/3rdparty]# /scripts/reinstallmailman

or

[email protected][/usr/local/cpanel/3rdparty]# /scripts/reinstallmailman --force

That’s all you are done..

Rouncube hangs while sending message

Whenever you compose a email and click send, it just never sends the message. A circle keeps rotating at the top saying Sending.

Follow the below steps to avoid this :

Login to server with root user and made following changes.

[email protected][#]vi /usr/local/cpanel/base/3rdparty/roundcube/config/main.inc.php

and serach for following line

$rcmail_config[‘smtp_user’] = ‘%u’;
Replace it with
$rcmail_config[‘smtp_user’] = ”;

Save and Quit.

That’s all you are done .

Mysql Connection Settings in JSP

You can set the mysql connection to JSP by using one of the method given below :

The URL based mysql connection is

jdbc:mysql://serverip address/DATABASENAME?user=USERNAME&password=PASSWORD

OR

< !– Database connection settings –> com.mysql.jdbc.Driver jdbc:mysql://localhost/database_name databses_user password

< !– configuration pool via c3p0–>

OR

try {
Class.forName(“com.mysql.jdbc.Driver”).newInstance();
// here we are connecting to localhost, port 3306. Change it to your db server address:port
con = DriverManager.getConnection(“jdbc:mysql://localhost:3306/databaseName”,
“root”, “secret”);
//or con = DriverManager.getConnection(“jdbc:mysql://localhost:3306/databaseName?user=
root&password=secret”;
}
catch(Exception e){
System.out.println(e.getMessage());
}

That’s all.