Mailing List Created Unable to create tst mailing list

October 26, 2008 on 12:01 pm | In Cpanel | No Comments

Cpanel issue. which will not let you create a mail list.

Here is the fix. Open the file

/usr/local/cpanel/3rdparty/mailman/Mailman/Defaults.py

Check for the following directives.

DEFAULT_EMAIL_HOST = ‘mail.youdomain.com’
DEFAULT_URL_HOST = ‘mail.yourdomain.com’
DEFAULT_URL_PATTERN = ‘http://%s/mailman/’

HOME_PAGE         = ‘index.html’
MAILMAN_SITE_LIST = ‘mailman’

Insert the proper entries..

/usr/java/jdkX.X.X_Xbin/java: not found + Install Java on Linux servers

October 19, 2008 on 8:20 pm | In Apache, Centos, Cpanel, Installation, Linux | No Comments

In some cases, the 3rd parts scripts in server requires java to be installed. It may not work properly if the binary of java installed in the server. You need to install JavaSDK

So we present here the installation of Java in Linux server.

Its as easy as you run upcp in a Cpanel server.

Download the installation binary from Sun’s Java site

J2SE for Linux http://java.sun.com/j2se/1.4.2/download.html.( Download J2SE SDK)

You may need to register at the site and then they will send you the download link. Download the non-rpm binary

cd /usr/local/src/

wget thebinary

mv j2sdk-1_4_2_18-linux-i586.bin /usr/local/

cd /usr/local/

chmod 755 j2sdk-1_4_2_18-linux-i586.bin

./j2sdk-1_4_2_18-linux-i586.bin

Now setup the environment variables.

JAVA_HOME=/usr/local/j2sdk1.4.2_18

export JAVA_HOME

Also, you need to add these in the file /etc/profile.

JAVA_HOME=/usr/local/j2sdk1.4.2_18

export JAVA_HOME

Ioncube Installation

October 19, 2008 on 7:59 pm | In Cpanel, Installation, PHP | No Comments

Ioncube is easy to install without recompiling PHP. Specifically in cpanel servers you can install Ioncube without recompiling PHP.

These steps can be used to install in any Linux servers..

Check the architecture.

uname -i

cat /etc/redhat-release

Download the source from the link

http://downloads2.ioncube.com/loader_downloads/

For i316 architecture linux server select

ioncube_loaders_lin_x86.tar.gz

2. Installation

cd /usr/local/src/

wget http://downloads2.ioncube.com/loader_downloads/<source>.tar.gz

tar zxvff <source>.tar.gz

mv ioncube /usr/local

Locate you php.ini file using the command

php -i | grep php.ini

open up the php.ini file using any editors, find the “zend_extension” and add the line

zend_extension=/usr/local/ioncube/ioncube_loader_lin_x.x.so

Don’t forget to replace x.x with the php verision. For example you have php version 5.2.6, replace the x.x with 5.2.

Restart Apache

/etc/rc.d/init.d/httpd restart

Test it

php -v

It should show Ioncube.

How to install BFD

October 11, 2008 on 9:36 am | In APF, Centos, Linux | No Comments

What is BFD (Brute Force Detection)?


BFD is a modular shell script for parsing applicable logs and checking for authentication failures. There is not much complexity or detail to BFD yet and likewise it is very straight-forward in its installation, configuration and usage. The reason behind BFD is very simple; the fact there is little to no authentication and brute force auditing programs in the linux community that work in conjunction with a firewall or real-time facility to place bans. BFD is available at: http://www.rfxnetworks.com/bfd.php

This guide will show you how to install and configure BFD to protect your system from brute force hack attempts.

Requirements:
- You MUST have APF Firewall Installed before installing BFD – it works with APF and requires some APF files to operate.
- Root SSH access to your server


Login to your server through SSH and su to the root user.

1. cd /usr/local/src/.

Article provided by WebHostGear.com

2. wget http://www.rfxnetworks.com/downloads/bfd-current.tar.gz

3. tar -xvzf bfd-current.tar.gz

4. cd bfd-*

5. Run the install file: ./install.sh
You will receive a message saying it has been installed

.: BFD installed
Install path:    /usr/local/bfd
Config path:     /usr/local/bfd/conf.bfd
Executable path: /usr/local/sbin/bfd

6. Edit the configuration file: vi /usr/local/bfd/conf.bfd

7. Enable brute force hack attempt alerts:

Find: EMAIL_USR=”root” CHANGE TO: EMAIL_USR=”your@yourdomain.com”

Save the changes

8. Prevent locking yourself out!
vi /usr/local/bfd/ignore.hosts and add your own trusted IPs
Save the changes

9. Run the program!
/usr/local/sbin/bfd -s

10. Customize your applicatoins brute force configuration
Check out the rules directory in your /usr/local/bfd

Here you’ll find all kinds of pre-made rules for popular services such as Apache, and ProFTPD w00t!
If you have any clue about shell scripting you can customize them or create new rules for enhanced brute force detection and prevent attacks.

Suexe issue + PHP cgi… individual php.ini file wont reflect….Cpanel

October 10, 2008 on 11:17 pm | In Cpanel, PHP | 1 Comment

The php.ini files in your home directory won’t reflect the changes.

Perform the following actions to get it resolved.

1. Moving php5 binary:

mv /usr/local/cpanel/cgi-sys/php5 /usr/local/cpanel/cgi-sys/php5.bin

2. Then creating wrapper file in the /usr/local/cpanel/cgi-sys/php5 with the following content:

#!/bin/bash

# This will fake the name & path and hide the /usr/local/cpanel/cgi-sys/php5 path!
export SCRIPT_NAME=$REQUEST_URI
export SCRIPT_FILENAME=$PATH_TRANSLATED
export PWD=$DOCUMENT_ROOT

if [ -f "$DOCUMENT_ROOT/php.ini" ]; then
exec /usr/local/cpanel/cgi-sys/php5.bin -c $DOCUMENT_ROOT
else
exec /usr/local/cpanel/cgi-sys/php5.bin
fi

3. Save the file and change the permissons:

chown root:wheel /usr/local/cpanel/cgi-sys/php5*;
chmod 755 /usr/local/cpanel/cgi-sys/php5*;

Thanks to Cpanel forums…..