<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>

<channel>
	<title>Blog.A-Days.com</title>
	<atom:link href="http://blog.a-days.com/index.php/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.a-days.com</link>
	<description>Unix Linux FreeBSD Ubuntu Dabian Centos VMware</description>
	<pubDate>Mon, 17 May 2010 08:37:33 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>FreeBSD : Compile Kernel for IPFW &amp; Install FAMP on FreeBSD 8.0</title>
		<link>http://blog.a-days.com/index.php/2010/05/17/freebsd-compile-kernel-for-ipfw-install-famp-on-freebsd-80/</link>
		<comments>http://blog.a-days.com/index.php/2010/05/17/freebsd-compile-kernel-for-ipfw-install-famp-on-freebsd-80/#comments</comments>
		<pubDate>Mon, 17 May 2010 08:37:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[FreeBSD]]></category>

		<guid isPermaLink="false">http://blog.a-days.com/?p=403</guid>
		<description><![CDATA[Compile Kernel for IPFW
#cd /usr/src/sys/amd64/config
#cp GENERIC ALPINE
#vi ALPINE
]]></description>
			<content:encoded><![CDATA[<p>Compile Kernel for IPFW</p>
<p>#cd /usr/src/sys/amd64/config<br />
#cp GENERIC ALPINE<br />
#vi ALPINE</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.a-days.com/index.php/2010/05/17/freebsd-compile-kernel-for-ipfw-install-famp-on-freebsd-80/feed/</wfw:commentRss>
		</item>
		<item>
		<title>บันนังสตา บ้านเกิดของฉัน ร่วมไว้อาลัยแด่การจากไปของจ่าเพียร นักสู้แห่งเทือกเขาบูโด</title>
		<link>http://blog.a-days.com/index.php/2010/03/16/%e0%b8%9a%e0%b8%b1%e0%b8%99%e0%b8%99%e0%b8%b1%e0%b8%87%e0%b8%aa%e0%b8%95%e0%b8%b2-%e0%b8%9a%e0%b9%89%e0%b8%b2%e0%b8%99%e0%b9%80%e0%b8%81%e0%b8%b4%e0%b8%94%e0%b8%82%e0%b8%ad%e0%b8%87%e0%b8%89%e0%b8%b1/</link>
		<comments>http://blog.a-days.com/index.php/2010/03/16/%e0%b8%9a%e0%b8%b1%e0%b8%99%e0%b8%99%e0%b8%b1%e0%b8%87%e0%b8%aa%e0%b8%95%e0%b8%b2-%e0%b8%9a%e0%b9%89%e0%b8%b2%e0%b8%99%e0%b9%80%e0%b8%81%e0%b8%b4%e0%b8%94%e0%b8%82%e0%b8%ad%e0%b8%87%e0%b8%89%e0%b8%b1/#comments</comments>
		<pubDate>Tue, 16 Mar 2010 04:14:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Life]]></category>

		<guid isPermaLink="false">http://blog.a-days.com/?p=398</guid>
		<description><![CDATA[ผมเป็นคนนึงที่ได้อ่านข่าวเกี่ยวกับการจากไปอย่างไม่มีวันกลับของ พ.ต.อ.สมเพียร เอกสมญา &#8220;จ่าเพียร นักสู้แห่งเทือกเขาบูโด&#8221; แล้วรู้สึกสลด หดหู่ใจอย่างบอกไม่ถูก จะด้วยเหตุผลกลใด ก็ตามที่ทำให้ท่านไม่ได้ย้ายหรืออะไรก็แล้วแต่ แต่วันนี้เราเสียผู้กล้าอีกคนนึง ที่ยอมสละชีวิตเพื่อปกป้องอธิปไตยของประเทศ เพื่อคนในจังหวัดชายแดนใต้ได้ปลอดภัย เพื่อความสงบสุขแก่พี่น้องชาวไทย วันนี้ท่านได้จากไปแล้ว เพื่อที่จะไปพักผ่อนซักที ขอให้ดวงวิญญาณของท่านจงสู่สุขติครับ

]]></description>
			<content:encoded><![CDATA[<p>ผมเป็นคนนึงที่ได้อ่านข่าวเกี่ยวกับการจากไปอย่างไม่มีวันกลับของ พ.ต.อ.สมเพียร เอกสมญา &#8220;จ่าเพียร นักสู้แห่งเทือกเขาบูโด&#8221; แล้วรู้สึกสลด หดหู่ใจอย่างบอกไม่ถูก จะด้วยเหตุผลกลใด ก็ตามที่ทำให้ท่านไม่ได้ย้ายหรืออะไรก็แล้วแต่ แต่วันนี้เราเสียผู้กล้าอีกคนนึง ที่ยอมสละชีวิตเพื่อปกป้องอธิปไตยของประเทศ เพื่อคนในจังหวัดชายแดนใต้ได้ปลอดภัย เพื่อความสงบสุขแก่พี่น้องชาวไทย วันนี้ท่านได้จากไปแล้ว เพื่อที่จะไปพักผ่อนซักที ขอให้ดวงวิญญาณของท่านจงสู่สุขติครับ</p>
<p><object width="425" height="344" data="http://www.youtube.com/v/unbIZtn6iaU&amp;hl=en_US&amp;fs=1&amp;" type="application/x-shockwave-flash"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/unbIZtn6iaU&amp;hl=en_US&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /></object></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.a-days.com/index.php/2010/03/16/%e0%b8%9a%e0%b8%b1%e0%b8%99%e0%b8%99%e0%b8%b1%e0%b8%87%e0%b8%aa%e0%b8%95%e0%b8%b2-%e0%b8%9a%e0%b9%89%e0%b8%b2%e0%b8%99%e0%b9%80%e0%b8%81%e0%b8%b4%e0%b8%94%e0%b8%82%e0%b8%ad%e0%b8%87%e0%b8%89%e0%b8%b1/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Stat Plesk not update</title>
		<link>http://blog.a-days.com/index.php/2010/02/10/stat-plesk-not-update/</link>
		<comments>http://blog.a-days.com/index.php/2010/02/10/stat-plesk-not-update/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 07:39:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Plesk]]></category>

		<guid isPermaLink="false">http://blog.a-days.com/?p=396</guid>
		<description><![CDATA[เนื่องจากวันนี้เจอปัญหา stat ของ Plesk ที่หน้า Control Panel ไม่อัพเดต เพราะลองเข้าไปดูที่ Server โดย SSH เข้าไปตรวจสอบดูก็ใช้พื้นที่ไม่เกิน แต่หน้า Control Panel แจ้งว่าเกินซะงั้น!! ทำไงๆ ก็พึ่งใบบุญของพี่ Google อีกตามเคย ไปเจอข้อความในบอร์ดของ Swsoft นั่นล่ะเลยลองทำตามวิธีนี้ดู
#/usr/local/psa/admin/sbin/statistics
เป็นการสั่งให้ Plesk กวาด Stat มาใหม่ โอ้วบร๊ะเจ้า มันทำได้จริงๆ จบไปอีก 1 เคส
ref : http://forum.parallels.com/showthread.php?t=67349
]]></description>
			<content:encoded><![CDATA[<p>เนื่องจากวันนี้เจอปัญหา stat ของ Plesk ที่หน้า Control Panel ไม่อัพเดต เพราะลองเข้าไปดูที่ Server โดย SSH เข้าไปตรวจสอบดูก็ใช้พื้นที่ไม่เกิน แต่หน้า Control Panel แจ้งว่าเกินซะงั้น!! ทำไงๆ ก็พึ่งใบบุญของพี่ Google อีกตามเคย ไปเจอข้อความในบอร์ดของ Swsoft นั่นล่ะเลยลองทำตามวิธีนี้ดู</p>
<p>#/usr/local/psa/admin/sbin/statistics</p>
<p>เป็นการสั่งให้ Plesk กวาด Stat มาใหม่ โอ้วบร๊ะเจ้า มันทำได้จริงๆ จบไปอีก 1 เคส</p>
<p>ref : http://forum.parallels.com/showthread.php?t=67349</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.a-days.com/index.php/2010/02/10/stat-plesk-not-update/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to install memcached on FreeBSD 7.2</title>
		<link>http://blog.a-days.com/index.php/2009/12/04/how-to-install-memcached-on-freebsd-72/</link>
		<comments>http://blog.a-days.com/index.php/2009/12/04/how-to-install-memcached-on-freebsd-72/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 08:33:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[FreeBSD]]></category>

		<category><![CDATA[Ipcop]]></category>

		<guid isPermaLink="false">http://blog.a-days.com/?p=393</guid>
		<description><![CDATA[Memcached คืออะไร
Memcached คือการทำ cache บน memory ที่เพื่อให้สามารถเข้าใช้งานได้โดยง่ายและรวดเร็วเพื่อลดการ query ไปที่ database และเพิ่มประสิทธิภาพในการทำงานของ application

Install memcached
#cd /usr/ports/databases/memcached
#make install clean
#vi /etc/rc.conf
[...]
memcached_enable=&#8221;yes&#8221;
memcached_flags=&#8221;-l 127.0.0.1 -d -m 512 -p 11211&#8243;
#/usr/local/etc/rc.d/memcached start
ทดสอบการทำงาน
#ps -aux &#124; grep memcached
ps -aux &#124; grep memcached
nobody  9788  0.7  0.9 77428 72132  ??  Ss    3:37PM   0:26.16 /usr/local/bin/memcached -l 127.0.0.1 -d -m 512 -p 11211 -d -u nobody
root   10004  0.0  0.0  [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Memcached คืออะไร</strong><br />
Memcached คือการทำ cache บน memory ที่เพื่อให้สามารถเข้าใช้งานได้โดยง่ายและรวดเร็วเพื่อลดการ query ไปที่ database และเพิ่มประสิทธิภาพในการทำงานของ application<br />
<strong><br />
Install memcached</strong><br />
#cd /usr/ports/databases/memcached<br />
#make install clean<br />
#vi /etc/rc.conf<br />
[...]<br />
memcached_enable=&#8221;yes&#8221;<br />
memcached_flags=&#8221;-l 127.0.0.1 -d -m 512 -p 11211&#8243;</p>
<p>#/usr/local/etc/rc.d/memcached start</p>
<p><strong>ทดสอบการทำงาน</strong><br />
#ps -aux | grep memcached<br />
ps -aux | grep memcached<br />
nobody  9788  0.7  0.9 77428 72132  ??  Ss    3:37PM   0:26.16 /usr/local/bin/memcached -l 127.0.0.1 -d -m 512 -p 11211 -d -u nobody<br />
root   10004  0.0  0.0  7888  1184  p0  R+    3:52PM   0:00.00 grep memcached</p>
<p>ได้คำตอบอย่างนี้ memcached ก็ทำงานแ ล้วครับ<br />
ส่วนค่า Parameter ต่างๆเป็นดังนี้ครับ<br />
-d = รัน memcached เป็น daemon (background)<br />
-m MiB = ขนาดของ cache หน่วยเป็น Megabyte (Default 64MB)<br />
-l IP = IP ที่จะรอรับ Request<br />
-p Port = Port ที่จะรอรับ Request<br />
-u Username = ให้ memcached run ด้วย user อะไร (ทำได้ก็ต่อเมื่อ run memcached ด้วย root)</p>
<p>ref : http://www.semicolon.in.th/node/85</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.a-days.com/index.php/2009/12/04/how-to-install-memcached-on-freebsd-72/feed/</wfw:commentRss>
		</item>
		<item>
		<title>ป้องกัน DDoS โดย mod_evasive</title>
		<link>http://blog.a-days.com/index.php/2009/11/27/%e0%b8%9b%e0%b9%89%e0%b8%ad%e0%b8%87%e0%b8%81%e0%b8%b1%e0%b8%99-ddos-%e0%b9%82%e0%b8%94%e0%b8%a2-mod_evasive/</link>
		<comments>http://blog.a-days.com/index.php/2009/11/27/%e0%b8%9b%e0%b9%89%e0%b8%ad%e0%b8%87%e0%b8%81%e0%b8%b1%e0%b8%99-ddos-%e0%b9%82%e0%b8%94%e0%b8%a2-mod_evasive/#comments</comments>
		<pubDate>Fri, 27 Nov 2009 08:18:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.a-days.com/?p=391</guid>
		<description><![CDATA[Installation of mod_evasive

#aptitude install libapache2-mod-evasive
Edit /etc/apache2/mods-available/mod-evasive.load and add.
[...]
&#60;IfModule mod_evasive20.c&#62;
DOSHashTableSize 3097
DOSPageCount 5
DOSSiteCount 100
DOSPageInterval 1
DOSSiteInterval 1
DOSBlockingPeriod 600
&#60;/IfModule&#62;
Restart WebServer
#/etc/init.d/apache2 restart
Test By
# perl /usr/share/doc/libapache2-mod-evasive/examples/test.pl
HTTP/1.1 200 OK
HTTP/1.1 200 OK
HTTP/1.1 200 OK
HTTP/1.1 200 OK
HTTP/1.1 200 OK
HTTP/1.1 200 OK
HTTP/1.1 200 OK
HTTP/1.1 200 OK
HTTP/1.1 200 OK
HTTP/1.1 200 OK
HTTP/1.1 200 OK
HTTP/1.1 200 OK
HTTP/1.1 200 OK
HTTP/1.1 200 OK
HTTP/1.1 200 OK
HTTP/1.1 200 OK
HTTP/1.1 200 OK
HTTP/1.1 200 [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Installation of mod_evasive<br />
</strong></p>
<p><strong>#</strong>aptitude install libapache2-mod-evasive</p>
<p><strong>Edit /etc/apache2/mods-available/mod-evasive.load and add.</strong></p>
<p>[...]</p>
<p>&lt;IfModule mod_evasive20.c&gt;<br />
DOSHashTableSize 3097<br />
DOSPageCount 5<br />
DOSSiteCount 100<br />
DOSPageInterval 1<br />
DOSSiteInterval 1<br />
DOSBlockingPeriod 600<br />
&lt;/IfModule&gt;</p>
<p><strong>Restart WebServer</strong><br />
#/etc/init.d/apache2 restart</p>
<p><strong>Test By</strong><br />
# perl /usr/share/doc/libapache2-mod-evasive/examples/test.pl</p>
<p>HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 403 Forbidden<br />
HTTP/1.1 403 Forbidden<br />
HTTP/1.1 403 Forbidden<br />
HTTP/1.1 403 Forbidden<br />
HTTP/1.1 403 Forbidden<br />
HTTP/1.1 403 Forbidden<br />
HTTP/1.1 403 Forbidden<br />
HTTP/1.1 403 Forbidden<br />
HTTP/1.1 403 Forbidden<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 403 Forbidden<br />
HTTP/1.1 403 Forbidden<br />
HTTP/1.1 403 Forbidden<br />
HTTP/1.1 403 Forbidden<br />
HTTP/1.1 403 Forbidden<br />
HTTP/1.1 403 Forbidden<br />
HTTP/1.1 403 Forbidden<br />
HTTP/1.1 403 Forbidden<br />
HTTP/1.1 403 Forbidden<br />
HTTP/1.1 403 Forbidden<br />
HTTP/1.1 403 Forbidden<br />
HTTP/1.1 200 OK<br />
HTTP/1.1 403 Forbidden<br />
HTTP/1.1 403 Forbidden<br />
HTTP/1.1 403 Forbidden<br />
HTTP/1.1 403 Forbidden<br />
HTTP/1.1 403 Forbidden<br />
HTTP/1.1 403 Forbidden<br />
HTTP/1.1 403 Forbidden<br />
HTTP/1.1 403 Forbidden<br />
HTTP/1.1 403 Forbidden</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.a-days.com/index.php/2009/11/27/%e0%b8%9b%e0%b9%89%e0%b8%ad%e0%b8%87%e0%b8%81%e0%b8%b1%e0%b8%99-ddos-%e0%b9%82%e0%b8%94%e0%b8%a2-mod_evasive/feed/</wfw:commentRss>
		</item>
		<item>
		<title>ค่า Dns Server ของ Opendns,TT&amp;T,True and CAT Hinet</title>
		<link>http://blog.a-days.com/index.php/2009/11/20/%e0%b8%84%e0%b9%88%e0%b8%b2-dns-server-%e0%b8%82%e0%b8%ad%e0%b8%87-opendnsttttrue-and-cat-hinet/</link>
		<comments>http://blog.a-days.com/index.php/2009/11/20/%e0%b8%84%e0%b9%88%e0%b8%b2-dns-server-%e0%b8%82%e0%b8%ad%e0%b8%87-opendnsttttrue-and-cat-hinet/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 08:21:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Life]]></category>

		<guid isPermaLink="false">http://blog.a-days.com/?p=387</guid>
		<description><![CDATA[OpenDns : Primary DNS Server ( 208.67.222.222) หรือ Secondary DNS Server (208.67.220.220 )
TT&#38;T : Primary DNS Server (203.130.159.20) หรือ Secondary DNS Server (203.130.159.21)
True : Primary DNS Server ( 203.144.207.29 ) หรือ Secondary DNS Server ( 203.144.207.49 )
CAT Hinet : Primary DNS Server ( 202.129.27.135 ) หรือ Secondary DNS Server ( 202.129.27.134 )
ไม่รู้ว่า Update ล่าสุดแล้วหรือยังนะครับ ส่วนผมใช้ [...]]]></description>
			<content:encoded><![CDATA[<p>OpenDns : Primary DNS Server ( 208.67.222.222) หรือ Secondary DNS Server (208.67.220.220 )<br />
TT&amp;T : Primary DNS Server (203.130.159.20) หรือ Secondary DNS Server (203.130.159.21)<br />
True : Primary DNS Server ( 203.144.207.29 ) หรือ Secondary DNS Server ( 203.144.207.49 )<br />
CAT Hinet : Primary DNS Server ( 202.129.27.135 ) หรือ Secondary DNS Server ( 202.129.27.134 )</p>
<p>ไม่รู้ว่า Update ล่าสุดแล้วหรือยังนะครับ ส่วนผมใช้ OpenDNS ครับ ^^</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.a-days.com/index.php/2009/11/20/%e0%b8%84%e0%b9%88%e0%b8%b2-dns-server-%e0%b8%82%e0%b8%ad%e0%b8%87-opendnsttttrue-and-cat-hinet/feed/</wfw:commentRss>
		</item>
		<item>
		<title>please set variable USE_NONDEFAULT_X11BASE</title>
		<link>http://blog.a-days.com/index.php/2009/10/27/please-set-variable-use_nondefault_x11base/</link>
		<comments>http://blog.a-days.com/index.php/2009/10/27/please-set-variable-use_nondefault_x11base/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 03:10:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[FreeBSD]]></category>

		<guid isPermaLink="false">http://blog.a-days.com/index.php/2009/10/27/please-set-variable-use_nondefault_x11base/</guid>
		<description><![CDATA[หลังจาก Upgrade ports ของ FreeBSD ใหม่ คราวนี้จะลงโปรแกรมผ่าน port กลับได้ Error ที่ไม่ค่อยอยากได้เท่าไหร่มาอันนึง ดังนี้
&#8221; On FreeBSD before 6.2 ports system unfortunately can not set default X11BASE by itself so please help it a bit by setting X11BASE=${LOCALBASE} in make.conf.
On the other hand, if you do wish to use non-default X11BASE, please set variable USE_NONDEFAULT_X11BASE.
*** Error code 1 [...]]]></description>
			<content:encoded><![CDATA[<p>หลังจาก Upgrade ports ของ FreeBSD ใหม่ คราวนี้จะลงโปรแกรมผ่าน port กลับได้ Error ที่ไม่ค่อยอยากได้เท่าไหร่มาอันนึง ดังนี้<br />
&#8221; On FreeBSD before 6.2 ports system unfortunately can not set default X11BASE by itself so please help it a bit by setting X11BASE=${LOCALBASE} in make.conf.<br />
On the other hand, if you do wish to use non-default X11BASE, please set variable USE_NONDEFAULT_X11BASE.<br />
*** Error code 1 &#8221;<br />
ก็ลองหาใน google ดูก็เจอวิธีแก้ไข ลองดูแล้วใช้ได้เลย<br />
วิธีแก้ไขตามนี้เลย เพิ่มข้อความตามนี้<br />
#vi /etc/make.conf<br />
[...]<br />
USE_NONDEFAULT_X11BASE=${LOCALBASE}</p>
<p>เสร็จแล้ว save แล้วลองสั่งลงโปรแกรมใหม่ รับรองผ่านฉลุย!!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.a-days.com/index.php/2009/10/27/please-set-variable-use_nondefault_x11base/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Starting and Stopping Sendmail with FreeBSD</title>
		<link>http://blog.a-days.com/index.php/2009/10/07/starting-and-stopping-sendmail-with-freebsd/</link>
		<comments>http://blog.a-days.com/index.php/2009/10/07/starting-and-stopping-sendmail-with-freebsd/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 03:04:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[FreeBSD]]></category>

		<guid isPermaLink="false">http://blog.a-days.com/?p=383</guid>
		<description><![CDATA[To stop sendmail:
cd /etc/mail
make stop
To start sendmail:
cd /etc/mail
make start
To restart sendmail:
cd /etc/mail
make restart
To get sendmail to regenerate aliases, the virtual user table and other stuff, run make on its own like so:
cd /etc/mail
make
After running &#8220;make&#8221; on its own, sendmail automatically  reads all the files so you shouldn&#8217;t need to restart sendmail yourself  at [...]]]></description>
			<content:encoded><![CDATA[<p>To stop sendmail:</p>
<p><code class="block">cd /etc/mail<br />
make stop</code></p>
<p>To start sendmail:</p>
<p><code class="block">cd /etc/mail<br />
make start</code></p>
<p>To restart sendmail:</p>
<p><code class="block">cd /etc/mail<br />
make restart</code></p>
<p>To get sendmail to regenerate aliases, the virtual user table and other stuff, run make on its own like so:</p>
<p><code class="block">cd /etc/mail<br />
make</code></p>
<p>After running &#8220;make&#8221; on its own, sendmail automatically  reads all the files so you shouldn&#8217;t need to restart sendmail yourself  at this point.</p>
<p>The header information from the Makefile in /etc/mail contains information about commands that can be passed to make. The top of this file is listed below.</p>
<p><code class="block"># This Makefile provides an easy way to generate the configuration<br />
# file and database maps for the sendmail(8) daemon.<br />
#<br />
# The user-driven targets are:<br />
#<br />
# all       - Build cf, maps and aliases<br />
# cf         - Build the .cf file from .mc file<br />
# maps      - Build the feature maps<br />
# aliases - Build the sendmail aliases<br />
# install - Install the .cf file as /etc/mail/sendmail.cf<br />
#<br />
# For acting on both the MTA daemon and MSP queue running daemon:<br />
# start            - Start both the sendmail MTA daemon and MSP queue running<br />
#                        daemon with the flags defined in /etc/defaults/rc.conf or<br />
#                        /etc/rc.conf<br />
# stop             - Stop both the sendmail MTA daemon and MSP queue running<br />
#                        daemon<br />
# restart         - Restart both the sendmail MTA daemon and MSP queue running<br />
#                        daemon<br />
#<br />
# For acting on just the MTA daemon:<br />
# start-mta      - Start the sendmail MTA daemon with the flags defined in<br />
#                        /etc/defaults/rc.conf or /etc/rc.conf<br />
# stop-mta       - Stop the sendmail MTA daemon<br />
# restart-mta   - Restart the sendmail MTA daemon<br />
#<br />
# For acting on just the MSP queue running daemon:<br />
# start-mspq    - Start the sendmail MSP queue running daemon with the<br />
#                        flags defined in /etc/defaults/rc.conf or /etc/rc.conf<br />
# stop-mspq      - Stop the sendmail MSP queue running daemon<br />
# restart-mspq - Restart the sendmail MSP queue running daemon<br />
#<br />
# Calling `make' will generate the updated versions when either the<br />
# aliases or one of the map files were changed.<br />
#<br />
# A `make install` is only necessary after modifying the .mc file. In<br />
# this case one would normally also call `make restart' to allow the<br />
# running sendmail to pick up the changes as well.</code></p>
<p>ref : http://www.electrictoolbox.com/article/linux-unix-bsd/freebsd-sendmail/</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.a-days.com/index.php/2009/10/07/starting-and-stopping-sendmail-with-freebsd/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to install Zend Optimizer on Plesk 7.5.4</title>
		<link>http://blog.a-days.com/index.php/2009/10/06/how-to-install-zend-optimizer-on-plesk-754/</link>
		<comments>http://blog.a-days.com/index.php/2009/10/06/how-to-install-zend-optimizer-on-plesk-754/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 17:25:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Plesk]]></category>

		<guid isPermaLink="false">http://blog.a-days.com/?p=381</guid>
		<description><![CDATA[# cd /usr
# fetch http://files.directadmin.com/services/customapache/ZendOptimizer-3.3.3-freebsd6.0-i386.tar.gz
# tar zxvf ZendOptimizer-3.3.3-freebsd6.0-i386.tar.gz
# cd ZendOptimizer-3.3.3-freebsd6.0-i386
# ./install-tty
Please, wait &#8230;
Welcome to the Zend Optimizer 3.2.8 Installation!
For more information regarding this procedure, please see the
Zend Optimizer Installation Guide.
[To continue, press Enter]
Do you accept the terms of this license?
Answer (yes or no) [YES]:
Please specify the location for installing Zend Optimizer [/usr/local/Zend]:
Enter the location of [...]]]></description>
			<content:encoded><![CDATA[<p># cd /usr</p>
<p># fetch http://files.directadmin.com/services/customapache/ZendOptimizer-3.3.3-freebsd6.0-i386.tar.gz</p>
<p># tar zxvf ZendOptimizer-3.3.3-freebsd6.0-i386.tar.gz</p>
<p># cd ZendOptimizer-3.3.3-freebsd6.0-i386</p>
<p># ./install-tty</p>
<p>Please, wait &#8230;</p>
<p>Welcome to the Zend Optimizer 3.2.8 Installation!</p>
<p>For more information regarding this procedure, please see the<br />
Zend Optimizer Installation Guide.</p>
<p>[To continue, press Enter]</p>
<p>Do you accept the terms of this license?<br />
Answer (yes or no) [YES]:</p>
<p>Please specify the location for installing Zend Optimizer [/usr/local/Zend]:</p>
<p>Enter the location of your php.ini file: /usr/local/psa/apache/conf/</p>
<p>Are you using Apache Web server?<br />
Answer (yes or no) [YES]:</p>
<p>Specify the full path to the Apache control utility (apachectl): /usr/local/psa/apache/bin</p>
<p>&#8220;/usr/local/psa/apache/bin&#8221; must be a file!<br />
[To continue, press Enter]</p>
<p>Specify the full path to the Apache control utility (apachectl): /usr/local/psa/apache/bin/apachectl</p>
<p>Trying to determine the version of PHP.<br />
Please wait&#8230; (this may take a few seconds)</p>
<p>Detecting &#8230;                                       \  [100%]</p>
<p>Installing 5_2_x_comp/TS/ZendOptimizer.so           \  [100%]</p>
<p>The following configuration changes have been made:</p>
<p>- The php.ini file has been relocated from /usr/local/psa/apache/conf to /usr/local/Zend/etc</p>
<p>- A symbolic link for the php.ini file has been created in /usr/local/psa/apache/conf.</p>
<p>- The original php.ini was backed up to<br />
/usr/local/psa/apache/conf/php.ini-zend_optimizer.bak</p>
<p>[To continue, press Enter]</p>
<p>The installation has completed successfully.<br />
Zend Optimizer is now ready for use.<br />
You must restart your Web server for the modifications to take effect.<br />
[To continue, press Enter]</p>
<p>Restart the Web server now?<br />
Answer (yes or no) [YES]:</p>
<p>Restarting Apache &#8230;<br />
Please wait&#8230; (this may take a few seconds)</p>
<p>Restarting &#8230;                                      \  [100%]</p>
<p>Apache has restarted successfully.<br />
[To continue, press Enter]</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.a-days.com/index.php/2009/10/06/how-to-install-zend-optimizer-on-plesk-754/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to install Mod_Evasive on Plesk 7.5.4</title>
		<link>http://blog.a-days.com/index.php/2009/10/06/how-to-install-mod_evasive-on-plesk-754/</link>
		<comments>http://blog.a-days.com/index.php/2009/10/06/how-to-install-mod_evasive-on-plesk-754/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 17:18:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Plesk]]></category>

		<guid isPermaLink="false">http://blog.a-days.com/?p=379</guid>
		<description><![CDATA[# cd /usr
# fetch http://www.zdziarski.com/projects/mod_evasive/mod_evasive_1.10.1.tar.gz
# tar zxvf mod_evasive_1.10.1.tar.gz
#cd mod_evasive
#cp /usr/local/psa/apache/conf/httpd.conf /usr/local/psa/conf/httpd.conf_org
#/usr/local/psa/apache/bin/apxs -cia mod_evasive20.c
#vi /usr/local/psa/apache/conf/httpd.conf
[...]
#### Mod Evasive ####
include conf/mod_evasive20.conf
#vi /usr/local/psa/apache/conf/mod_evasive20.conf
If you are adding the is module to apache 1.3.x the following lines need to   be added to the httpd.conf below the AddModule section.
&#60;IfModule mod_evasive.c&#62;
DOSHashTableSize 3097
DOSPageCount 5
DOSSiteCount 100
DOSPageInterval 2
DOSSiteInterval 2
DOSBlockingPeriod   600
&#60;/IfModule&#62;
If you are [...]]]></description>
			<content:encoded><![CDATA[<p># cd /usr</p>
<p># fetch http://www.zdziarski.com/projects/mod_evasive/mod_evasive_1.10.1.tar.gz</p>
<p># tar zxvf mod_evasive_1.10.1.tar.gz</p>
<p>#cd mod_evasive</p>
<p>#cp /usr/local/psa/apache/conf/httpd.conf /usr/local/psa/conf/httpd.conf_org</p>
<p>#/usr/local/psa/apache/bin/apxs -cia mod_evasive20.c</p>
<p>#vi /usr/local/psa/apache/conf/httpd.conf</p>
<p>[...]</p>
<p>#### Mod Evasive ####</p>
<p>include conf/mod_evasive20.conf</p>
<p>#vi /usr/local/psa/apache/conf/mod_evasive20.conf</p>
<p>If you are adding the is module to apache 1.3.x the following lines need to   be added to the httpd.conf below the AddModule section.</p>
<p>&lt;IfModule mod_evasive.c&gt;<br />
DOSHashTableSize 3097<br />
DOSPageCount 5<br />
DOSSiteCount 100<br />
DOSPageInterval 2<br />
DOSSiteInterval 2<br />
DOSBlockingPeriod   600<br />
&lt;/IfModule&gt;</p>
<p>If you are using apache 2.0.x you need to scroll to below the LoadModule section in the httpd.conf and add the following:</p>
<p>&lt;IfModule mod_evasive20.c&gt;<br />
DOSHashTableSize 3097<br />
DOSPageCount 5<br />
DOSSiteCount 100<br />
DOSPageInterval 2<br />
DOSSiteInterval 2<br />
DOSBlockingPeriod 10<br />
DOSBlockingPeriod 600<br />
&lt;/IfModule&gt;</p>
<p>#/usr/local/psa/rc.d/httpd restart</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.a-days.com/index.php/2009/10/06/how-to-install-mod_evasive-on-plesk-754/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>

