<?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>Official P&#38;T Hosting Blog &#187; CHMOD</title>
	<atom:link href="http://www.pathosting.co.th/blog/tag/chmod/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pathosting.co.th/blog</link>
	<description>pathosting blog - ข่าว คู่มือ คำถาม เกร็ดน่ารู้ ต่างๆ</description>
	<lastBuildDate>Fri, 27 Aug 2010 07:14:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>วิธีตั้ง CHMOD (หรือ Permission)</title>
		<link>http://www.pathosting.co.th/blog/faq/chmod-setting/</link>
		<comments>http://www.pathosting.co.th/blog/faq/chmod-setting/#comments</comments>
		<pubDate>Fri, 16 Oct 2009 19:04:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[DirectAdmin]]></category>
		<category><![CDATA[คำถามที่พบบ่อย (FAQ)]]></category>
		<category><![CDATA[CHMOD]]></category>

		<guid isPermaLink="false">http://www.pathosting.co.th/blog/?p=428</guid>
		<description><![CDATA[เนื่องจากระบบไฟล์ของ Linux สามารถกำหนดสิทธิในการอ่านและเขียนไฟล์ได้ โดยมาตรฐานทุกไฟล์จะถูกตั้งให้อ่านได้หมด แต่จะไม่ได้เปิดตรงส่วนของการเขียนหรือแก้ไขไว้ด้วย ดังนั้นถ้าคุณไม่ได้ตั้งที่ไฟล์ว่าให้เขียนได้ php มันก็จะแก้ไขไฟล์นั้นไม่ได้ และเวลามันพยายามไปเขียนไฟล์ที่ไม่มีสิทธิ์ มันก็จะขึ้น Error Message มาให้เห็น ปรกติไฟล์จะมี CHMOD เป็น 644 แต่ถ้าต้องการให้ไฟล์ สามารถถูก php มาแก้ไขได้ คุณต้องตั้ง CHMOD เป็น 666 แทนครับ ส่วนโฟลเดอร์ปกติจะมี CHMOD เป็น 755 แต่ถ้าคุณต้องการให้เขียนไฟล์ หรือแก้ไขไฟล์ในโฟลเดอร์นั้นได้ คุณต้องตั้ง CHMOD เป็น 777 พอแล้วสำหรับการเกริ่นนำ.. มาดูที่วิธีการตั้งค่า CHMOD เลยดีกว่าครับ การตั้ง chmod สามารถตั้งได้ในโปรแกรม FTP Client ทุกตัวนะครับ ส่วนใหญ่จะเป็นการคลิกขวา แล้วก็เลือก Properties หรือมีเมนู chmod เองโดยตรง ถ้าใครใช้โปรแกรม FTP Client [...]]]></description>
			<content:encoded><![CDATA[<p>เนื่องจากระบบไฟล์ของ Linux สามารถกำหนดสิทธิในการอ่านและเขียนไฟล์ได้ โดยมาตรฐานทุกไฟล์จะถูกตั้งให้อ่านได้หมด แต่จะไม่ได้เปิดตรงส่วนของการเขียนหรือแก้ไขไว้ด้วย ดังนั้นถ้าคุณไม่ได้ตั้งที่ไฟล์ว่าให้เขียนได้ php มันก็จะแก้ไขไฟล์นั้นไม่ได้ และเวลามันพยายามไปเขียนไฟล์ที่ไม่มีสิทธิ์ มันก็จะขึ้น Error Message มาให้เห็น</p>
<p><span id="more-428"></span></p>
<p>ปรกติไฟล์จะมี CHMOD เป็น <strong>644</strong> แต่ถ้าต้องการให้ไฟล์ สามารถถูก php มาแก้ไขได้ คุณต้องตั้ง CHMOD เป็น <strong>666</strong> แทนครับ</p>
<p>ส่วนโฟลเดอร์ปกติจะมี CHMOD เป็น <strong>755</strong> แต่ถ้าคุณต้องการให้เขียนไฟล์ หรือแก้ไขไฟล์ในโฟลเดอร์นั้นได้ คุณต้องตั้ง CHMOD เป็น <strong>777</strong></p>
<p>พอแล้วสำหรับการเกริ่นนำ.. มาดูที่วิธีการตั้งค่า CHMOD เลยดีกว่าครับ</p>
<p>การตั้ง chmod สามารถตั้งได้ในโปรแกรม FTP Client ทุกตัวนะครับ  ส่วนใหญ่จะเป็นการคลิกขวา แล้วก็เลือก Properties หรือมีเมนู chmod เองโดยตรง  ถ้าใครใช้โปรแกรม FTP Client ลองหาๆ ดูก็น่าจะเจอครับ&#8230;</p>
<p>แต่บทความนี้ผมแนะนำการตั้งผ่าน File Manager ของ DirectAdmin ครับ</p>
<ol>
<li>ขั้นแรกให้ Log-in เข้า DirectAdmin (Control Panel) ไปก่อน</li>
<li>เข้าที่เมนู File Manager (หรือคลิกที่ปุ่ม File ด้านบน)</li>
<li>คลิกเลือก File หรือ Folder ที่ต้องการตั้ง CHMOD แล้วก็พิมพ์ค่าลงไปใน TEXTBOX แล้วกดปุ่ม <img class="alignnone size-full wp-image-431 colorbox-428" title="set-permission" src="http://www.pathosting.co.th/blog/wp-content/uploads/2009/10/set-permission.gif" alt="set-permission" width="105" height="18" /> ตามรูป<br />
<img class="alignnone size-full wp-image-432 colorbox-428" title="chmod" src="http://www.pathosting.co.th/blog/wp-content/uploads/2009/10/chmod.gif" alt="chmod" width="400" height="134" /></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.pathosting.co.th/blog/faq/chmod-setting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
