Thursday, 28 February 2013

How to Install/Remove WHMXtra on cPanel Server

Install WHMXtra on cPanel Server via SSH:

# wget http://whmxtra.com/pro/pro.sh
# sh pro.sh

Remove WHMXtra on cPanel Server via SSH:

# wget http://whmxtra.com/pro/remitall.sh
# sh remitall.sh


Tuesday, 26 February 2013

directive requires additional arguments


You may get the below error while starting the httpd on Kloxo 

Starting httpd: Syntax error on line 2 of /home/apache/conf/defaults/_default.conf:
<VirtualHost> directive requires additional arguments
[FAILED]


Solution:  

# sh /script/fixweb

Thats fixed my issue.


Saturday, 23 February 2013

How to enable mod_cache, mod_disk_cache, mod_mem_cache, mod_file_cache on DirectAdmin

First you need to compile Apache to enable the below modules on DirectAdmin control panel

mod_cache
mod_disk_cache
mod_mem_cache
mod_file_cache

 Edit the configure.apache file and add the needed modules

# cd /usr/local/directadmin/custombuild/configure/ap2
# vi configure.apache

Add the below modules at the bottom of the file.

        "--enable-cache" \
        "--enable-mem-cache" \
        "--enable-disk-cache" \
        "--enable-file-cache"



Example of  configure.apache file :

# vi configure.apache

#!/bin/sh
"./configure" \
        "--prefix=/etc/httpd" \
        "--exec-prefix=/etc/httpd" \
        "--bindir=/usr/bin" \
        ........................................
         ..........................................
             .........................................
                .........................................

        "--with-ssl=/usr" \
        "--enable-headers"\
        "--enable-cache" \
        "--enable-mem-cache" \
        "--enable-disk-cache" \
        "--enable-file-cache"

Save and Exit.

Now, compile the Apache as below,

#  cd /usr/local/directadmin/custombuild
#  ./build apache

Command to check :
# httpd -l | grep mod_cache
  mod_cache.c

# httpd -l | grep mod_disk_cache
  mod_disk_cache.c


Thats worked for me !!


Thursday, 21 February 2013

Warning in CSF : Check csf SYSLOG_CHECK option (This option helps prevent brute force attacks on your server services)

Warning in CSF : Check csf SYSLOG_CHECK option (This option helps prevent brute force attacks on your server services)

Solution:
# vi /etc/csf/csf.conf

search for "SYSLOG_CHECK" and change the value something like 600.
save and exit the configuration file.

Restart the CSF firewall
#csf -r
:)


Wednesday, 20 February 2013

Error: You need to install the missing perl modules and then install csf in DirectAdmin

You need to install the missing perl modules and then install csf in DirectAdmin

Solution 1: yum install perl-Time-HiRes
Solution 2: yum install perl-libwww-perl

Thats worked for me !!

Tuesday, 5 February 2013

phpize - Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable. Then, rerun this script.


You may get the below error :


# phpize
Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.


Solution: 

# yum install autoconf

Re-run the "phpsize" command, the issue will fix.

# phpize
Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626




Monday, 4 February 2013

Apache Error : Address already in use: make_sock: could not bind to address


You may receive the below error while Restarting the Apache.

Error:
Address already in use: make_sock: could not bind to address [::]:80
no listening sockets available, shutting down

Solution:

# netstat -ltnp | grep ':80' 
tcp        0      0 :::80    :::*     LISTEN      11628/httpd

# kill -9 11628
# /etc/init.d/httpd restart

Now the httpd should works fine.