Thursday 24 October 2013

httpd dead but pid file exists in Kloxo Control Panel

You can try the following fixes :-

1) Kill all the Apache process 

# ipcs -s apahe

# ipcs -s | grep apache | perl -e 'while (<STDIN>) { @a=split(/\s+/);print `ipcrm sem $a[1]`}' 

# cd /var/lock/subsys

# rm httpd

# service httpd restart

Monday 13 May 2013

Error while access Transmission torrent Client web interface

You may receive the below error while trying to access Transmission torrent Client web interface.

Error:

http://ip:9091

403: Forbidden

Unauthorized IP Address.
Either disable the IP address whitelist or add your address to it.
If you're editing settings.json, see the 'rpc-whitelist' and 'rpc-whitelist-enabled' entries.
If you're still using ACLs, use a whitelist instead. See the transmission-daemon manpage for details.

Solution:

First stop the transmission-daemon.

# /etc/init.d/transmission-daemon stop

The configuration file may found "/var/lib/transmission/.config/transmission-daemon/settings.json"
Edit the settings.json file and change as rpc-whitelist-enabled": false.

Save and exit from  settings.json.

Now start the  transmission-daemon
# /etc/init.d/transmission-daemon start

Now Access the Transmission from Browser http://ip:9091.


Sunday 12 May 2013

Error: Kernel image does not exist: /boot/solus-vmlinuz

You may get the below error while starting Xen VPS.

# xm create -c /home/xen/vm7202/vm720.cfg
Using config file "/home/xen/vm720/vm720.cfg".
Error: Kernel image does not exist: /boot/solus-vmlinuz

Solution:
# php /usr/local/solusvm/includes/xenkernel.php
Making SolusVM initrd...
Setting kernel links...
Kernel setup completed.

Now start the Xen VPS using Config file.

# xm create -c /home/xen/vm720/vm720.cfg

Monday 22 April 2013

Alert: could_not_add_mail [Error - no authentication database connection. Initial open


You may receive the error while Adding New Domain to Kloxo Control Panel.

Solution:

I just followed the below steps which fixed my issue,

1)  Reset mysql pass from kloxo interface only.
2)  /script/upcp
3)  /script/fixvpop
4)  /script/fixmail


Friday 22 March 2013

Error in Pure-ftpd on Kloxo VPS.

You may Receive the below error while accessing Pure-ftpd in Kloxo VPS.

Error:
/usr/sbin/pure-ftpd -A -c50 -B -C8 -D -fftp -H -I15 -lpam -L10000:8 -m4 -s -U133:022 -u500 -i -Oclf:/var/log/pureftpd.log -k99 -Z

or

ECONNREFUSED - Connection refused by server

Solution:
# chkconfig pure-ftpd on
# /etc/init.d/xinetd restart
# yum downgrade pure-ftpd
# /script/upcp
# /script/cleanup

That's fixed my issue.


Monday 4 March 2013

Starting nginx: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)


Error while starting nginx


]# /etc/init.d/nginx restart
Stopping nginx:                                            [FAILED]
Starting nginx: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] still could not bind()


Solution:
# fuser -k 80/tcp

# /etc/init.d/nginx restart
Stopping nginx:                                            [  OK  ]
Starting nginx:                                            [  OK  ]


Thats it !!

How to install eAccelerator on CentOS

Download  eAccelerator :
# wget http://downloads.sourceforge.net/project/eaccelerator/eaccelerator/eAccelerator%200.9.6.1/eaccelerator-0.9.6.1.zip

# unzip eaccelerator-0.9.6.1.zip

# cd eaccelerator-0.9.6.1


# /usr/local/bin/phpize
or
# phpize

If you are getting below error while using the command "phpize" , then you need to install the missing package.

-bash: phpize: command not found

On php 5.2
# yum install php-devel

On php 5.3
# yum install php53-devel


# ./configure --enable-eaccelerator=shared --with-php-config=/usr/local/bin/php-config
or
# ./configure


# make
# make install

Grep the php.ini file
# php -i | grep php.ini
Configuration File (php.ini) Path => /usr/local/etc/php5/cgi
Loaded Configuration File => /usr/local/etc/php5/cgi/php.ini

Open php.ini file
# vi /usr/local/etc/php5/cgi/php.ini

Add the below line at the end of  the php.ini file.
extension="eaccelerator.so"

Restart the Apache 
# /etc/init.d/httpd restart

Check whether eAcceleartor has installed or not
# php -v

PHP 5.3.22 (cli) (built: Feb 23 2013 23:45:01)

Copyright (c) 1997-2013 The PHP Group

Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies

    with eAccelerator v0.9.6.1, Copyright (c) 2004-2010 eAccelerator, by eAccelerator


Thats it !!

Thursday 28 February 2013

Install Fantastico De Luxe WHM Admin on cPanel Server


#  cd /usr/local/cpanel/whostmgr/docroot/cgi
#  wget -N http://files.betaservant.com/files/free/fantastico_whm_admin.tgz
#  tar -xzpf fantastico_whm_admin.tgz 
#  rm -rf fantastico_whm_admin.tgz



NOTE: if you have problems contacting this server, please try this alternate location:
wget -N http://netenberg.com/files/free/fantastico_whm_admin.tgz


Go to WHM, login as root and click on Tweak Settings, then you should ensure  the Ioncube loader is selected for the backend copy of PHP. Save changes.

Now Go to cPanel/WHM >> Plugins >> Fantastico De Luxe WHM Admin  >> Install.







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.



Monday 21 January 2013

/usr/sbin/pppd: No such file or directory

First Read my previous article, how to enable PPP module on OpenVZ  VPS.
http://senthilthoppur.blogspot.in/2012/12/how-to-enable-ppp-module-to-vps-on.html

You may receive the below Error while checking whether PPP module is enabled or not.


# /usr/sbin/pppd
-bash: /usr/sbin/pppd: No such file or directory

It means, the PPP package is not installed on your Linux Server. 


Use the Below command to install PPP package,

# yum install ppp


Once installed,  check whether PPP module is enabled or not.

# /usr/sbin/pppd
~ÿ}#À!}!}!} }4}"}&} } } } }%}&>à3À}'}"}(