Wednesday, August 12, 2009

Check Load Logs from previous days

sar -q -f /var/log/sa/sa01

RVskin installation error

Updating rvskin database...
=============================
DBI connect('rvadmin_news:localhost:3306','rvadmin_public',...) failed: Access denied for user 'rvadmin_public'@'localhost' (using password: YES) at /root/rvadmin/real_auto_rvskin.pl line 709

Database connection failed, You need to create it manually in rvadmin Skin Manager after installation is completed.

-------- Database connection testing command --------
perl -e "use DBI;print \"\n\";unless ( DBI->connect('DBI:mysql:rvadmin_news:localhost:3306','rvadmin_public','2412935') ){print \"Connection fail\n\";exit;}print \"Connection OK\n\";"
----- Above is 1 line command. It must show Connection OK. -----

====================

run the perl script perl -e "use DBI;print \"\n\";unless ( DBI->connect('DBI:mysql:rvadmin_news:localhost:3306','rvadmin_public','2412935') by replacing current passwd

Tuesday, August 11, 2009

Apache Connections

1.
#this will tell you how many connections each domain has
2.

3.
lynx --dump --width=260 localhost/whm-server-status | grep "^ [0-9]" | awk '{print $12}' | grep -i ^[a-z] | sort | uniq -c | sort -nk1
4.

5.
#this will tell you how many connections each IP Address has
6.

7.
lynx --dump --width=260 localhost/whm-server-status | grep "^ [0-9]" | awk '{print $11}' | grep ^[0-9] | sort | uniq -c | sort -nk1

Download

wget https://scripts.dimenoc.com/files/Apache_Connections_242.sh --no-check-certificate

sh Apache_Connections_242.sh

Saturday, August 8, 2009

getting emails

Type: LOCALRELAY, Local Account - nobody

Count: 101 emails relayed

Blocked: No

===========

It can be solved by setting the value of RT_LOCALRELAY_LIMIT to '0' .

ffmpeg Installation

http://ffmpeginstaller.com//free/
wget http://mirror.ffmpeginstaller.com/old/scripts/ffmpeg3/ffmpeginstall.3.2.1.tar.gz
tar
./install

=========

root@server [/usr/local/src/ffmpeginstall.3.2.1]# ffmpeg -version[root@superlink ~]# which ffmpeg
/usr/local/bin/ffmpeg
[root@superlink ~]# which mplayer
/usr/local/bin/mplayer
[root@superlink ~]# whcih mencoder
-bash: whcih: command not found
[root@superlink ~]# which mencoder
/usr/local/bin/mencoder
[root@superlink ~]# whcih flvtool2
-bash: whcih: command not found
[root@superlink ~]# which flvtool2

============

If you are facing a problem in ffmpeg installation i.e mplayer failure
then it can be solved by

===========

In ffmpeg installation if mplayer is failed then
600 rpm -qa | grep -i alsa
601 yum remove alsa-lib-devel-1.0.17-1.el5 alsa-lib-1.0.17-1.el5

install again i.e ./install

============

Unable to create subdomain

problem: In cpanel got an error when trying to create a subdomain, but domain created

=======
subdomain error

=======

solution:

/usr/local/apache/conf/httpd.conf has an attribute...so remove that attribute....that will fix the issue

OR

===============
1.check the files /etc/named.conf
2./var/cpanel/userdata
3./var/named/

Friday, August 7, 2009

YuM UPDATE FAILURE

error:

Using newyum support.
http://yum.theplanet.com/4/updates/i386/repodata/repomd.xml: [Errno 12] Timeout:
Trying other mirror.
Cannot open/read repomd.xml file for repository: update
failure: repodata/repomd.xml from update: [Errno 256] No more mirrors to try.
Error: failure: repodata/repomd.xml from update: [Errno 256] No more mirrors t

SOLUTION:


Check the yum conf files

i.e in /etc/yum.repos.d/
replace mono.repo
yum update

This will solve the problem