Latest blog entry

Postfix postdrop: unable to look up public/pickup: No such file or directory

July 31, 2011    |   Posted by admin   |    Category: Linux Administration

The Postfix mail logs may indicate the following error when emails are not working:

postdrop: warning: unable to look up public/pickup: 
No such file or directory

It turns out to be sendmail running along with Postfix and creating issues. The fix is to stop/remove sendmail and create the necessary postfix directory and restart the postfix service.

# /etc/init.d/sendmail stop 
#  mkfifo /var/spool/postfix/public/pickup
# /etc/init.d/postfix restart
Comments Off on Postfix postdrop: unable to look up public/pickup: No such file or directory

What is equivalent/alternative of chkconfig in Ubuntu or Debian?

July 16, 2011    |   Posted by admin   |    Category: Linux Administration

The alternative / equivalent of chkconfig in Ubuntu is “sysv-rc-conf”. To install sysv-rc-conf, ssh to the server and execute:

# apt-get install sysv-rc-conf

to start managing the services, execute

# sysv-rc-conf

It’s an easy to use interface for managing /etc/rc{runlevel}.d/ symlinks.
sysv-rc-conf provides a graphical view for turning services on and off at startup.

Comments Off on What is equivalent/alternative of chkconfig in Ubuntu or Debian?

Howto install a PHP FileInfo module in Linux?

July 9, 2011    |   Posted by admin   |    Category: Installations

The steps to install the PHP ‘Fileinfo’ module on a Linux server is as below:

1) Download and untar the package

# wget http://pecl.php.net/get/Fileinfo-1.0.4.tgz
# tar -zxf Fileinfo-1.0.4.tgz
# cd Fileinfo-1.0.4

2) Generate the extension for compiling

# phpize

3) Configure the module

# ./configure

4) generate the install files and install it

# make 
# make install

5) Now the extension will be available under the /usr/lib64/php/modules directory. You now need to add the extension somewhere in the php configuration file.

Edit /etc/php.ini and add the following:

extension=fileinfo.so

6) Save the file and restart the webserver

# service httpd restart

To verify fileinfo module is enabled properly, execute:

# php -i | grep fileinfo
fileinfo support => enabled

Alternate method

Just an FYI, the module can also be installed using the PECL command i.e.

# pecl install fileinfo

Once done, just follow steps 5 and 6 mentioned above to enable it. That’s it.

Comments Off on Howto install a PHP FileInfo module in Linux?