Wednesday, October 28, 2009

Install NTP

# yum install ntp

# chkconfig ntpd on

# ntpdate pool.ntp.org

and start the NTP

# /etc/init.d/ntpd start


Note :: Do not forget to open port 123 in firewall.


Thanks
Ninad

Command to check SYN attack

netstat -nap | grep SYN | wc -l

Syslogd failed

Check whether syslogd is missing or not:

rpm -q sysklogd
If nothing shows up, do the following to install it:

yum install sysklogd
Restart syslogd service:
/scripts/restartsrv_syslogd


Thanks
Ninad

YUM Error

If you are getting this error on cpanel server

root@ninad~]# yum check-update Loading “installonlyn” plugin Setting up repositories Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5&arch=i386& repo=extras error was [Errno 4] IOError: Error: Cannot find a valid baseurl for repo: extras

Solution

yum clean metadata
yum clean dbcache
yum makecache

Thanks
Ninad

Friday, October 3, 2008

Command to count VE on node

Give command vzlist|wc -l on node to check the number of VE's.

For example::

[root@ninad02 ~]# vzlist|wc -l
24

This shows there are 24 VE's on that node.

Thanks
Ninad

Install Perl Module from shell

Log into the shell as root and fire the below command

echo "HTML::SimpleLinkExtor" | /usr/local/cpanel/whostmgr/bin/perlmod -i


This will install HTML::SimpleLinkExtor module.

Friday, March 28, 2008

Warning: Cannot modify header information

If you get warnings on top of the page
Warning: Cannot modify header information - headers already sent by (output started at

Solution is
The "headers already sent" error is usually caused by having white space before or after the opening and closing PHP tags ().

In my case it was I removed  and issue resolved.

Thanks
Ninad


View My Stats