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 !!