Category Archives: Servers

Postfix : postdrop warning unable to look up public/pickup

Getting this error trying to send e-mail with Postfix MTA? postdrop: warning: unable to look up public/pickup: No such file or directory Simply do the following as root : mkfifo /var/spool/postfix/public/pickup And then, restart the service : service postfix restart

FreeBSD : How to setup a software RAID-1

First, avoid any problem by getting two identical hard drive (or at least, same size and speed at least if not from same manufacturer). This tutorial assume both your hard disk are “da0” and “da1“. If you don’t know you’re devices name, simply use “dmesg” or “df -h” command to find out. First, let’s temporary… Read More »

Linux : Search and replace across multiple files

To search and replace across multiple text file on a Linux/Unix system, use the following command : find . -name “*.extension” -print | xargs sed -i ‘s/search_for_text/replace_with_text/g’ So, as example, let’s assume you want to replace an IP address in multiple Bind zone file (using the extension .hosts) and replace IP address 10.10.1.1 for 192.168.1.1… Read More »

VMware Server : PAM unable to dlopen pam_unix2.so

Using VMware Server on RedHat Enterprise Linux, you may expect this error in log file /var/log/secure : PAM unable to dlopen(/lib/security/pam_unix2.so PAM [error: /lib/security/pam_unix2.so: cannot open shared object file: No such file or directory] PAM adding faulty module: /lib/security/pam_unix2.so Actually, this error does not seem to affect the functionality of VMware Server. To work around… Read More »

PHP : Set upload file size

To increase (or decrease) the size of allowed uploaded file size with PHP, using php.ini or .htaccess file, just add or edit the following values : php_value upload_max_filesize <VALUE> php_value post_max_size <VALUE> Just add the amount instead the <VALUE> tag.  Let’s assume you want to allow 300 megabyte file size to be uploaded to the… Read More »

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 »