<?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>ไอเอินบล๊อก &#187; mac</title>
	<atom:link href="http://www.iearn.in.th/tag/mac/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.iearn.in.th</link>
	<description>Just Play and Just Knowledge</description>
	<lastBuildDate>Fri, 05 Aug 2011 15:10:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Working with php in mac 10.5.X</title>
		<link>http://www.iearn.in.th/2008/04/29/working-with-php-in-mac-105x/</link>
		<comments>http://www.iearn.in.th/2008/04/29/working-with-php-in-mac-105x/#comments</comments>
		<pubDate>Mon, 28 Apr 2008 23:05:19 +0000</pubDate>
		<dc:creator>nolifelover</dc:creator>
				<category><![CDATA[MacOSX]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[apachetcl]]></category>
		<category><![CDATA[Configuration]]></category>
		<category><![CDATA[Enable]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[mamp]]></category>
		<category><![CDATA[Marc Liyanage]]></category>

		<guid isPermaLink="false">http://www.jaideawhosting.com/nolifelover/?p=127</guid>
		<description><![CDATA[สวัสดีครับสำหรับวันนี้เมื่อผมต้องการเขียน php บน mac เนี่ยผมต้องทำอย่างไรครับสำหรับที่จริงแล้วเรามีทางเลือกได้หลายทางครับ จะเอาที่มีเป็น package อยู่แล้วมา install หรือนั่ง compile apache ใหม่ก็แล้วแต่ครับ สำหรับวิธีที่ผมเลือกคือเลือกที่จะใช้ apache ที่มีอยู่ใน 10.5.x อยู่แล้วครับ สำหรับใครที่อยากจะลงโดยไม่ต้องยุ่งกับอะไรสามารถเลือก MAMP, XAMPP or Marc Liyanage ได้ครับ สำหรับใครที่ต้องการใช้ที่ติดกับ mac อยู่แล้วก็ตามมาเลยครับ Enable Developer Tools     คือการเปิดสิทธิให้สามารถใช้ root user ได้ เพื่อไม่ให้เกิดปัญหาเรื่องการใช้งานในการ access file permission  สำหรับวิธีการให้ไปที่ Menu -&#62;Go -&#62;Utilities-&#62; Directory Utility จากนั้นให้ทำการเลือก ปลดล็อกไฟล์ตรงรูปกุญแจแล้วจะมีการ Authenticate เพื่อตรวจสอบสิทธิการใช้ ให้เราใส่ password ลงไป หลังจากนั้นให้ไปที่ menu-&#62;edit-&#62;enable root users จะมีการถามพาสเวิร์ดให้เราใส่ [...]]]></description>
			<content:encoded><![CDATA[<p>สวัสดีครับสำหรับวันนี้เมื่อผมต้องการเขียน php บน mac เนี่ยผมต้องทำอย่างไรครับสำหรับที่จริงแล้วเรามีทางเลือกได้หลายทางครับ จะเอาที่มีเป็น package อยู่แล้วมา install หรือนั่ง compile apache ใหม่ก็แล้วแต่ครับ สำหรับวิธีที่ผมเลือกคือเลือกที่จะใช้ apache ที่มีอยู่ใน 10.5.x อยู่แล้วครับ สำหรับใครที่อยากจะลงโดยไม่ต้องยุ่งกับอะไรสามารถเลือก <a href="http://www.mamp.info/en/index.php">MAMP</a>, <a href="http://www.apachefriends.org/en/xampp-macosx.html">XAMPP</a> or <a href="http://www.entropy.ch/software/macosx/php/">Marc Liyanage</a> ได้ครับ สำหรับใครที่ต้องการใช้ที่ติดกับ mac อยู่แล้วก็ตามมาเลยครับ</p>
<p><span id="more-127"></span></p>
<p style="text-align: left;"><strong>Enable Developer Tools<br />
<span style="font-weight: normal;">    คือการเปิดสิทธิให้สามารถใช้ root user ได้ เพื่อไม่ให้เกิดปัญหาเรื่องการใช้งานในการ access file permission  สำหรับวิธีการให้ไปที่ Menu -&gt;Go -&gt;Utilities-&gt; Directory Utility จากนั้นให้ทำการเลือก ปลดล็อกไฟล์ตรงรูปกุญแจแล้วจะมีการ Authenticate เพื่อตรวจสอบสิทธิการใช้ ให้เราใส่ password ลงไป หลังจากนั้นให้ไปที่ menu-&gt;edit-&gt;enable root users จะมีการถามพาสเวิร์ดให้เราใส่ password ของ root user ก้เป็นอันว่าเาร็จเรียบรอยในการแก้ให้สามารถเปิดสิทธิของ root ในการใช้งานเพื่อเพิ่มประสิทธิภาพในการพัฒนาโปรแกรม<br />
<a href="http://www.iearn.in.th/wp-content/uploads/2008/04/picture-12.png"><img class="alignnone size-medium wp-image-128" title="Utilities" src="http://www.jaideawhosting.com/nolifelover/wp-content/uploads/2008/04/picture-12-262x300.png" alt="utilities munu mac" width="262" height="300" /><img class="alignnone size-medium wp-image-129" title="picture-21" src="http://www.jaideawhosting.com/nolifelover/wp-content/uploads/2008/04/picture-21-300x173.png" alt="" width="300" height="173" /><img class="alignnone size-medium wp-image-130" title="picture-32" src="http://www.jaideawhosting.com/nolifelover/wp-content/uploads/2008/04/picture-32-300x180.png" alt="" width="300" height="180" /></a><a href="http://www.iearn.in.th/wp-content/uploads/2008/04/picture-41.png"><img class="alignnone size-medium wp-image-131" title="picture-41" src="http://www.jaideawhosting.com/nolifelover/wp-content/uploads/2008/04/picture-41-300x188.png" alt="" width="300" height="188" /></a><br />
 </span></strong></p>
<p style="text-align: left;"><strong>Editing Configuration Files</strong><br />
    ขั้นตอนนี้จะทำการแก้ไขไฟลื con-fig ของ apache ที่มีอยุ่เดิมโดยเราสามารถแก้ไขได้หลายวิธีหากใครถนัด nano vi ก็สามารถใช้ได้แ่หากต้องการ user interface แนะนำให้ใช้ <a href="http://www.barebones.com/">BBEdit</a> หรือ <a href="http://www.barebones.com/products/textwrangler/">TextWrangler</a>  สำหรับในที่นี้ผมใช้ TextMate ซึ่งไม่ฟรีเลยไม่แนะนำให้ใช้ครับ หลังจากนั้นให้เราไปที่ menu-&gt;Go -&gt; Go to Folder แล้วใส่ค่า /etc/apache/ เพื่อไปยัง directory นั้นเมื่อถึงแล้วจะเห็นไฟล์ไม่กี่ไฟล์ครัล แต่ที่สำคัญคือ httpd.conf ซึ่งเราต้องทำการแก้ไข โดยการเปิดด้วย editor ทีเรามีอยู่ครับ จากนั้นหาบรรทัดที่ชื่อ <br />
#LoadModule php5_module libexec/apache2/libphp5.so<br />
เอาเครื่องหมาย # ออกเป็นอันเรียบร้อยครับ <br />
<img class="alignnone size-medium wp-image-133" title="picture-61" src="http://www.jaideawhosting.com/nolifelover/wp-content/uploads/2008/04/picture-61-279x300.png" alt="" width="279" height="300" /><a href="http://www.iearn.in.th/wp-content/uploads/2008/04/picture-51.png"><img class="alignnone size-medium wp-image-132" title="picture-51" src="http://www.jaideawhosting.com/nolifelover/wp-content/uploads/2008/04/picture-51-300x186.png" alt="" width="300" height="186" /></a> </p>
<p style="text-align: left;"><strong>Starting Apache </strong><br />
    สำหรับการเริ่มเจ้า apache ที่เราได้ทำหารแก้ไขสามารถเข้าไปสั่งให้รันได้ที่ System references -&gt; Sharing -&gt; Web Sharing ก็เป็นอันเสร็จเรียบร้อยสำหรับการสั่งรันเจ้า apache หากใครที่ได้ทำการรันไว้แล้วสามารถใช้คำสั่ง<br />
$sudo apachetcl restart </p>
<p style="text-align: left;">เป็นอันว่าเรียบร้อยสำหรับการใช้ php บน mac ใช้งานได้</p>
<p style="text-align: left;">Link <a href="http://www.procata.com/blog/archives/2007/10/28/working-with-php-5-in-mac-os-x-105/">http://www.procata.com/blog/archives/2007/10/28/working-with-php-5-in-mac-os-x-105/</a></p>

<p class="sayac_bilgi">11 views</p>
]]></content:encoded>
			<wfw:commentRss>http://www.iearn.in.th/2008/04/29/working-with-php-in-mac-105x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

