<?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; apache</title>
	<atom:link href="http://www.iearn.in.th/tag/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.iearn.in.th</link>
	<description>Just Play and Just Knowledge</description>
	<lastBuildDate>Sat, 12 Jun 2010 06:40:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Install and Deploy Rails with Apache Modrails</title>
		<link>http://www.iearn.in.th/2009/10/15/install-and-deploy-rails-with-apache-modrails/</link>
		<comments>http://www.iearn.in.th/2009/10/15/install-and-deploy-rails-with-apache-modrails/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 18:46:19 +0000</pubDate>
		<dc:creator>nolifelover</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[httpd config]]></category>
		<category><![CDATA[modrails]]></category>
		<category><![CDATA[mod_rails]]></category>
		<category><![CDATA[passenger]]></category>

		<guid isPermaLink="false">http://www.iearn.in.th/?p=598</guid>
		<description><![CDATA[Jaideawhosting ตอนนี้ได้เปลี่ยนมาใช้งาน mod_rails แทน mod_proxy และ fastcgi แล้วเพราะเห็นว่าเจ้า mod_rails มันเสถียรจริงๆ อีกอย่างการ deploy ก็ทำได้ง่ายดายมาก เอาเป็นว่ามาดูวิธิการลงกันเลย Install Passenger 1. ทำการติดตั้ง passenger gem (mod_rails) gem install passenger 2. ติดตั้งเป็น module ของ apache passenger-install-apache2-module เป็นอันว่าเรียบร้อยแล้วสำหรับการลง ง่ายไหมละ Mod-rails Config 1. เปิดไฟล์ httpd.conf ของ apahce มาครับ 2. การ deploy ด้วย virtual host ServerName www.xxx.com ServerAlias www.xxxx.com xxxx.com DocumentRoot /home/xxx/app/public RailsEnv production [...]


Related posts:<ol><li><a href='http://www.iearn.in.th/2010/03/11/deploy-rails-app-on-a-suburi/' rel='bookmark' title='Permanent Link: Deploy rails app on a suburi'>Deploy rails app on a suburi</a> <small>หากใครอยากที่จะ deploy rails สำหรับให้อยู่ในส่วนของ suburi เช่น example.com/app จำเป็นจะต้องมีการใช้งานในส่วนของการสั่งให้ rails ทราบว่าตอนนี้มันกำลังอยู่ใน...</small></li>
<li><a href='http://www.iearn.in.th/2009/09/14/apache-fancyindex-overide-apache-icons/' rel='bookmark' title='Permanent Link: Apache FancyIndex Overide Apache Icons'>Apache FancyIndex Overide Apache Icons</a> <small>เคยเขียนการทำ list ไฟล์ด้วย apache modindexoptions มาแล้วแต่ติดปัญหาเรื่อง icons ที่ไม่ได้เอามาตามที่เราต้องการกลับไปเอา icon ซึ่งเป็น...</small></li>
<li><a href='http://www.iearn.in.th/2009/08/20/install-cups-on-ubuntu-904/' rel='bookmark' title='Permanent Link: Install CUPS on Ubuntu 9.04'>Install CUPS on Ubuntu 9.04</a> <small>Cups ย่อมาจากคำว่า “Common Unix Printing system” เป็นโปรแกรมช่วยจัดการการพิมพ์ของเครื่องพิมพ์ โดยสามารถจัดการคิวงานพิมพ์ รวมทั้งแชร์เครื่องพิมพ์ผ่านเน็ตเวิร์คได้ ขั้นตอนการติดตั้ง...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.iearn.in.th/wp-content/uploads/2009/10/mod_rails.jpg"><img src="http://www.iearn.in.th/wp-content/uploads/2009/10/mod_rails-300x221.jpg" alt="mod_rails" title="mod_rails" width="300" height="221" class="aligncenter size-medium wp-image-599" /></a></p>
<p>Jaideawhosting ตอนนี้ได้เปลี่ยนมาใช้งาน mod_rails แทน mod_proxy และ fastcgi แล้วเพราะเห็นว่าเจ้า mod_rails มันเสถียรจริงๆ อีกอย่างการ deploy ก็ทำได้ง่ายดายมาก เอาเป็นว่ามาดูวิธิการลงกันเลย<br />
<span id="more-598"></span><br />
Install Passenger<br />
1. ทำการติดตั้ง passenger gem (mod_rails)<br />
<code>gem install passenger </code><br />
2. ติดตั้งเป็น module ของ apache<br />
<code>passenger-install-apache2-module</code><br />
เป็นอันว่าเรียบร้อยแล้วสำหรับการลง ง่ายไหมละ</p>
<p>Mod-rails Config<br />
1. เปิดไฟล์ httpd.conf ของ apahce มาครับ<br />
2. การ deploy ด้วย virtual host<br />
<code><VirtualHost xx.xx.xx.xx:80><br />
ServerName www.xxx.com<br />
        ServerAlias www.xxxx.com xxxx.com<br />
        DocumentRoot /home/xxx/app/public<br />
        RailsEnv production<br />
</VirtualHost><br />
</code><br />
หลังจากนั้นทำการ reload httpd ก็เรียบร้อยครับ</p>


<p>Related posts:<ol><li><a href='http://www.iearn.in.th/2010/03/11/deploy-rails-app-on-a-suburi/' rel='bookmark' title='Permanent Link: Deploy rails app on a suburi'>Deploy rails app on a suburi</a> <small>หากใครอยากที่จะ deploy rails สำหรับให้อยู่ในส่วนของ suburi เช่น example.com/app จำเป็นจะต้องมีการใช้งานในส่วนของการสั่งให้ rails ทราบว่าตอนนี้มันกำลังอยู่ใน...</small></li>
<li><a href='http://www.iearn.in.th/2009/09/14/apache-fancyindex-overide-apache-icons/' rel='bookmark' title='Permanent Link: Apache FancyIndex Overide Apache Icons'>Apache FancyIndex Overide Apache Icons</a> <small>เคยเขียนการทำ list ไฟล์ด้วย apache modindexoptions มาแล้วแต่ติดปัญหาเรื่อง icons ที่ไม่ได้เอามาตามที่เราต้องการกลับไปเอา icon ซึ่งเป็น...</small></li>
<li><a href='http://www.iearn.in.th/2009/08/20/install-cups-on-ubuntu-904/' rel='bookmark' title='Permanent Link: Install CUPS on Ubuntu 9.04'>Install CUPS on Ubuntu 9.04</a> <small>Cups ย่อมาจากคำว่า “Common Unix Printing system” เป็นโปรแกรมช่วยจัดการการพิมพ์ของเครื่องพิมพ์ โดยสามารถจัดการคิวงานพิมพ์ รวมทั้งแชร์เครื่องพิมพ์ผ่านเน็ตเวิร์คได้ ขั้นตอนการติดตั้ง...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.iearn.in.th/2009/10/15/install-and-deploy-rails-with-apache-modrails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache FancyIndex Overide Apache Icons</title>
		<link>http://www.iearn.in.th/2009/09/14/apache-fancyindex-overide-apache-icons/</link>
		<comments>http://www.iearn.in.th/2009/09/14/apache-fancyindex-overide-apache-icons/#comments</comments>
		<pubDate>Mon, 14 Sep 2009 03:33:59 +0000</pubDate>
		<dc:creator>nolifelover</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[apache addicon]]></category>
		<category><![CDATA[apache index]]></category>
		<category><![CDATA[apache list file]]></category>
		<category><![CDATA[apache overide icon]]></category>
		<category><![CDATA[listfile]]></category>

		<guid isPermaLink="false">http://www.iearn.in.th/?p=584</guid>
		<description><![CDATA[เคยเขียนการทำ list ไฟล์ด้วย apache modindexoptions มาแล้วแต่ติดปัญหาเรื่อง icons ที่ไม่ได้เอามาตามที่เราต้องการกลับไปเอา icon ซึ่งเป็น default ของ apache มาทำให้ index list มองแล้วไม่สวยดังใจ เลยมาเขียน .htaccess เพื่อให้เปลี่ยนที่อยู่ของ icons ให้ไปตามที่เราต้องการ สำหรับใครที่ต้องการ icons ต่างๆ สามารถหาโหลดได้ทั่วไปแต่หากว่าไม่อยากโหลดมาก็สามารถเอาของผมไปใช้ได้ครับ สำหรับการ overide ตามนี้เลยครับ ส่วนนี้จะอยู่ใน .htaccess นะครับ AddIconByEncoding (CMP,/index-style/icons/compressed.gif) x-compress x-gzip #AddIconByType (TXT,/index-style/icons/text.gif) text/* AddIconByType (IMG,/index-style/icons/image2.gif) image/* AddIconByType (SND,/index-style/icons/sound2.gif) audio/* AddIconByType (VID,/index-style/icons/video.png) video/* AddIcon /index-style/icons/back.gif .. AddIcon /index-style/icons/pdf.png .pdf AddIcon [...]


Related posts:<ol><li><a href='http://www.iearn.in.th/2009/08/17/apache-fancyindex-with-htaccess/' rel='bookmark' title='Permanent Link: Apache FancyIndex with .htaccess'>Apache FancyIndex with .htaccess</a> <small>ห่างหายไปนานเลยกับการเขียนบล๊อกวันนี้มาอัพเดดหน่อย สำหรับตัวนี้จะเป็นการใช้งานของ apache IndexOptions ซึ่งจะเป็นการทำให้ folder เราสามารถ list ไฟล์ต่างๆ ได้เลย...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.iearn.in.th/wp-content/uploads/2009/09/apache-index-overide-icon.png"><img src="http://www.iearn.in.th/wp-content/uploads/2009/09/apache-index-overide-icon-300x220.png" alt="apache-index-overide-icon" title="apache-index-overide-icon" width="300" height="220" class="aligncenter size-medium wp-image-585" /></a></p>
<p>เคยเขียนการทำ list ไฟล์ด้วย apache modindexoptions มาแล้วแต่ติดปัญหาเรื่อง icons ที่ไม่ได้เอามาตามที่เราต้องการกลับไปเอา icon ซึ่งเป็น default ของ apache มาทำให้ index list มองแล้วไม่สวยดังใจ เลยมาเขียน .htaccess เพื่อให้เปลี่ยนที่อยู่ของ icons ให้ไปตามที่เราต้องการ<br />
<span id="more-584"></span><br />
สำหรับใครที่ต้องการ icons ต่างๆ สามารถหาโหลดได้ทั่วไปแต่หากว่าไม่อยากโหลดมาก็สามารถเอาของผมไปใช้ได้ครับ สำหรับการ overide ตามนี้เลยครับ ส่วนนี้จะอยู่ใน .htaccess นะครับ<br />
<code>AddIconByEncoding (CMP,/index-style/icons/compressed.gif) x-compress x-gzip<br />
#AddIconByType (TXT,/index-style/icons/text.gif) text/*<br />
AddIconByType (IMG,/index-style/icons/image2.gif) image/*<br />
AddIconByType (SND,/index-style/icons/sound2.gif) audio/*<br />
AddIconByType (VID,/index-style/icons/video.png) video/*<br />
AddIcon /index-style/icons/back.gif ..<br />
AddIcon /index-style/icons/pdf.png .pdf<br />
AddIcon /index-style/icons/html.png .html .xhtml .xml<br />
AddIcon /index-style/icons/html.png .txt<br />
AddIcon /index-style/icons/compressed.gif .rar .zip<br />
AddIcon /index-style/icons/dll.png .dll<br />
AddIcon /index-style/icons/shellscript.png .sh<br />
AddIcon /index-style/icons/library.png .jar .lib<br />
AddIcon /index-style/icons/msword_doc.png .doc .docx<br />
AddIcon /index-style/icons/msexcel_xls.png .xls .xlsx<br />
AddIcon /index-style/icons/msaccess_mdb.png .mdb .mdbx<br />
AddIcon /index-style/icons/doc_encrypted.png .key .csr<br />
AddIcon /index-style/icons/binary.png .bin .exe<br />
AddIcon /index-style/icons/swf.png .bin .swf<br />
AddIcon /index-style/icons/source_java.png .java<br />
AddIcon /index-style/icons/source_c.png .c<br />
AddIcon /index-style/icons/source_cpp.png .cpp<br />
AddIcon /index-style/icons/source_ruby.png .rb<br />
AddIcon /index-style/icons/xml.png .xml<br />
AddIcon /index-style/icons/properties.png .properties<br />
#AddIcon /icon/hand.right.gif README<br />
AddIcon /index-style/icons/folder.gif ^^DIRECTORY^^<br />
AddIcon /index-style/icons/blank.gif ^^BLANKICON^^<br />
DefaultIcon /index-style/icons/unknown.gif</code></p>


<p>Related posts:<ol><li><a href='http://www.iearn.in.th/2009/08/17/apache-fancyindex-with-htaccess/' rel='bookmark' title='Permanent Link: Apache FancyIndex with .htaccess'>Apache FancyIndex with .htaccess</a> <small>ห่างหายไปนานเลยกับการเขียนบล๊อกวันนี้มาอัพเดดหน่อย สำหรับตัวนี้จะเป็นการใช้งานของ apache IndexOptions ซึ่งจะเป็นการทำให้ folder เราสามารถ list ไฟล์ต่างๆ ได้เลย...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.iearn.in.th/2009/09/14/apache-fancyindex-overide-apache-icons/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache FancyIndex with .htaccess</title>
		<link>http://www.iearn.in.th/2009/08/17/apache-fancyindex-with-htaccess/</link>
		<comments>http://www.iearn.in.th/2009/08/17/apache-fancyindex-with-htaccess/#comments</comments>
		<pubDate>Mon, 17 Aug 2009 07:21:49 +0000</pubDate>
		<dc:creator>nolifelover</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[apache index]]></category>
		<category><![CDATA[apache list file]]></category>
		<category><![CDATA[listfile]]></category>

		<guid isPermaLink="false">http://www.iearn.in.th/?p=544</guid>
		<description><![CDATA[ห่างหายไปนานเลยกับการเขียนบล๊อกวันนี้มาอัพเดดหน่อย สำหรับตัวนี้จะเป็นการใช้งานของ apache IndexOptions ซึ่งจะเป็นการทำให้ folder เราสามารถ list ไฟล์ต่างๆ ได้เลย โดยการเขียนจะใช้งาน .htaccess เพื่อกำหนดค่าต่างๆ ครับ วิธีการทำ 1. เริ่มแรกเลยไปยัง folder ที่ต้องการทำ index จากนั้นให้สร้างไฟล์ .htaccess แล้วเพิ่มโค้ดข้างล่างนี้ Options Indexes FollowSymLinks IndexOptions FancyIndexing IndexOptions VersionSort IndexOptions HTMLTable IndexOptions FoldersFirst IndexOptions IconsAreLinks IndexOptions IgnoreCase IndexOptions SuppressDescription IndexOptions SuppressHTMLPreamble IndexOptions XHTML IndexOptions IconWidth=16 IndexOptions IconHeight=16 IndexOptions NameWidth=* IndexOrderDefault Descending Name HeaderName /index-style/header.html [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.iearn.in.th/wp-content/uploads/2009/08/index-stylelist.png"><img class="aligncenter size-medium wp-image-545" title="index-stylelist" src="http://www.iearn.in.th/wp-content/uploads/2009/08/index-stylelist-300x129.png" alt="index-stylelist" width="300" height="129" /></a><br />
<br/><br />
ห่างหายไปนานเลยกับการเขียนบล๊อกวันนี้มาอัพเดดหน่อย สำหรับตัวนี้จะเป็นการใช้งานของ apache IndexOptions ซึ่งจะเป็นการทำให้ folder เราสามารถ list ไฟล์ต่างๆ ได้เลย โดยการเขียนจะใช้งาน .htaccess เพื่อกำหนดค่าต่างๆ ครับ<span id="more-544"></span></p>
<p><strong>วิธีการทำ</strong><br />
1. เริ่มแรกเลยไปยัง folder ที่ต้องการทำ index จากนั้นให้สร้างไฟล์ .htaccess แล้วเพิ่มโค้ดข้างล่างนี้</p>
<p><code>Options Indexes FollowSymLinks<br />
IndexOptions FancyIndexing<br />
IndexOptions VersionSort<br />
IndexOptions HTMLTable<br />
IndexOptions FoldersFirst<br />
IndexOptions IconsAreLinks<br />
IndexOptions IgnoreCase<br />
IndexOptions SuppressDescription<br />
IndexOptions SuppressHTMLPreamble<br />
IndexOptions XHTML<br />
IndexOptions IconWidth=16<br />
IndexOptions IconHeight=16<br />
IndexOptions NameWidth=*<br />
IndexOrderDefault Descending Name<br />
HeaderName /index-style/header.html<br />
ReadmeName /index-style/footer.html</code></p>
<p>2. ให้ไปโหลดไฟล์ที่ http://recurser.com/articles/2008/12/29/styling-apache-directory-listings-with-mod_autoindex/ เพื่อทำให้สวยงามโดยการนำเอาไฟล์ไปไว้ที่ /index-style ก็จะได้รูปแบบสวยๆ แล้ว</p>
<p>เพิ่มเติม<br />
<a href="http://recurser.com/articles/2008/12/29/styling-apache-directory-listings-with-mod_autoindex/">http://recurser.com/articles/2008/12/29/styling-apache-directory-listings-with-mod_autoindex/</a></p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.iearn.in.th/2009/08/17/apache-fancyindex-with-htaccess/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<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 จะมีการถามพาสเวิร์ดให้เราใส่ [...]


Related posts:<ol><li><a href='http://www.iearn.in.th/2009/08/17/apache-fancyindex-with-htaccess/' rel='bookmark' title='Permanent Link: Apache FancyIndex with .htaccess'>Apache FancyIndex with .htaccess</a> <small>ห่างหายไปนานเลยกับการเขียนบล๊อกวันนี้มาอัพเดดหน่อย สำหรับตัวนี้จะเป็นการใช้งานของ apache IndexOptions ซึ่งจะเป็นการทำให้ folder เราสามารถ list ไฟล์ต่างๆ ได้เลย...</small></li>
<li><a href='http://www.iearn.in.th/2009/09/14/apache-fancyindex-overide-apache-icons/' rel='bookmark' title='Permanent Link: Apache FancyIndex Overide Apache Icons'>Apache FancyIndex Overide Apache Icons</a> <small>เคยเขียนการทำ list ไฟล์ด้วย apache modindexoptions มาแล้วแต่ติดปัญหาเรื่อง icons ที่ไม่ได้เอามาตามที่เราต้องการกลับไปเอา icon ซึ่งเป็น...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></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>Related posts:<ol><li><a href='http://www.iearn.in.th/2009/08/17/apache-fancyindex-with-htaccess/' rel='bookmark' title='Permanent Link: Apache FancyIndex with .htaccess'>Apache FancyIndex with .htaccess</a> <small>ห่างหายไปนานเลยกับการเขียนบล๊อกวันนี้มาอัพเดดหน่อย สำหรับตัวนี้จะเป็นการใช้งานของ apache IndexOptions ซึ่งจะเป็นการทำให้ folder เราสามารถ list ไฟล์ต่างๆ ได้เลย...</small></li>
<li><a href='http://www.iearn.in.th/2009/09/14/apache-fancyindex-overide-apache-icons/' rel='bookmark' title='Permanent Link: Apache FancyIndex Overide Apache Icons'>Apache FancyIndex Overide Apache Icons</a> <small>เคยเขียนการทำ list ไฟล์ด้วย apache modindexoptions มาแล้วแต่ติดปัญหาเรื่อง icons ที่ไม่ได้เอามาตามที่เราต้องการกลับไปเอา icon ซึ่งเป็น...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</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>
