Linux Tutorials

How to Fixed Dovecot Fatal: listen(::, 143) failed: Address already in use

When i trying to install Dovecot in CentOS 5.6 Yesterday and i trying to start dovecot services.

It shows an error like below :


Fatal: listen(::, 143) failed: Address already in use

After do some searching in the internet i found how to solved this issue:

Login into your server using root access.

Edit your dovecot config

#pico /etc/dovecot.conf

Find the line contain Listen like below and comment it 

[...]
#listen = *, [::]
listen = *
[...]

Start dovecot

How To Show Shared Directory from NFS Server Linux


First, we need to know what is NFS ?
NFS is a network file system something like a distributed file system protocol that allowing user on a client computer to access files over network.

For Example : we have few NFS server here and we want to know
how to see all exported file system from unix server using a command line linux

We can using showmount command to see the mount information from NFS server.

Example we have a NFS server named : media10 and the ip address : 10.100.100.1

How To Detect Rootkits in Your Linux Server

First, we need to know what is rootkits.
Rootkits is a program to control your unix terminals usually root access,
in Windows usually Administrator access without any authorization from the server owner.

So to securing your linux server 
We can using some software : Zeppoo , Chkrootkit or rkhunter

Zeppoo Software

Zeppo will detect rootkits on i386 and x86_64 architecture in linux using /dev/kmem and /dev/mem
this software also able to detect a hidden task, system call etc..

Cpanel SSL Problem Error Code : ssl_error_rx_record_too_long

I found this problem when i have install SSL Certificate via Cpanel WHM.
I belived my SSL already installed in the Cpanel properly.
but when i trying to accessing my web ex : https://www.example.com

Mozilla show me something like below :

SSL received a record that exceeded the maximum permissible length.

(Error code: ssl_error_rx_record_too_long)

How to Run a CGI Scripts Using Fcgiwrap with Nginx in OpenSUSE 11.x

Why we need Fcgiwrap to work with Nginx ?
Because Nginx it self doesn't serve CGI / CGI scripts.

There are few ways to make Nginx to be able to open any CGI / PERL scripts.
we can using Thttpd and Fcgiwrap.

First, we need to know Fcgiwrap is a CGI wrapper that able to use for shared hosting
this is because Fcgiwrap allow each vhost to use it's own cgi-bin directory.

We also can't found fcgiwrap packages in OpenSUSE Repositories, so we will install it manually.

How To Setup PureFTPd With ClamAV Scanning in CentOS 6.x

This is a simple tutorial / how to setup your PureFTPd daemon to working with ClamAV Scanner.
So When you uploaded a files to your FTP server, ClamAV will automatically checking your files.
If your files contain an infected / malware ClamAV will delete it.

Preparing to Install PureFTPd

Login as root
#yum install pure-ftpd

Preparing to Install ClamAV


Next, We will install ClamAV
FYI, ClamAV is not available in the CentOS official repositories.
But We can enable it with the EPEL repository

How to Enable and Disable Linux ExecShield Buffer Overflows Protection

What is ExecShield ?

ExecShield is security Linux kernel patch to avoid worms and other problems.

Exec Shield is a project that got started at Red Hat, Inc in late 2002 with the aim of reducing the risk of worm or other automated remote attacks on Linux systems. The first result of the project was a security patch for the Linux kernel that adds an NX bit to x86 CPUs. While the Exec Shield project has had many other components, some people refer to this first patch as Exec Shield.

How To Find a Hidden Process and Port in Linux and Unix Operating System


There are so many tools that able to check the hidden process and port, the tools are rootkits/lkms/unhide etc.
In this tutorial i will discuss something more simple to use and the tools is UNHIDE.

Unhide is a tool to find hidden processes and TCP/UDP ports by rootkits / LKMs or by another hidden technique. This tools works under both Linux / Unix, and MS-Windows operating systems.

It detects hidden processes using three techniques:

The proc technique consists of comparing /proc with the output of /bin/ps.
The sys technique consists of comparing information gathered from /bin/ps with information gathered from system calls.
The brute technique consists of bruteforcing the all process IDs. This technique is only available on Linux 2.6 kernels.

Wordpress 3.3 Visual Editor Broken or Not Showing Up

Today i just upgraded one of my wordpress site to 3.3.

After croscheck anything i found that my wordpress visual editor have a problem and the toolbar also not showing.

After googling for few hours i found the solution.

1. disabled all your plugins [optional]
2. reinstall your wordpress [ optional]
3. edit wp-config.php

The solusion is very simple, we just need to add 1 line into wp-config.php like below :

$vi /home/testing/public_html/wp-config.php

### add 1 line below ####

How To Install mod_wsgi with Python Cpanel on CentOS 5.6

How To Install mod_wsgi with Python Cpanel on CentOS 5.6

Here is a simple way tutorial to install Python with mod_wsgi in CentOS 5.6 cPanel.
First we need to know what is mod_wsgi

What is mod_wsgi ?

mod_wsgi is an Apache module that can host any Python application and support the Python WSGI interface.
This module also suitable to use in high hosting performance website.

What is Pyton ?

Facebook Fans