Tuesday, November 27, 2012

MySQL Daemon failed to start

[root@server /]# tail -f /var/log/mysqld.log

121126 22:43:33 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
121126 22:43:33 [Note] Plugin 'FEDERATED' is disabled.
121126 22:43:33 InnoDB: The InnoDB memory heap is disabled
121126 22:43:33 InnoDB: Mutexes and rw_locks use GCC atomic builtins
121126 22:43:33 InnoDB: Compressed tables use zlib 1.2.3
121126 22:43:33 InnoDB: Using Linux native AIO
121126 22:43:33 InnoDB: Initializing buffer pool, size = 128.0M
121126 22:43:33 InnoDB: Completed initialization of buffer pool

InnoDB: Error: pthread_create returned 11

121126 22:43:33 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended

I have fixed this by using the following way.

1. Increased my vps RAM from 512 to 1024MB
2. [root@server /]# ulimit -s unlimited
3. [root@server /]# service mysqld start

Wednesday, November 21, 2012

block web sites

we can block web sites using the following methods.

You can block web sites like facebook.com , orkut.com youtube.com etc using this way.

1. Using Anti-virus (Kaspersky)

     Step:1 Login to Parental Control
     Step:2 Seetings > Web=browsing


2. Using your Cisco Router

      ajeesh@tech3:~$ ping youtube.com
      PING youtube.com (74.125.236.38) 56(84) bytes of data.
      64 bytes from maa03s04-in-f6.1e100.net (74.125.236.38): icmp_req=1 ttl=52   time=160 ms

     ajeesh@tech3:~$ whois 74.125.236.38 | grep -E "NetRange|CIDR"
           NetRange:       74.125.0.0 - 74.125.255.255
           CIDR:           74.125.0.0/16


     Step1  : Router> enable
     Step2  : Router# configure terminal
   Step3  : Router(config)#
     Step4  :Router(config)# Ip route 74.125.0.0 255.255.0.0 Null0

Sunday, November 18, 2012

Awstats Direct URL installation for cPanel

 Awstats Direct URL installation for cPanel


For illustrative purposes we are assuming the following:
server hostname: server.example.com
awstats url : http://www.example.com/aw
cPanel primary domain: www.example.com
cPanel account name: example
subfolder where we are installing awstat: aw

Installation Steps:

 root@server [~]# mkdir -p /home/example/public_html/aw

 root@server [~]# cd /home/example/public_html/

 root@server [~]# wget http://www.awstats.org/files/awstats-7.1.tar.gz

(substitute wget link with latest version)

 root@server [~]# tar -zxf  awstats-7.1.tar.gz

 root@server [~]#  rsync -avp awstats-7.1/wwwroot/cgi-bin/     /home/example/public_html/aw/

 root@server [~]# mkdir -p /home/example/public_html/images

 root@server [~]# rsync -avp awstats-7.1/wwwroot/icon/  /home/example/public_html/images/

 root@server [~]# chown -R example.example /home/example/public_html/aw

 root@server [~]# chown -R example.example /home/example/public_html/images

 root@server [~]# chmod 755 /home/example/public_html/aw/*.pl

create .htaccess file with following entries
++++++++++++++++++++++++++++
AddHandler cgi-script .cgi .pl
Options +ExecCGI
+++++++++++++++++++++++++++
 root@server [~]# chmod 755 /home/example/public_html/aw/.htaccess

 root@server [~]# cp -p /home/example/tmp/awstats/awstats.example.com.conf
 /home/example/public_html/aw/

 root@server [~]# chown example.example  /home/example/public_html/aw/awstats.example.com.conf

 root@server [~]# chmod 755  /home/panorami/public_html/aw



Now the awstat output of the domain example.com should be accessible using
the following link

 http://www.example.com/aw/awstats.pl?config=example.com

ref:
http://www.thewebhostinghero.com/tutorials/access-awstats-outside-cpanel.html

Sunday, November 11, 2012

Installating vztop - openvz tools

You can install OpenVz monitoring tools and these utilities are available on OpenVz web site:

http://download.openvz.org/contrib/utils/

For example if you need to install vztop , you can done this by executing a single command.


Ajeesh~]# rpm -ivh http://download.openvz.org/contrib/utils/vzprocps-2.0.11-6.13.swsoft.i386.rpm

Retrieving http://download.openvz.org/contrib/utils/vzprocps-2.0.11-6.13.swsoft.i386.rpm
warning: /var/tmp/rpm-xfer.Z2tESG: Header V3 DSA signature: NOKEY, key ID 2425c37e
Preparing...                ########################################### [100%]
   1:vzprocps               ########################################### [100%]
You have new mail in /var/spool/mail/root

[root@Ajeesh ~]# vztop

Sunday, November 4, 2012

Scripts Installation Service

We are happy to install for the following Scripts

mail to : ajeeshbkannan@yahoo.co.in  Or contact Us on 0091 - 9567994999


1. ffmpeg and its Dependant modules

2. Video Streaming

* Red5   (Live streaming) - video whisper / chat / admin panel
* Kaltura (Live Streaming)
* vidi scripts
* Vimp
* media core
* FMS
* wowza




3. Blogs / CMS /Forum / e-comerce

* wordpress
* Joomla
* phpbb
* ZenCart / PrestaShop / Open Cart / Magento
* wiki

4. Video / Picture / audio
  * Clipbucket
  * phpmotion
  * php-melody
  * avs

5 Other

 * Dolphin



Saturday, November 3, 2012

cPanel Account terminate break in the middle

If your account terminate process breaks in the middle , your domain will exist in cPanel list account, terminate account, also the domain will be in /etc/localdomains , /etc/userdomains etc.

And when your try to terminate again from your cPanel/WHM you will see the following error.
==================
 Terminate an Account
Account Removal Status: failed (System user exoticca does not exist!)
System user exoticca does not exist!
==================

Solution

check the account exists on the following files
1. egrep ajeesh /etc/passwd /etc/shadow /etc/group
2. egrep -Ri ajeesh /var/cpanel/userdata/*
3.  mv /etc/named.conf.cache /etc/named.conf.cache.bak
4.  /etc/init.d/named restart