Young Webmaster Camp 8

Problem : MRTG Graph in DirectAdmin cp + CentOS
Solutions:

yum -y install gd gd-devel libpng libpng-devel zlib zlib-devel net-snmp net-snmp-utils mrtg
chkconfig snmpd on
cd /etc/snmp/
mv snmpd.conf snmpd.conf.bak
vim snmpd.conf
############
syslocation  Thailand
syscontact  admin
sysservices 79
rocommunity  public localhost
agentaddress localhost
############
/etc/init.d/snmpd restart
snmpwalk -v1 -cpublic localhost
wget -O /var/www/mrtg/php.load.php www.icez.net/files/php.load.txt
chmod a+x /var/www/mrtg/php.load.php
vim /var/www/mrtg/php.load.php
#find "/usr/bin/php"  replace to /usr/local/bin/php
cd /etc/mrtg
mv mrtg.cfg mrtg.cfg.bak
vim mrtg.cfg

(Install MRTG Directadmin CentOS 5 32/64bit More »)

29
Sep

Check PHP Warning Extension

Ploblem: “PHP Warning: PHP Startup: Unable to load dynamic library ‘./usr/local/lib/php/extensions/no-debug-non-zts-20060613/eaccelerator.so’ - ./usr/local/lib/php/extensions/no-debug-non-zts-20060613/eaccelerator.so: cannot open shared object file: No such file or directory in Unknown on line 0″
Solutions:

php -v //or php -a
vim /usr/local/lib/php.ini

edit extension_dir and recheck php -v

good luck ;)

27
Sep

Change Localtime and Update Linux

Solutions: Change and Update Time Zone (Bangkok ICT) on CentOS/Debian or other Linux

rm -f /etc/localtime
ln -s /usr/share/zoneinfo/Asia/Bangkok /etc/localtime

Update Timezone (CentOS)

yum -y install ntp
ntpdate pool.ntp.org

Update Timezone (Debian)

aptitude -y install ntpdate
ntpdate pool.ntp.org

Recheck your localtime

date

good luck;

25
Sep

NOD32 Username and Password

แจก NOD32 Username and Password ฟรีๆ ไม่ต้องแคร๊ก Crack nod32

เครื่องผมใช้ Smart Security Bussiness Edition V4.0.437 32bit ก็สามารถใช้ NOD32 Username and Password จากเว็บ nod325.com มาอัพเดทได้นะครับ

ตอนนี้เว็บ nod321.cn nod321.com เข้าไม่ได้ ลองไปส่องเว็บนี้ดูนะครับ nod325.com หรือไม่ก็ nod32logins.blogspot.com ดูครับ

หรือว่าถ้ามีเว็บไหนแจก NOD32 Username and Password ก็ช่วยโพสแจกด้วยนะครับ

แถม Virus signature database updates: eset.com/support/updates.php

22
Sep

Driver Realtek CentOS

Problem: M/B asus P5-Q-VM Driver or Atom Lan “Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller” not work in CentOS 5.3 , it’s ping time out and high.

Solutions: Install Downgrade/upgrade

wget -O /etc/yum.repos.d/thai.repo thzhost.com/files/thai.repo
yum install kernel kernel-devel
reboot
yum install dkms dkms-r8168
echo "blacklist r8169" >> /etc/modprobe.d/blacklist
sed -e "s/r8169/r8168/g" /etc/modprobe.conf > /tmp/modprobe.conf
/bin/mv -vf /tmp/modprobe.conf /etc/modprobe.conf

good luck ;)

Credit: icez of thzhost.com
Ref: http://www.thaihosttalk.com/index.php?topic=22011.0