Category Archives: Servers

Zimbra : Initializing ldap…failed.

When installing and configuring Zimbra for the first time on RHEL/CentOS 6, it return that LDAP failed to initialize and then the config script exit. The log file probably indicate the following error : Initializing ldap… *** Running as zimbra user: /opt/zimbra/libexec/zmldapinitsudo: sorry, you must have a tty to run sudo IO::Socket::INET: connect: Connection refused… Read More »

VMware Server : Performance tweak tips

VMware Server performance can be improved in so many ways… there are some recomendation that I’ve discovered when I was using this product at large before moving them to ESXi : Use preallocated virtual disk Use as less virtual hardware as possible – do not add unneeded hardware Use ext4 or XFS filesystem (if host… Read More »

Vim : how do I search and replace text

Do the following to find and replace text string in a whole file using the Vi text editor : 1. Enter in command mode by typing ” : ” 2. Your command should look like this : :%s/search_for_text/replace_with_this_text/g NOTE : To search & replace a string containing slashes ” / “, use a coma ”… Read More »

MySQL : Can’t open and lock privilege tables

Trying to import a MySQL dump and/or starting mysqld return the following error : [ERROR] bdb:  fatal region error detected; run recovery [ERROR] Fatal error: Can’t open and lock privilege tables: Table ‘host’ is read only Probably the MySQL database directory does not have the right privileges. The permission scheme should look like this :… Read More »

SSL Connection Error : exceeded the maximum permissible length

When trying to open a page through HTTPS, you receive this error : SSL received a record that exceeded the maximum permissible length. (Error code: ssl_error_rx_record_too_long) This is probably due to a vhost IP mismatch/configuration error. The virtual host does not have the right IP address.

Qmail : How to change the default submission SMTP port

By default, the submission port is TCP-587. To change to another value, edit the following file : /var/qmail/supervise/submission/run And simply change the port number just before the last line : /usr/bin/tcpserver -v -R -H -l $HOSTNAME -x $TCP_CDB -c “$MAXSMTPD” \ -u “$QMAILDUID” -g “$NOFILESGID” 0 587 \ $SMTPD $VCHKPW /bin/true 2>&1 Of course, you… Read More »

Bind : unexpected RCODE (REFUSED) resolving

Query refused shown on system log. unexpected RCODE (REFUSED) resolving ‘vhost.domain.tld/A/IN’: xxx.xxx.xxx.xxx#53 This indicate that one of your forwarders deny to resolve the query. You should remove/comment it.

Bind : the working directory is not writable

Directory permission problem shown in system log when starting named. named[xxxx]: the working directory is not writable Owner as well as group should be “named” and both have “read-write-execute” (775) mode. sudo chmod g+w named