Blank page on PHP-lists on fantastico..

February 25, 2008

The issue was the the option php-list on fantastico was giving blank page.
New installations also giving the blank page.

Cause:

Server is PHP-suexec, so some configuration change need to implement PHP list.

FIX :

The server is PHP-SUEXEC enabled so the plugin_rootdir should be given
as “plugins” in config.php file.

——-
#define(“PLUGIN_ROOTDIR”,”/tmp”);
define(“PLUGIN_ROOTDIR”,”plugins”);
——


Permissions of EXIM

February 25, 2008

What is the permission of exim binary ?

Is it normal, no we have to give special permissions.

root@Server[~]# ll /usr/sbin/exim

-rwsr-xr-x 1 root root 775568 Feb 18 11:32 /usr/sbin/exim
If these permissions are incorrect , exim will refuse to start.

# chmod 4755 /usr/sbin/exim

(or)

# chmod u+s /usr/sbin/exim

Alert Mail when someone logins as root..

February 25, 2008

If you need to send an email alert if anyone logs in successfully as root using SSH. Enable the following on CSF configuration file ( /etc/csf/csf.conf).

LF_SSH_EMAIL_ALERT = "1"

You can block an IP, if certain number of login failure happens, the IP will be blocked by enabling the following option.

LF_SSHD = "3"

Server Alias Incorrect server wide.

February 16, 2008
    Fix :

/var/cpanel/userdata/users/domain.com

Correct Server Alias and then run

/scripts/rebuildhttpdconf

/usr/local/cpanel/bin/apache_conf_distiller --update.       Script to do the same.    cd /var/cpanel/userdata

find ./ -type f > ~/list1.txt

for i in `cat ~/list1.txt`; do x=`echo $i | cut -d/ -f 3`; if grep -q ^$x$ /etc/localdomains; then echo $i;fi;  done  > ~/list2.txt   

for i in `cat ~/list2.txt`; do domains=`echo $i | cut -d/ -f 3`; replace "serveralias: $domains" "serveralias: www.$domains" -- $i; done

RSync Command

February 13, 2008

nohup rsync -avz -e ssh ./public_html root@DestIP:DestPath


ImageMagick

February 13, 2008

1) wget http://fresh.t-systems-sfr.com/unix/misc/ImageMagick-6.3.8-6.tar.gz
2) unpack the distribution:
$ tar -zxvf ImageMagick-5.4.8.tar.gz
and move to the directory that has just been created:
$   cd ImageMagick-6.3.8

3) run the configuration script:
$ ./configure

$ make
- Build the package

$ make install
- Install the package

$ make check
- Run tests using the installed ImageMagick (‘make install’ must be done first!).

4) move to the directory of PerlMagick:
$ cd PerlMagick

5) build and install PerlMagick:
$ perl Makefile.PL
$ make
$ make install