<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.6" -->
<rss version="0.92">
<channel>
	<title>Blog Voice</title>
	<link>http://voice.zeednetwork.com</link>
	<description>Blog Voice Computer it network</description>
	<lastBuildDate>Thu, 13 Nov 2008 15:39:56 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>ทดสอบการ อ่านเขียน HD</title>
		<description>สำหรับคำสั่งที่ใช้ทดสอบ
CentOS
hdparm -t /dev/sda

CentOS &#38; FreeBSD
Write Test
dd if=/dev/zero of=/usr/test.bin bs=512 count=4096000
dd if=/dev/zero of=/usr/test2.bin bs=512 count=4096000
Read Test
dd if=/usr/test.bin of=/dev/null </description>
		<link>http://voice.zeednetwork.com/2008/11/03/%e0%b8%97%e0%b8%94%e0%b8%aa%e0%b8%ad%e0%b8%9a%e0%b8%81%e0%b8%b2%e0%b8%a3-%e0%b8%ad%e0%b9%88%e0%b8%b2%e0%b8%99%e0%b9%80%e0%b8%82%e0%b8%b5%e0%b8%a2%e0%b8%99-hd/</link>
			</item>
	<item>
		<title>Mysql localhost แยกเครื่องออกจากเครื่อง web</title>
		<description>พอดีได้มีโอกาศ ได้ติดตั้งเครื่อง 2 เครื่อง เครื่อง web (apache) กับ database (Mysql) โดยมี สายออกเน็ท 1 เส้น ส่วน mysql จะเชื่อมกับ web โดยผ่านสายแลนที่เป็น local network(10.0.0.2)  ทำการ ติดตั้ง apache+php และ phpmyadmin(ทำการ config ให้มัน เชื่อต่อ ไปที่ 10.0.0.2 แล้ว)  แล้วทำการเชื่อต่อ เชื่อต่อได้ครับ แต่ไมมันช้าได้ใจจริง  เลยไปหาข้อมูลในเน็ทเค้าบอกให้ ใส่

[mysqld]
skip-name-resolve

แล้ว restart mysql ทันได้นั้น ก็สามารถเข้าได้ รวดเร็วทันใจ
ปล. อยาลืม grant สิทธิ์ ให้ user เข้าจาก ip อื่นได้ด้วยนะครับ </description>
		<link>http://voice.zeednetwork.com/2008/10/02/mysql-localhost-%e0%b9%81%e0%b8%a2%e0%b8%81%e0%b9%80%e0%b8%84%e0%b8%a3%e0%b8%b7%e0%b9%88%e0%b8%ad%e0%b8%87%e0%b8%ad%e0%b8%ad%e0%b8%81%e0%b8%88%e0%b8%b2%e0%b8%81%e0%b9%80%e0%b8%84%e0%b8%a3%e0%b8%b7/</link>
			</item>
	<item>
		<title>update ports for CentOS5.2</title>
		<description>#rpm --import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
#vi /etc/yum.repos.d/utterramblings.repo
insert data
[utterramblings]
name=Jason’s Utter Ramblings Repo
baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka </description>
		<link>http://voice.zeednetwork.com/2008/09/10/update-ports-for-centos52/</link>
			</item>
	<item>
		<title>รายละเอียด การ Config mysql</title>
		<description>ภาคที่1
MySQL นับว่าเป็นหัวใจของ Web Server อีกตัวหนึ่งเลยก็ว่าได้เพราะว่า MySQL นั้นเป็นแหล่งข้อมูลที่สามารถเรียกใช้งานได้อย่างรวดเร็ว วันนี้ผมจะเอาประสบการณ์เกี่ยวกับการ Config MySQL มาให้อ่านกัน

ผมอิงตามรุ่น 4.1 โดยใช้กับ Server ที่ใช้ tis620 เป็น Default นะครับ

เริ่มต้นที่การ Compile PHP ให้สนับสนุน MySQL
ปกติแล้วสามารถ Compile PHP ให้สนับสนุน MySQL ด้วยการใช้ --with-mysql วิธีการนี้จะเป็นการใช้ MySQL Lib Client ที่ Bundle มากับ PHP ครับ ซึ่งเป็น Version เก่า นอกจากนี้ยังมี Extension ใหม่ชื่อ MySQLi ซึ่งถ้าจะใช้ MySQLi จะไม่สามารถใช้ MySQL Lib ...</description>
		<link>http://voice.zeednetwork.com/2008/09/08/%e0%b8%a3%e0%b8%b2%e0%b8%a2%e0%b8%a5%e0%b8%b0%e0%b9%80%e0%b8%ad%e0%b8%b5%e0%b8%a2%e0%b8%94-%e0%b8%81%e0%b8%b2%e0%b8%a3-config-mysql/</link>
			</item>
	<item>
		<title>สร้าง user สำหรับแบ่งพื้นที่ทำ website</title>
		<description>ปรับแต่ง config apache ที่ file http.conf

 

UserDir public_html
UserDir disabled root toor daemon operator bin tty kmem games news man sshd bind proxy _pflogd _dhcp uucp pop www nobody mailnull smmsp

&#60;Directory "/home/*/public_html"&#62;
    AllowOverride FileInfo AuthConfig Limit Indexes
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
    &#60;Limit GET POST OPTIONS&#62;
        Order allow,deny
        Allow from all
    &#60;/Limit&#62;
    ...</description>
		<link>http://voice.zeednetwork.com/2008/08/30/%e0%b8%aa%e0%b8%a3%e0%b9%89%e0%b8%b2%e0%b8%87-user-%e0%b8%aa%e0%b8%b3%e0%b8%ab%e0%b8%a3%e0%b8%b1%e0%b8%9a%e0%b9%81%e0%b8%9a%e0%b9%88%e0%b8%87%e0%b8%9e%e0%b8%b7%e0%b9%89%e0%b8%99%e0%b8%97%e0%b8%b5/</link>
			</item>
	<item>
		<title>กำหนดสิทธิ์ให้ Mysql</title>
		<description>server01# mysql - u root -p  เข้าระบบ
  mysql&#62; GRANT all  ON customer.* TO custom@'%'  IDENTIFIED BY 'manager';

  mysql&#62; FLUSH PRIVILEGES;

กำหนดให้ มีสิทธ์ ทุก database ทุก table โดยมี user ชื่อ custom สามารถเข้าได้ จากทุก ip และมี password คือ manager

 </description>
		<link>http://voice.zeednetwork.com/2008/08/27/%e0%b8%81%e0%b8%b3%e0%b8%ab%e0%b8%99%e0%b8%94%e0%b8%aa%e0%b8%b4%e0%b8%97%e0%b8%98%e0%b8%b4%e0%b9%8c%e0%b9%83%e0%b8%ab%e0%b9%89-mysql/</link>
			</item>
	<item>
		<title>การติดตั้ง Plugin WP-Cache ให้ Wordpress</title>
		<description>1.ให้ทำการ ดาวน์โหลด WP-Cache
2.นำมา unzip แล้วทำการ upload folder ไว้ที่ /wp-content/plugins/
3.ทำการแก้ไข file wp-config.php โดยการเพิ่ม define('WP_CACHE', true);
4.ทำการ chmod 777 wp-content เพื่อให้สามารถ สร้าง folder cache และ สร้าง file cache
5.login ที่ wp-admin และไปที่เมนู Plugins ให้คลิกที่ Activate WP-Cache Plugin
6.ที่ setting จะมี tap wp-cache แสดงขึ้นมา ให้ไปที่ tap นั้นแล้วทำการ Enable it เพื่อทำการใช้งาน

หมายเหตุ ถ้ามีปัญหากี่ยวกับ file advanced-cache.php ใน folder wp-content ...</description>
		<link>http://voice.zeednetwork.com/2008/08/21/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%95%e0%b8%b4%e0%b8%94%e0%b8%95%e0%b8%b1%e0%b9%89%e0%b8%87-plugin-wp-cache-%e0%b9%83%e0%b8%ab%e0%b9%89-wordpress/</link>
			</item>
	<item>
		<title>VieTrio วีทรีโอ เล่นสด</title>
		<description>

 

 </description>
		<link>http://voice.zeednetwork.com/2008/08/15/vietrio-%e0%b8%a7%e0%b8%b5%e0%b8%97%e0%b8%a3%e0%b8%b5%e0%b9%82%e0%b8%ad-%e0%b9%80%e0%b8%a5%e0%b9%88%e0%b8%99%e0%b8%aa%e0%b8%94/</link>
			</item>
	<item>
		<title>Apache Status Codes และ Error Codes</title>
		<description> 

Informational 100 Continue 101 Switching Protocols Successful 200 OK 201 Created 202 Accepted 203 Non-Authoritative Information 204 No Content 205 Reset Content 206 Partial Content Redirection 300 Multiple Choices 301 Moved Permanently 302 Moved Temporarily 303 See Other 304 Not Modified 305 Use Proxy Client Error 400 Bad Request 401 ...</description>
		<link>http://voice.zeednetwork.com/2008/06/23/apache-status-codes-%e0%b9%81%e0%b8%a5%e0%b8%b0-error-codes/</link>
			</item>
	<item>
		<title>บีบอัด แตก ไฟล์แต่ล่ะแบบ gz bz2</title>
		<description>[caption id="attachment_25" align="alignleft" width="178" caption="null"][/caption]

ฟอร์แมตแรกที่จะแนะนำก็คือ gzip ย่อมาจาก GNU zip คำสั่งก็ตรงไปตรงมาครับ ก็คือ

gzip filename.txt

หลังจากกด enter ไปไฟล์ filename.txt ของเราจะหายไป แล้วกลายร่างเป็น filename.txt.gz เสียแล้ว
แต่ใครยังอยากเก็บไฟล์ต้นฉบับไว้อยู่ก็ให้ใส่ -c เข้าไปซึ่งเป็นการบอกให้ gzip แสดงเข้ามาออกทาง
standard output จากนั้นเราก็ทำการเปลี่ยนทิศทางไปยังไฟล์ที่เราต้องการ

gzip -c filename.txt &#62; filename.txt.gz

ผลลัพธ์ที่ได้ก็จะเหมือนกับคำสั่งแรกต่างกันที่ต้นฉบับเรายังอยู่ ไม่ไปไหน
และถ้าเราอยากให้ไฟล์ที่ได้บีบกันแบบสุดๆ ก็ให้ใส่ -9 แต่ถ้าอยากได้ความเร็วก็ใส่ -1
จริงแล้วเราสามารถใช้ค่าได้ตั้งแต่ -1 ถึง -9 อย่างเช่น

gzip -9 filename.txt

แต่ถ้าใครอยากใช้ -9 ตลอดแต่ไม่อยากพิมพ์ทุกครั้งก็ให้เซ็น environment variable ดังนี้

export GZIP="-9"

อะพอเราบีบเสร็จ ก็ต้องทำการแตกไฟล์ ก็ทำโดย

gunzip filename.txt.gz

และเหมือนเดิมไฟล์ .gz ...</description>
		<link>http://voice.zeednetwork.com/2008/05/29/%e0%b8%9a%e0%b8%b5%e0%b8%9a%e0%b8%ad%e0%b8%b1%e0%b8%94-%e0%b9%81%e0%b8%95%e0%b8%81-%e0%b9%84%e0%b8%9f%e0%b8%a5%e0%b9%8c%e0%b9%81%e0%b8%95%e0%b9%88%e0%b8%a5%e0%b9%88%e0%b8%b0%e0%b9%81%e0%b8%9a%e0%b8%9a/</link>
			</item>
</channel>
</rss>
