{"id":1900,"date":"2022-08-24T08:00:37","date_gmt":"2022-08-24T01:00:37","guid":{"rendered":"https:\/\/www.bigdata.rmutt.ac.th\/?p=1900"},"modified":"2023-04-29T13:15:27","modified_gmt":"2023-04-29T06:15:27","slug":"%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%9e%e0%b8%b1%e0%b8%92%e0%b8%99%e0%b8%b2%e0%b8%a3%e0%b8%b0%e0%b8%9a%e0%b8%9a%e0%b8%94%e0%b9%89%e0%b8%a7%e0%b8%a2-yii2-%e0%b8%95%e0%b8%ad%e0%b8%99%e0%b8%97%e0%b8%b5-4","status":"publish","type":"post","link":"https:\/\/www.bigdata.rmutt.ac.th\/?p=1900","title":{"rendered":"\u0e01\u0e32\u0e23\u0e1e\u0e31\u0e12\u0e19\u0e32\u0e23\u0e30\u0e1a\u0e1a\u0e14\u0e49\u0e27\u0e22 Yii2: \u0e15\u0e2d\u0e19\u0e17\u0e35\u0e48 4 \u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49 built-in PHP web serve"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u0e04\u0e27\u0e32\u0e21\u0e40\u0e14\u0e34\u0e21\u0e15\u0e2d\u0e19\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27<\/h2>\n\n\n\n<p>\u0e22\u0e49\u0e2d\u0e19\u0e14\u0e39\u0e1a\u0e17\u0e04\u0e27\u0e32\u0e21\u0e15\u0e2d\u0e19\u0e17\u0e35\u0e48 3 \u0e44\u0e14\u0e49\u0e17\u0e35\u0e48 <a href=\"https:\/\/www.bigdata.rmutt.ac.th\/?p=1845\">https:\/\/www.bigdata.rmutt.ac.th\/?p=1845<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Built-in PHP web serve<\/h2>\n\n\n\n<p>\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07 web server \u0e14\u0e49\u0e27\u0e22 built-in PHP \u0e1a\u0e19 Yii2 Framework \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e17\u0e33\u0e44\u0e14\u0e49\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e07\u0e48\u0e32\u0e22 \u0e41\u0e25\u0e30\u0e21\u0e35\u0e1b\u0e23\u0e30\u0e42\u0e22\u0e0a\u0e19\u0e4c\u0e43\u0e19\u0e01\u0e32\u0e23\u0e17\u0e14\u0e2a\u0e2d\u0e1a\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e07\u0e48\u0e32\u0e22 \u0e41\u0e25\u0e30\u0e0b\u0e48\u0e2d\u0e19\u0e23\u0e32\u0e22\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14\u0e02\u0e2d\u0e07 path \u0e22\u0e32\u0e27 \u0e46 \u0e43\u0e19\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e40\u0e23\u0e32\u0e44\u0e14\u0e49 (\u0e2d\u0e31\u0e19\u0e17\u0e35\u0e48\u0e08\u0e23\u0e34\u0e07\u0e41\u0e25\u0e49\u0e27\u0e15\u0e2d\u0e19\u0e19\u0e33\u0e44\u0e1b\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07\u0e08\u0e23\u0e34\u0e07 \u0e2b\u0e23\u0e37\u0e2d\u0e23\u0e31\u0e19\u0e43\u0e19\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e40\u0e23\u0e32\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32 vhost \u0e40\u0e1e\u0e37\u0e48\u0e2d map \u0e01\u0e31\u0e1a domain \u0e44\u0e14\u0e49\u0e40\u0e2b\u0e21\u0e37\u0e2d\u0e19\u0e01\u0e31\u0e19)<\/p>\n\n\n\n<p>\u0e17\u0e31\u0e49\u0e07\u0e19\u0e35\u0e49\u0e40\u0e23\u0e32\u0e15\u0e49\u0e2d\u0e07\u0e04\u0e33\u0e19\u0e36\u0e07\u0e16\u0e36\u0e07 template \u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e43\u0e0a\u0e49\u0e14\u0e49\u0e27\u0e22 \u0e40\u0e0a\u0e48\u0e19 basic template \u0e2b\u0e23\u0e37\u0e2d advanced template<\/p>\n\n\n\n<p>\u0e08\u0e32\u0e01\u0e15\u0e2d\u0e19\u0e17\u0e35\u0e48\u0e1c\u0e48\u0e32\u0e19\u0e21\u0e32\u0e40\u0e23\u0e32\u0e43\u0e0a\u0e49\u0e40\u0e1b\u0e47\u0e19 advanced template \u0e14\u0e31\u0e07\u0e19\u0e31\u0e49\u0e19\u0e02\u0e31\u0e49\u0e19\u0e15\u0e2d\u0e19\u0e43\u0e19\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19 built-in PHP web serve \u0e21\u0e35\u0e14\u0e31\u0e07\u0e19\u0e35\u0e49<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>terminal \u0e2b\u0e23\u0e37\u0e2d cmd \u0e40\u0e02\u0e49\u0e32\u0e44\u0e1b\u0e17\u0e35\u0e48 root \u0e02\u0e2d\u0e07 project \u0e40\u0e0a\u0e48\u0e19 C:\\xampp\\htdocs\\my_app<\/li><li>\u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 php yii serve &#8211;port=8888 &#8211;docroot=&#8221;frontend\/web\/&#8221; \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e40\u0e1b\u0e34\u0e14 port 8888 \u0e1a\u0e19 frontend<\/li><li>\u0e40\u0e1b\u0e34\u0e14 terminal \u0e2b\u0e23\u0e37\u0e2d cmd \u0e02\u0e36\u0e49\u0e19\u0e21\u0e32\u0e2d\u0e35\u0e01 1 \u0e2d\u0e31\u0e19\u0e15\u0e32\u0e21\u0e02\u0e49\u0e2d\u0e17\u0e35\u0e48 1<\/li><li>\u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 php yii serve &#8211;port=8889 &#8211;docroot=&#8221;backend\/web\/&#8221; \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e40\u0e1b\u0e34\u0e14 port 8889 \u0e1a\u0e19 backtend<\/li><\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>php yii serve --port=8888 --docroot=\"frontend\/web\/\"\n\nphp yii serve --port=8889 --docroot=\"backend\/web\/\"<\/code><\/pre>\n\n\n\n<p>\u0e2b\u0e25\u0e31\u0e07\u0e08\u0e32\u0e01\u0e19\u0e31\u0e49\u0e19\u0e43\u0e2b\u0e49\u0e17\u0e14\u0e2a\u0e2d\u0e1a\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19\u0e42\u0e14\u0e22\u0e40\u0e02\u0e49\u0e32\u0e44\u0e1b\u0e17\u0e35\u0e48 http:\/\/localhost:8888\/ \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e41\u0e23\u0e01\u0e02\u0e2d\u0e07 frontend \u0e41\u0e25\u0e30 http:\/\/localhost:8889\/ \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a backend \u0e08\u0e30\u0e44\u0e14\u0e49\u0e1c\u0e25\u0e25\u0e31\u0e1e\u0e18\u0e4c\u0e40\u0e1b\u0e47\u0e19\u0e14\u0e31\u0e07\u0e19\u0e35\u0e49<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.bigdata.rmutt.ac.th\/wp-content\/uploads\/2022\/08\/frontend8888.png\" alt=\"\" class=\"wp-image-1902\" width=\"811\" height=\"499\"\/><\/figure><\/div>\n\n\n<p><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.bigdata.rmutt.ac.th\/wp-content\/uploads\/2022\/08\/backend8889.png\" alt=\"\" class=\"wp-image-1903\" width=\"785\" height=\"364\"\/><\/figure><\/div>\n\n\n<p>\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49 built-in PHP web serve \u0e16\u0e37\u0e2d\u0e27\u0e48\u0e32\u0e40\u0e1b\u0e47\u0e19\u0e17\u0e32\u0e07\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e2b\u0e19\u0e36\u0e48\u0e07\u0e17\u0e35\u0e48 developer \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e44\u0e14\u0e49 \u0e40\u0e1e\u0e23\u0e32\u0e30\u0e44\u0e21\u0e48\u0e21\u0e35\u0e04\u0e27\u0e32\u0e21\u0e0b\u0e31\u0e1a\u0e0b\u0e49\u0e2d\u0e19 \u0e41\u0e25\u0e30\u0e07\u0e48\u0e32\u0e22\u0e43\u0e19\u0e01\u0e32\u0e23 debug \u0e14\u0e49\u0e27\u0e22 \u0e40\u0e2b\u0e21\u0e32\u0e30\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e17\u0e14\u0e2a\u0e2d\u0e1a\u0e43\u0e19\u0e01\u0e23\u0e13\u0e35\u0e15\u0e48\u0e32\u0e07 \u0e46 <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0e04\u0e27\u0e32\u0e21\u0e40\u0e14\u0e34\u0e21\u0e15\u0e2d\u0e19\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e22\u0e49\u0e2d\u0e19\u0e14\u0e39\u0e1a\u0e17\u0e04\u0e27\u0e32\u0e21\u0e15\u0e2d\u0e19\u0e17\u0e35\u0e48 3 \u0e44\u0e14\u0e49\u0e17\u0e35\u0e48 https:\/\/www.bigdata.rmutt.ac.th\/?p=1845 Built-in PHP web serve \u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07 web server \u0e14\u0e49\u0e27\u0e22 built-in PHP \u0e1a\u0e19 Yii2 Framework \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e17\u0e33\u0e44\u0e14\u0e49\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e07\u0e48\u0e32\u0e22 \u0e41\u0e25\u0e30\u0e21\u0e35\u0e1b\u0e23\u0e30\u0e42\u0e22\u0e0a\u0e19\u0e4c\u0e43\u0e19\u0e01\u0e32\u0e23\u0e17\u0e14\u0e2a\u0e2d\u0e1a\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e07\u0e48\u0e32\u0e22 \u0e41\u0e25\u0e30\u0e0b\u0e48\u0e2d\u0e19\u0e23\u0e32\u0e22\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14\u0e02\u0e2d\u0e07 path \u0e22\u0e32\u0e27 \u0e46 \u0e43\u0e19\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e40\u0e23\u0e32\u0e44\u0e14\u0e49 (\u0e2d\u0e31\u0e19\u0e17\u0e35\u0e48\u0e08\u0e23\u0e34\u0e07\u0e41\u0e25\u0e49\u0e27\u0e15\u0e2d\u0e19\u0e19\u0e33\u0e44\u0e1b\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07\u0e08\u0e23\u0e34\u0e07 \u0e2b\u0e23\u0e37\u0e2d\u0e23\u0e31\u0e19\u0e43\u0e19\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e40\u0e23\u0e32\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32 vhost \u0e40\u0e1e\u0e37\u0e48\u0e2d map \u0e01\u0e31\u0e1a domain \u0e44\u0e14\u0e49\u0e40\u0e2b\u0e21\u0e37\u0e2d\u0e19\u0e01\u0e31\u0e19) \u0e17\u0e31\u0e49\u0e07\u0e19\u0e35\u0e49\u0e40\u0e23\u0e32\u0e15\u0e49\u0e2d\u0e07\u0e04\u0e33\u0e19\u0e36\u0e07\u0e16\u0e36\u0e07 template \u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e43\u0e0a\u0e49\u0e14\u0e49\u0e27\u0e22 \u0e40\u0e0a\u0e48\u0e19 basic template \u0e2b\u0e23\u0e37\u0e2d advanced template \u0e08\u0e32\u0e01\u0e15\u0e2d\u0e19\u0e17\u0e35\u0e48\u0e1c\u0e48\u0e32\u0e19\u0e21\u0e32\u0e40\u0e23\u0e32\u0e43\u0e0a\u0e49\u0e40\u0e1b\u0e47\u0e19 advanced template \u0e14\u0e31\u0e07\u0e19\u0e31\u0e49\u0e19\u0e02\u0e31\u0e49\u0e19\u0e15\u0e2d\u0e19\u0e43\u0e19\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19 built-in PHP web serve [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":1630,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,21],"tags":[13,20,19],"class_list":["post-1900","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-development","category-yii2-development","tag-development","tag-web","tag-yii2"],"_links":{"self":[{"href":"https:\/\/www.bigdata.rmutt.ac.th\/index.php?rest_route=\/wp\/v2\/posts\/1900"}],"collection":[{"href":"https:\/\/www.bigdata.rmutt.ac.th\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bigdata.rmutt.ac.th\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bigdata.rmutt.ac.th\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bigdata.rmutt.ac.th\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1900"}],"version-history":[{"count":8,"href":"https:\/\/www.bigdata.rmutt.ac.th\/index.php?rest_route=\/wp\/v2\/posts\/1900\/revisions"}],"predecessor-version":[{"id":1925,"href":"https:\/\/www.bigdata.rmutt.ac.th\/index.php?rest_route=\/wp\/v2\/posts\/1900\/revisions\/1925"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.bigdata.rmutt.ac.th\/index.php?rest_route=\/wp\/v2\/media\/1630"}],"wp:attachment":[{"href":"https:\/\/www.bigdata.rmutt.ac.th\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1900"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bigdata.rmutt.ac.th\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1900"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bigdata.rmutt.ac.th\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1900"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}