Friday, December 24, 2010

TUN TAP DEVICE/ OPENVPN

Enabling TUN DEVICE/ OPENVPN on your server (on Virtual Private Server).

For enabling TUN Device or Open VPN you need to access your hardware node. If you have the Hardware access please do the following steps.

[root@ajeesh ~]# modprobe tun
[root@ajeesh ~]# veid=99999[enter your VEID no]
[root@ajeesh ~]# /usr/sbin/vzctl set $veid --devices c:10:200:rw --save
Setting devices
Saved parameters for VE 99999
[root@ajeesh ~]# /usr/sbin/vzctl exec $veid mkdir -p /dev/net
[root@ajeesh ~]# /usr/sbin/vzctl exec $veid mknod /dev/net/tun c 10 200
mknod: `/dev/net/tun': File exists
[root@ajeesh ~]# /usr/sbin/vzctl exec $veid chmod 600 /dev/net/tun

Thanks you comments are valuable to me ....

Wednesday, December 22, 2010

Joomla error

Warning: Parameter 2 to frontpage() expected to be a reference, value given in /home/username/public_html/includes/Cache/Lite/Function.php on line 100

Warning: Parameter 2 to "some functions"

This error is an incompatibility between Joomla and PHP version. You may be using php version 5.3 or higher than this. As far as i know PHP 5.3 version is having some bugs

I have resolved this issue by downgrading php version to 5.2.14

Thanks,

Tuesday, December 21, 2010

how to point another server

How to point www or MX record to another server

If you would like to load your web site from another server you can easily do it by editing the DNS record. Please check the follow the following

1. Set A record for your domain to another server IP

yourdomain.com IN A another server IP

2. After that set www A record also to another server IP

www IN A another server IP

3. All other services A record should be point to current Server IP that is ,
cpanel IN A current Server IP
whm IN A current Server IP
webmail IN A current Server IP


How to point MX record to another server ( If you want use another server as your mail server)

1. Login into your WHM
2. click on Edit DNS
3. Select the domain you want to change the server
4. change the MX record pointing web site from yourdomain.com to mail.yourdomain.com
5. After that we need to add a A record for mail.yourdomain.com
ie, mail.yourdomain.com IN A another server IP

Monday, December 20, 2010

Mail Notifier in Gmail

Image representing Gmail as depicted in CrunchBaseImage via CrunchBase




Gmail mail notifier settings is a very good feature. Using this you can avoid all your email client software. However which makes your system more fast.

Using the mail notifier you will get a sound notification from your Gmail account. Sound can be in any formate. But in the case of Mozilla Firefox sound should be in .wav formate.

To set the mail notifier on your Browser please do the following steps.

1. Click on " Customize and control Google Chrome "
2. Go to Tools -> Extensions -> Get more extensions
3. Search for Gmail Notifier on top right side
4. Click on that " INSTALL"
5. Restart your Google Chrome ( Simply You can close all Google Chrome and take Again from Application -> Internet -> Google chrome)

Settings

1. Tools -> Extensions -> Gmail Notifier -> Option
2. Custom Domain (If your Domain is Set Google Apps) Add your domain https://mail.google.com/a/yourdomain.com
3. Moreover you can set notification time and sound

Setting a custom sound for your Gmail Notifier

1. Go to
[ajeesh@tech23 ~]$ cd .config/google-chrome/Default/Extensions/kkmbodalobogbnejmcdghkfimhodifol/1.1.0_0/

2. There you can see "notify.mp3"

3. Rename your customer sound file (say mysound.mp3 copied to that location) to "notify.mp3"

Please try and feel the difference !!!! It is very nice for you. This will reduce your respomse time and enjoy your work !!! :)

Issues:-
If the sound is not enabled please do the following steps

1. Tools -> Extensions -> Gmail Notifier
2. Click "Disable" and Enable it again once more


Enhanced by Zemanta

Sunday, December 19, 2010

MaxClients exceeds ServerLimit

Logo for the Apache HTTPD Server Project .Image via Wikipedia








# /scripts/restartsrv_httpd
WARNING: MaxClients of 900 exceeds ServerLimit value of 256 servers,
lowering MaxClients to 256. To increase, please see the ServerLimit
directive.
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs

Moreover site is also loading very slowly we can say it is not loading also.

Please retry your /etc/http/conf/httpd.conf



StartServers 25
MinSpareServers 10
MaxSpareServers 20
MaxClients 900
MaxRequestsPerChild 250



To


StartServers 25
MinSpareServers 10
MaxSpareServers 20
ServerLimit 900
MaxClients 900
MaxRequestsPerChild 250


Please note that ServerLimit should come above MaxClients
Enhanced by Zemanta

Wednesday, December 15, 2010

Error from park wrapper: yourdomain is already configured

Error from park wrapper: yourdomain is already configured while you are adding addon domain through cpanel.

Once you are getting this error, we have to manually remove the particular domain from the following location and retry again from your cpanel to add that domain as addon domain

1. /etc/httpd/conf/httpd.conf
2. /etc/userdomains
3. /etc/named.conf
4. cd /var/named/ domain.com.db file delete
5. /etc/localdomains
6. /etc/valiases/
7. /etc/vdomainaliases/
8. /etc/trueuserdomains
9. /etc/trueuserowners
10 /etc/vmail/
11 cd /var/cpanel/bandwidth/

Still your cpanel is showing this error we have to add our domain.com manually into these files. While adding you have to take back of all those important files.
[httpd.conf , named.conf , userdomains etc ]

Or some times you may get the error like
Error from park wrapper: domain.com is owned by another user

Try the above fix , this is not fixed Go to WHM -> Server Configuration -> Tweak Settings
enable "Allow Creation of Parked/Addon Domains that are not registered"
After that go to "/var/cpanel/cpanel.config" add "autocreateaentries=0" and save your file

All your comments are valuable to me ...

Wednesday, December 8, 2010

mtr tool

mtr is a good tool to check the packet lose for a domain. Its give us the companied effect of PING and traceroute. It is a network monitoring tool. mtr toll is ued when we are facing some buffering issue. Using this tool we can check packet lose for a particular domain.On the screen we can see how much packet lose with respect to the packet sent.
Loss% Snt Last Avg Best Wrst StDev are the parameters

[ajeesh@tech23 ~]$ mtr ajeeshbkannan.blogspot.com



try this on your linux machine ctl+q to quit from the screen

Tuesday, December 7, 2010

kill all user process

You can kill all process under a particular user on your WHM/cpanel

System Health -> Process Manager -> Kill all processes by users select the particular user and kill it.

For some cases pkill -u will make any changes on your server. So this WHM feature will help you a lot.

Monday, December 6, 2010

cpanel login logs

All cpanel/WHm login logs you can check on all cpanel servers


]# grep -f /usr/local/cpanel/logs/login_log

From here you can check the whm root/reseller/cpanel user login failures