{"id":345,"date":"2016-07-21T14:21:38","date_gmt":"2016-07-21T07:21:38","guid":{"rendered":"http:\/\/www.ecc.eng.kmutnb.ac.th\/wordpress\/?p=345"},"modified":"2017-01-05T09:25:18","modified_gmt":"2017-01-05T02:25:18","slug":"basic-tutorial-how-to-install-php7","status":"publish","type":"post","link":"https:\/\/www.ecc.eng.kmutnb.ac.th\/index.php\/2016\/07\/21\/basic-tutorial-how-to-install-php7\/","title":{"rendered":"Tutorial : \u0e01\u0e32\u0e23\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 PHP7"},"content":{"rendered":"<p>Tuesday, 21.06.2016<\/p>\n<div id=\"contents\">\n<p class=\"c3 c14\"><span class=\"c12 c19\">\u2500<\/span><\/p>\n<h1 id=\"h.xcuzgdm75smy\" class=\"c1\">PHP <span class=\"c10\">(Hypertext Preprocessor)<\/span><span class=\"c18\"> \u0e40\u0e1b\u0e47\u0e19\u0e20<\/span><span class=\"c10\">\u0e32\u0e29\u0e32 script \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e43\u0e0a\u0e49\u0e43\u0e19\u0e01\u0e32\u0e23\u0e1e\u0e31\u0e12\u0e19\u0e32 web<\/span><\/h1>\n<h1 id=\"h.pmazbh81wixz\" class=\"c1\">\u0e27\u0e31\u0e15\u0e16\u0e38\u0e1b\u0e23\u0e30\u0e2a\u0e07\u0e04\u0e4c<\/h1>\n<p class=\"c3 c14\">\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e08\u0e31\u0e14\u0e40\u0e15\u0e23\u0e35\u0e22\u0e21\u0e01\u0e32\u0e23\u0e17\u0e33\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\u0e02\u0e2d\u0e07\u0e28\u0e39\u0e19\u0e22\u0e4c\u0e04\u0e2d\u0e21\u0e1e\u0e34\u0e27\u0e40\u0e15\u0e2d\u0e23\u0e4c \u0e2b\u0e23\u0e37\u0e2d\u0e28\u0e39\u0e19\u0e22\u0e4c\u0e01\u0e32\u0e23\u0e40\u0e23\u0e35\u0e22\u0e19\u0e23\u0e39\u0e49 \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e43\u0e2b\u0e49\u0e1a\u0e23\u0e34\u0e01\u0e32\u0e23\u0e01\u0e31\u0e1a\u0e1a\u0e38\u0e04\u0e25\u0e32\u0e01\u0e23\u0e41\u0e25\u0e30\u0e19\u0e31\u0e01\u0e28\u0e36\u0e01\u0e29\u0e32 \u0e2b\u0e23\u0e37\u0e2d\u0e1c\u0e39\u0e49\u0e17\u0e35\u0e48\u0e2a\u0e19\u0e43\u0e08<\/p>\n<h1 id=\"h.3at9u9s4e0vp\" class=\"c1\">\u0e27\u0e34\u0e18\u0e35\u0e01\u0e32\u0e23\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07<\/h1>\n<ol class=\"c4 lst-kix_8ptmsowchg22-0 start\" start=\"1\">\n<li class=\"c0\">\u0e2d\u0e31\u0e1b\u0e40\u0e14\u0e17\u0e23\u0e30\u0e1a\u0e1a\u0e1b\u0e0f\u0e34\u0e1a\u0e31\u0e15\u0e34\u0e01\u0e32\u0e23 <strong>Ubuntu<\/strong><\/li>\n<\/ol>\n<pre id=\"h.nimyc4t9skqu\" class=\"c3 c9\"><span class=\"c6\">sudo apt-get update<\/span><\/pre>\n<ol class=\"c4 lst-kix_8ptmsowchg22-0\" start=\"2\">\n<li class=\"c0\">\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 <strong>PHP<\/strong> \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07<\/li>\n<\/ol>\n<pre id=\"h.6nnf36pgm31l\" class=\"c3 c9\"><span class=\"c6\">sudo apt-get install php7.0-mysql php7.0-curl php7.0-json<\/span><span class=\"c6\"> php7.0-cgi php7.0 libapache2-mod-php7.0<\/span><\/pre>\n<p class=\"c3\"><span style=\"overflow: hidden; display: inline-block; margin: 0.00px 0.00px; border: 0.00px solid #000000; transform: rotate(0.00rad) translateZ(0px); -webkit-transform: rotate(0.00rad) translateZ(0px); width: 415.50px; height: 249.98px;\"><img decoding=\"async\" style=\"width: 415.50px; height: 249.98px; margin-left: 0.00px; margin-top: 0.00px; transform: rotate(0.00rad) translateZ(0px); -webkit-transform: rotate(0.00rad) translateZ(0px);\" title=\"\" src=\"https:\/\/docs.google.com\/a\/eng.kmutnb.ac.th\/drawings\/image?id=sJ6CJeCkPMjndyjoSSCjQAg&amp;rev=19&amp;h=249&amp;w=415&amp;ac=1\" alt=\"\" \/><\/span><\/p>\n<ol class=\"c4 lst-kix_8ptmsowchg22-0\" start=\"3\">\n<li class=\"c0\">\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07\u0e40\u0e2a\u0e23\u0e47\u0e08\u0e43\u0e2b\u0e49\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e40\u0e27\u0e2d\u0e23\u0e4c\u0e0a\u0e31\u0e19\u0e02\u0e2d\u0e07 PHP<\/li>\n<\/ol>\n<h2 id=\"h.htded1o3cxzs\" class=\"c3 c9\"><span class=\"c6\">php -v<\/span><\/h2>\n<p class=\"c3\"><span style=\"overflow: hidden; display: inline-block; margin: 0.00px 0.00px; border: 0.00px solid #000000; transform: rotate(0.00rad) translateZ(0px); -webkit-transform: rotate(0.00rad) translateZ(0px); width: 445.45px; height: 82.87px;\"><img decoding=\"async\" style=\"width: 445.45px; height: 82.87px; margin-left: 0.00px; margin-top: 0.00px; transform: rotate(0.00rad) translateZ(0px); -webkit-transform: rotate(0.00rad) translateZ(0px);\" title=\"\" src=\"https:\/\/docs.google.com\/a\/eng.kmutnb.ac.th\/drawings\/image?id=s0ZaIDXSRtBVhGDCKs09hiw&amp;rev=19&amp;h=82&amp;w=445&amp;ac=1\" alt=\"\" \/><\/span><\/p>\n<ol class=\"c4 lst-kix_8ptmsowchg22-0\" start=\"4\">\n<li class=\"c0\">\u0e17\u0e14\u0e2a\u0e2d\u0e1a PHP \u0e42\u0e14\u0e22\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07 File testphp.php \u0e44\u0e27\u0e49\u0e43\u0e19\u0e44\u0e14\u0e40\u0e23\u0e47\u0e04\u0e17\u0e2d\u0e23\u0e35\u0e48 \/var\/www\/html\/<\/li>\n<\/ol>\n<pre class=\"c3\"><span class=\"c5\">sudo nano \/var\/www\/html\/testphp.php<\/span><\/pre>\n<ol class=\"c4 lst-kix_8ptmsowchg22-0\" start=\"5\">\n<li class=\"c0\">\u0e43\u0e2a\u0e48 code \u0e25\u0e07\u0e43\u0e19\u0e44\u0e1f\u0e25\u0e4c\u0e17\u0e35\u0e48\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e02\u0e36\u0e49\u0e19<\/li>\n<\/ol>\n<pre id=\"h.gbr1z4v2n5rd\" class=\"c3 c9\"><span class=\"c6\">&lt;?php\r\n phpinfo();\r\n ?&gt;<\/span><\/pre>\n<ol class=\"c4 lst-kix_8ptmsowchg22-0\" start=\"6\">\n<li class=\"c0\">Restart Apache2<\/li>\n<\/ol>\n<pre id=\"h.w0for0ww96kr\" class=\"c3 c9\"><span class=\"c6\">sudo systemctl restart apache2<\/span><\/pre>\n<ol class=\"c4 lst-kix_8ptmsowchg22-0\" start=\"7\">\n<li class=\"c0\">\u0e17\u0e14\u0e2a\u0e2d\u0e1a\u0e2b\u0e19\u0e49\u0e32\u0e40\u0e27\u0e47\u0e1a\u0e42\u0e14\u0e22\u0e1e\u0e34\u0e21\u0e1e\u0e4c URL \u0e44\u0e1b\u0e17\u0e35\u0e48 http:\/\/server-ip-address\/testphp.php<\/li>\n<\/ol>\n<ol class=\"c4 lst-kix_8ptmsowchg22-0\" start=\"8\">\n<li class=\"c0\">\u0e2b\u0e32\u0e01\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 modules \u0e02\u0e2d\u0e07 PHP \u0e17\u0e31\u0e49\u0e07\u0e2b\u0e21\u0e14\u0e43\u0e2b\u0e49\u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07<\/li>\n<\/ol>\n<pre id=\"h.99gh6h454ei4\" class=\"c3 c9\"><span class=\"c6\">sudo apt-get install php*<\/span><\/pre>\n<p class=\"c3\">\u0e41\u0e25\u0e30 Restart Apache \u0e2d\u0e35\u0e01\u0e04\u0e23\u0e31\u0e49\u0e07<\/p>\n<pre id=\"h.rxaugexnn15c\" class=\"c3 c9\"><span class=\"c6\">sudo systemctl restart apache2<\/span><\/pre>\n<div>\n<hr \/>\n<p class=\"c2\">\n<\/div>\n<\/div>\n<div id=\"footer\">Published by <a title=\"Learn more about Google Drive\" href=\"\/\/docs.google.com\/a\/eng.kmutnb.ac.th\/\" target=\"_blank\">Google Drive<\/a><span class=\"dash\">\u2013<\/span><a href=\"\/\/docs.google.com\/a\/eng.kmutnb.ac.th\/abuse?id=1VJxRD2O8TaHljXNLxDIomBxUJF5Toox0IMbQu1vIY4Y\">Report Abuse<\/a><span class=\"dash\">\u2013<\/span>Updated automatically every 5 minutes<\/div>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tuesday, 21.06.2016 \u2500 PHP (Hypertext Preprocessor) \u0e40\u0e1b\u0e47\u0e19\u0e20\u0e32\u0e29\u0e32 script \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e43\u0e0a\u0e49\u0e43\u0e19\u0e01\u0e32\u0e23\u0e1e\u0e31\u0e12\u0e19\u0e32 web \u0e27\u0e31\u0e15\u0e16\u0e38\u0e1b\u0e23\u0e30\u0e2a\u0e07\u0e04\u0e4c \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e08\u0e31\u0e14\u0e40\u0e15\u0e23\u0e35\u0e22\u0e21\u0e01\u0e32\u0e23\u0e17\u0e33\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\u0e02\u0e2d\u0e07\u0e28\u0e39\u0e19\u0e22\u0e4c\u0e04\u0e2d\u0e21\u0e1e\u0e34\u0e27\u0e40\u0e15\u0e2d\u0e23\u0e4c \u0e2b\u0e23\u0e37\u0e2d\u0e28\u0e39\u0e19\u0e22\u0e4c\u0e01\u0e32\u0e23\u0e40\u0e23\u0e35\u0e22\u0e19\u0e23\u0e39\u0e49 \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e43\u0e2b\u0e49\u0e1a\u0e23\u0e34\u0e01\u0e32\u0e23\u0e01\u0e31\u0e1a\u0e1a\u0e38\u0e04\u0e25\u0e32\u0e01\u0e23\u0e41\u0e25\u0e30\u0e19\u0e31\u0e01\u0e28\u0e36\u0e01\u0e29\u0e32 \u0e2b\u0e23\u0e37\u0e2d\u0e1c\u0e39\u0e49\u0e17\u0e35\u0e48\u0e2a\u0e19\u0e43\u0e08 \u0e27\u0e34\u0e18\u0e35\u0e01\u0e32\u0e23\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 \u0e2d\u0e31\u0e1b\u0e40\u0e14\u0e17\u0e23\u0e30\u0e1a\u0e1a\u0e1b\u0e0f\u0e34\u0e1a\u0e31\u0e15\u0e34\u0e01\u0e32\u0e23 Ubuntu sudo apt-get update \u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 PHP \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 sudo apt-get install php7.0-mysql php7.0-curl php7.0-json php7.0-cgi php7.0 libapache2-mod-php7.0 \u0e40\u0e21\u0e37\u0e48\u0e2d\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07\u0e40\u0e2a\u0e23\u0e47\u0e08\u0e43\u0e2b\u0e49\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e40\u0e27\u0e2d\u0e23\u0e4c\u0e0a\u0e31\u0e19\u0e02\u0e2d\u0e07 PHP php -v \u0e17\u0e14\u0e2a\u0e2d\u0e1a PHP \u0e42\u0e14\u0e22\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07 &hellip; <a href=\"https:\/\/www.ecc.eng.kmutnb.ac.th\/index.php\/2016\/07\/21\/basic-tutorial-how-to-install-php7\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"gallery","meta":{"footnotes":""},"categories":[1],"tags":[16,12,14],"_links":{"self":[{"href":"https:\/\/www.ecc.eng.kmutnb.ac.th\/index.php\/wp-json\/wp\/v2\/posts\/345"}],"collection":[{"href":"https:\/\/www.ecc.eng.kmutnb.ac.th\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ecc.eng.kmutnb.ac.th\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ecc.eng.kmutnb.ac.th\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ecc.eng.kmutnb.ac.th\/index.php\/wp-json\/wp\/v2\/comments?post=345"}],"version-history":[{"count":8,"href":"https:\/\/www.ecc.eng.kmutnb.ac.th\/index.php\/wp-json\/wp\/v2\/posts\/345\/revisions"}],"predecessor-version":[{"id":1187,"href":"https:\/\/www.ecc.eng.kmutnb.ac.th\/index.php\/wp-json\/wp\/v2\/posts\/345\/revisions\/1187"}],"wp:attachment":[{"href":"https:\/\/www.ecc.eng.kmutnb.ac.th\/index.php\/wp-json\/wp\/v2\/media?parent=345"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ecc.eng.kmutnb.ac.th\/index.php\/wp-json\/wp\/v2\/categories?post=345"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ecc.eng.kmutnb.ac.th\/index.php\/wp-json\/wp\/v2\/tags?post=345"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}