<?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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>xcache Archives - EVO Hosting</title>
	<atom:link href="https://evohosting.in.th/tag/xcache/feed/" rel="self" type="application/rss+xml" />
	<link>https://evohosting.in.th/tag/xcache/</link>
	<description>EVO Hosting สัญลักษณ์แห่งความเร็วแรงของโฮสติ้งที่ไม่เหมือนใคร สัมผัสความแรงเหนือชั้นของ Hosting จากขุมพลัง SSD Host ผสานกับเทคโนโลยี่ RAID 5 รองรับทุกความต้องการของคุณ รับรองไม่ผิดหวังแน่นอน</description>
	<lastBuildDate>Tue, 19 Nov 2013 03:33:07 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.1</generator>
	<item>
		<title>วิธีติดตั้ง XCache บน Server</title>
		<link>https://evohosting.in.th/%e0%b8%a7%e0%b8%b4%e0%b8%98%e0%b8%b5%e0%b8%95%e0%b8%b4%e0%b8%94%e0%b8%95%e0%b8%b1%e0%b9%89%e0%b8%87-xcache-%e0%b8%9a%e0%b8%99-server/</link>
		
		<dc:creator><![CDATA[EVOHosting]]></dc:creator>
		<pubDate>Tue, 19 Nov 2013 03:16:33 +0000</pubDate>
				<category><![CDATA[เรื่องอื่น ๆ]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[xcache]]></category>
		<category><![CDATA[ติดตั้ง]]></category>
		<guid isPermaLink="false">http://www.evohosting.in.th/?p=786</guid>

					<description><![CDATA[<p>XCache Module Cache Opcode ของ PHP โดยปรกติ PHP จะทำงานแบบ Interpreter หรือแปลชุดคำสั่งเป็นภาษาเครื่อง แล้วจึงประมวลผลคำสั่ง และสั่งการทำงาน แต่ XCache จะช่วยแปลคำสั่งให้อยู่ในรูปของ opcode เมื่อมีการเรียกใช้งาน Script ชุดเดิม ก็ไม่ต้องแปลคำสั่งซ้ำอีก ทำให้ PHP สามารถทำงานได้เร็วขึ้น และทำให้ประหยัดทรัพยากร CPU และ Memory (Ram) ของระบบอย่างมาก โดยไม่ต้องประมวลผลภาษา PHP แบบซ้ำ ๆ ช่วยเพิ่มประสิทธิภาพในการโหลดหน้าเว็บได้ดีขึ้น &#160; เรามาดูวิธีการติดตั้ง XCaxhe สำหรับ โฮสติ้ง หรือ VPS Hosting กันครับ 1. เลือก ดาวน์โหลด XCache เวอร์ชั่น ล่าสุดได้ที่ http://xcache.lighttpd.net/#Downloads (แนะนำให้เลือก Stable Version เท่านั้น) # wget http://xcache.lighttpd.net/pub/Releases/3.1.0/xcache-3.1.0.tar.gz [&#8230;]</p>
<p>The post <a href="https://evohosting.in.th/%e0%b8%a7%e0%b8%b4%e0%b8%98%e0%b8%b5%e0%b8%95%e0%b8%b4%e0%b8%94%e0%b8%95%e0%b8%b1%e0%b9%89%e0%b8%87-xcache-%e0%b8%9a%e0%b8%99-server/">วิธีติดตั้ง XCache บน Server</a> appeared first on <a href="https://evohosting.in.th">EVO Hosting</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h1>XCache</h1>
<p>Module Cache Opcode ของ PHP โดยปรกติ PHP จะทำงานแบบ Interpreter หรือแปลชุดคำสั่งเป็นภาษาเครื่อง แล้วจึงประมวลผลคำสั่ง และสั่งการทำงาน แต่ XCache จะช่วยแปลคำสั่งให้อยู่ในรูปของ opcode เมื่อมีการเรียกใช้งาน Script ชุดเดิม ก็ไม่ต้องแปลคำสั่งซ้ำอีก ทำให้ PHP สามารถทำงานได้เร็วขึ้น และทำให้ประหยัดทรัพยากร CPU และ Memory (Ram) ของระบบอย่างมาก โดยไม่ต้องประมวลผลภาษา PHP แบบซ้ำ ๆ ช่วยเพิ่มประสิทธิภาพในการโหลดหน้าเว็บได้ดีขึ้น</p>
<p>&nbsp;</p>
<p>เรามาดูวิธีการติดตั้ง XCaxhe สำหรับ <strong><a title="hosting" href="http://www.evohosting.in.th">โฮสติ้ง</a></strong> หรือ <a title="VPS Hosting" href="http://www.evovps.in.th"><strong>VPS Hosting</strong></a> กันครับ</p>
<p>1. เลือก ดาวน์โหลด XCache เวอร์ชั่น ล่าสุดได้ที่</p>
<blockquote><p>http://xcache.lighttpd.net/#Downloads (แนะนำให้เลือก Stable Version เท่านั้น)</p></blockquote>
<p><code># wget http://xcache.lighttpd.net/pub/Releases/3.1.0/xcache-3.1.0.tar.gz</code></p>
<p>2. ทำการแตกไฟล์ ที่ดาวน์โหลดมา</p>
<p><code># tar -xzvf xcache-3.1.0.tar.gz</code></p>
<p>3. เข้าไปยัง folder ที่แตกไฟล์</p>
<p><code># cd xcache-3.1.0</code></p>
<p>4. ทำการติดตั้ง</p>
<p><code>phpize<br />
./configure --enable-xcache<br />
make &amp;&amp; make install<br />
cat xcache.ini &gt;&gt; /etc/php.ini</code></p>
<p>5. การปรับแต่ง และตั้งค่า Config XCache</p>
<p><code>;; this is an example, it won't work unless properly configured into php.ini<br />
[xcache-common]
;; non-Windows example:<br />
extension = /usr/local/lib/php/extensions/no-debug-non-zts-20090626/xcache.so<br />
;; Windows example:<br />
; extension = php_xcache.dll</p>
[xcache.admin]
xcache.admin.enable_auth = On<br />
xcache.admin.user = "mOo"<br />
; set xcache.admin.pass = md5($your_password)<br />
; login use $your_password<br />
xcache.admin.pass = ""</p>
[xcache]
; ini only settings, all the values here is default unless explained</p>
<p>; select low level shm implemenation<br />
xcache.shm_scheme = "mmap"<br />
; to disable: xcache.size=0<br />
; to enable : xcache.size=64M etc (any size &gt; 0) and your system mmap allows<br />
xcache.size = 60M<br />
; set to cpu count (cat /proc/cpuinfo |grep -c processor)<br />
xcache.count = 1<br />
; just a hash hints, you can always store count(items) &gt; slots<br />
xcache.slots = 8K<br />
; ttl of the cache item, 0=forever<br />
xcache.ttl = 0<br />
; interval of gc scanning expired items, 0=no scan, other values is in seconds<br />
xcache.gc_interval = 0</p>
<p>; same as aboves but for variable cache<br />
xcache.var_size = 4M<br />
xcache.var_count = 1<br />
xcache.var_slots = 8K<br />
; default value for $ttl parameter of xcache_*() functions<br />
xcache.var_ttl = 0<br />
; hard limit ttl that cannot be exceed by xcache_*() functions. 0=unlimited<br />
xcache.var_maxttl = 0<br />
xcache.var_gc_interval = 300</p>
<p>; mode:0, const string specified by xcache.var_namespace<br />
; mode:1, $_SERVER[xcache.var_namespace]
; mode:2, uid or gid (specified by xcache.var_namespace)<br />
xcache.var_namespace_mode = 0<br />
xcache.var_namespace = ""</p>
<p>; N/A for /dev/zero<br />
xcache.readonly_protection = Off<br />
; for *nix, xcache.mmap_path is a file path, not directory. (auto create/overwrite)<br />
; Use something like "/tmp/xcache" instead of "/dev/*" if you want to turn on ReadonlyProtection<br />
; different process group of php won't share the same /tmp/xcache<br />
; for win32, xcache.mmap_path=anonymous map name, not file path<br />
xcache.mmap_path = "/dev/zero"<br />
; Useful when XCache crash. leave it blank(disabled) or "/tmp/phpcore/" (writable by php)<br />
xcache.coredump_directory = ""<br />
; Windows only. leave it as 0 (default) until you're told by XCache dev<br />
xcache.coredump_type = 0</p>
<p>; disable cache after crash<br />
xcache.disable_on_crash = Off</p>
<p>; enable experimental documented features for each release if available<br />
xcache.experimental = Off</p>
<p>; per request settings. can ini_set, .htaccess etc<br />
xcache.cacher = On<br />
xcache.stat = On<br />
xcache.optimizer = Off</p>
[xcache.coverager]
; enabling this feature will impact performance<br />
; enabled only if xcache.coverager == On &amp;&amp; xcache.coveragedump_directory == "non-empty-value"</p>
<p>; per request settings. can ini_set, .htaccess etc<br />
; enable coverage data collecting and xcache_coverager_start/stop/get/clean() functions<br />
xcache.coverager = Off<br />
xcache.coverager_autostart = On</p>
<p>; set in php ini file only<br />
; make sure it's readable (open_basedir is checked) by coverage viewer script<br />
xcache.coveragedump_directory = ""<br />
</code></p>
<p>xcache.size ขนาดของ cache<br />
xcache.count จำนวน Concurrency หรือ จำนวนของ CPU Core<br />
xcache.slots ขนาด slot ในการเก็บ cache</p>
<p>6. เมื่อปรับแต่งค่า Config เรียบร้อยแล้ว ให้ทำการ Restart Service</p>
<p><code># service httpd restart</code></p>
<p>7. ตรวจสอบ Version XCache<br />
<code># php -v</code></p>
<p>The post <a href="https://evohosting.in.th/%e0%b8%a7%e0%b8%b4%e0%b8%98%e0%b8%b5%e0%b8%95%e0%b8%b4%e0%b8%94%e0%b8%95%e0%b8%b1%e0%b9%89%e0%b8%87-xcache-%e0%b8%9a%e0%b8%99-server/">วิธีติดตั้ง XCache บน Server</a> appeared first on <a href="https://evohosting.in.th">EVO Hosting</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
