{"id":346,"date":"2012-07-11T10:09:41","date_gmt":"2012-07-11T03:09:41","guid":{"rendered":"http:\/\/pridio.com\/?p=346"},"modified":"2012-08-23T16:36:40","modified_gmt":"2012-08-23T09:36:40","slug":"huong-dan-cai-dat-appserv","status":"publish","type":"post","link":"https:\/\/pridio.com\/en\/kien-thuc\/website-marketing\/huong-dan-cai-dat-appserv\/","title":{"rendered":"H\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t AppServ"},"content":{"rendered":"<h2>Gi\u1edbi thi\u1ec7u v\u1ec1 Appserv<\/h2>\n<p>AppServ l\u00e0 m\u1ed9t g\u00f3i \u0111\u1ea7y \u0111\u1ee7 t\u00ednh n\u0103ng c\u1ee7a Apache, MySQL, PHP, phpMyAdmin. \u0110\u01b0\u1ee3c l\u1ea5y \u00fd t\u01b0\u1edfng c\u1ee7a Phanupong Panyadee (ng\u01b0\u1eddi s\u00e1ng l\u1eadp trang AppServ &#8211; t\u1ea1i Th\u00e1i Lan) sau khi th\u1ea5y vi\u1ec7c ph\u1ee9c t\u1ea1p c\u1ee7a vi\u1ec7c qu\u1ea3n tr\u1ecb t\u1eebng ph\u1ea7n m\u1ec1m l\u00e0m cho m\u1ecdi ng\u01b0\u1eddi ch\u00f3ng m\u1eb7t.\u00a0Vi\u1ec7c c\u00e0i \u0111\u1eb7t AppServ r\u1ea5t \u0111\u01a1n gi\u1ea3n ch\u1ec9 m\u1ea5t th\u1eddi gian kho\u1ea3ng 1 ph\u00fat. Trong m\u1ed9t g\u00f3i Appserv bao g\u1ed3m:<\/p>\n<p>&#8211; Apache<br \/>\n&#8211; PHP<br \/>\n&#8211; MySQL<br \/>\n&#8211; PhpMyAdmin<\/p>\n<p>M\u1ee5c ti\u00eau c\u1ee7a AppServ sau khi c\u00e0i \u0111\u1eb7t, b\u1ea1n c\u00f3 th\u1ec3 thi\u1ebft l\u1eadp m\u00e1y ch\u1ee7 web, m\u00e1y ch\u1ee7 c\u01a1 s\u1edf d\u1eef li\u1ec7u trong 1 ph\u00fat. AppServ ch\u1ea1y t\u1ed1t nh\u1ea5t tr\u00ean h\u1ec7 \u0111i\u1ec1u h\u00e0nh Linux\/Unix do h\u1ec7 \u0111i\u1ec1u h\u00e0nh Windows l\u00e0 kh\u00f4ng \u0111\u1ee7 t\u1ed1t cho t\u1ea3i n\u1eb7ng server. Windows web ho\u1eb7c c\u01a1 s\u1edf d\u1eef li\u1ec7u h\u1ec7 \u0111i\u1ec1u h\u00e0nh ki\u1ebfn tr\u00fac s\u1eed d\u1ee5ng b\u1ed9 nh\u1edb nhi\u1ec1u h\u01a1n l\u00e0 h\u1ec7 \u0111i\u1ec1u h\u00e0nh Linux\/Unix. Tuy nhi\u00ean \u0111\u1ec3 l\u00e0m vi\u1ec7c b\u00ecnh th\u01b0\u1eddng kh\u00f4ng c\u1ea7n t\u1ed1c \u0111\u1ed9 qu\u00e1 cao b\u1ea1n c\u00f3 th\u1ec3 c\u00e0i n\u00f3 tr\u00ean Windows.<\/p>\n<p>Appserv c\u00f3 nhi\u1ec1u phi\u00ean b\u1ea3n, b\u1ea3n m\u1edbi nh\u1ea5t l\u00e0 2.6.0. Tuy nhi\u00ean kh\u00f4ng nh\u1ea5t thi\u1ebft b\u1ea1n ph\u1ea3i update m\u1ed7i khi c\u00f3 m\u1ed9t phi\u00ean b\u1ea3n m\u1edbi m\u00e0 n\u00ean t\u00ecm phi\u00ean b\u1ea3n n\u00e0o ph\u00f9 h\u1ee3p v\u1edbi s\u1ef1 l\u00e0m vi\u1ec7c c\u1ee7a m\u00ecnh. H\u00f4m nay, m\u00ecnh s\u1ebd h\u01b0\u1edbng d\u1eabn c\u00e1c b\u1ea1n c\u00e0i b\u1ea3n AppServ 2.5.10 l\u00ean Windows.<\/p>\n<h2>C\u00e0i \u0111\u1eb7t AppServ l\u00ean localhost<\/h2>\n<p>Tr\u01b0\u1edbc h\u1ebft b\u1ea1n v\u00e0o trang ch\u1ee7 c\u1ee7a AppServ \u0111\u1ec3 download AppServ. C\u00e1c b\u1ea1n c\u00f3 th\u1ec3 truy c\u1eadp v\u00e0 download\u00a0<span style=\"text-decoration: underline\"><strong><a href=\"http:\/\/www.appservnetwork.com\/\" rel=\"nofollow\" target=\"_blank\">t\u1ea1i \u0111\u00e2y<\/a><\/strong><\/span><strong>.\u00a0<\/strong>Sau \u0111\u00e2y l\u00e0 t\u1eebng b\u01b0\u1edbc c\u00e0i \u0111\u1eb7t AppServ<\/p>\n<p style=\"text-align: left\">1. K\u00edch ho\u1ea1t file <strong>appserv-win32-2.5.10.exe<\/strong> \u0111\u1ec3 b\u1eaft \u0111\u1ea7u c\u00e0i \u0111\u1eb7t:<\/p>\n<p style=\"text-align: left\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-410\" src=\"http:\/\/pridio.com\/wp-content\/uploads\/2012\/07\/setup.jpg\" alt=\"setup\" width=\"514\" height=\"399\" \/><\/p>\n<p style=\"text-align: left\">2. Ch\u1ecdn <strong>Next<\/strong>. \u0110\u1ec3 ti\u1ebfp t\u1ee5c b\u01b0\u1edbc ti\u1ebfp theo b\u1ea1n ph\u1ea3i \u0111\u1ed3ng \u00fd v\u1edbi \u0110i\u1ec1u l\u1ec7 s\u1eed d\u1ee5ng AppServ, nh\u00e1y v\u00e0o <strong>I Agree<\/strong> \u0111\u1ec3 ti\u1ebfp t\u1ee5c:<\/p>\n<p style=\"text-align: left\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-413\" src=\"http:\/\/pridio.com\/wp-content\/uploads\/2012\/07\/license-agreement.jpg\" alt=\"license agreement\" width=\"514\" height=\"398\" \/><\/p>\n<p style=\"text-align: left\">3. Ch\u1ecdn th\u01b0 m\u1ee5c c\u00e0i \u0111\u1eb7t. Th\u01b0 m\u1ee5c c\u00e0i \u0111\u1eb7t AppServ \u0111\u01b0\u1ee3c m\u1eb7c \u0111\u1ecbnh l\u00e0 \u1ed5 C. N\u1ebfu c\u1ea7n chuy\u1ec3n b\u1ea1n c\u00f3 th\u1ec3 nh\u00e1y v\u00e0o <strong>Browse&#8230;<\/strong> \u0111\u1ec3 thay \u0111\u1ed5i th\u01b0 m\u1ee5c c\u00e0i \u0111\u1eb7t. B\u1ea1n c\u00f3 th\u1ec3 y\u00ean t\u00e2m c\u00e0i v\u00e0o \u1ed5 C v\u00ec AppServ kh\u00f4ng b\u1ecb x\u00f3a khi n\u00e2ng c\u1ea5p hay c\u00e0i l\u1ea1i Windows. Ch\u1ecdn <strong>Next<\/strong> \u0111\u1ec3 ti\u1ebfp t\u1ee5c.<\/p>\n<p style=\"text-align: left\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-416\" src=\"http:\/\/pridio.com\/wp-content\/uploads\/2012\/07\/choose-install-location1.jpg\" alt=\"choose install location\" width=\"511\" height=\"397\" \/><\/p>\n<p style=\"text-align: left\">4. Ch\u1ecdn c\u00e1c ph\u1ea7n m\u1ec1m \u0111\u1ec3 c\u00e0i \u0111\u1eb7t. N\u1ebfu b\u1ea1n ch\u1ec9 c\u1ea7n c\u00e0i m\u1ed9t trong s\u1ed1 4 ph\u1ea7n m\u1ec1m c\u1ee7a AppServ th\u00ec b\u1ecf d\u1ea5u tick v\u00e0o c\u00e1c ph\u1ea7n kh\u00f4ng c\u00e0i \u0111\u1eb7t, n\u1ebfu c\u00e0i l\u1ea7n \u0111\u1ea7u th\u00ec t\u1ed1t nh\u1ea5t b\u1ea1n n\u00ean gi\u1eef nguy\u00ean. Ch\u1ecdn <strong>Next<\/strong> \u0111\u1ec3 ti\u1ebfp t\u1ee5c.<\/p>\n<p style=\"text-align: left\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/pridio.com\/wp-content\/uploads\/2012\/07\/Select-components.jpg\" alt=\"Select components\" width=\"511\" height=\"398\" \/><\/p>\n<p>5. \u0110\u1eb7t c\u1ea5u h\u00ecnh cho Apache:<\/p>\n<p>&#8211; <strong>Server Name:<\/strong> T\u00ean c\u1ee7a server s\u1ebd ch\u1ea1y Apache, b\u1ea1n \u0111i\u1ec1n localhost<\/p>\n<p>&#8211;\u00a0<strong>Admin Email:<\/strong> th\u00f4ng tin c\u1ee7a host s\u1ebd g\u1edfi t\u1edbi mail n\u00e0y, n\u00f3 c\u0169ng kh\u00f4ng quan tr\u1ecdng, b\u1ea1n c\u00f3 th\u1ec3 \u0111\u00e1nh mail b\u1ea5t k\u1ef3 ho\u1eb7c b\u1ecf qua<\/p>\n<p style=\"text-align: left\">&#8211;\u00a0<strong>HTTP Port:<\/strong> th\u00f4ng s\u1ed1 n\u00e0y \u0111\u01b0\u1ee3c m\u1eb7c \u0111\u1ecbnh l\u00e0 80, khi HTTP Port l\u00e0 80 th\u00ec b\u1ea1n kh\u00f4ng c\u1ea7n ph\u1ea3i khai b\u00e1o n\u00f3 theo sau server<\/p>\n<p style=\"text-align: left\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/pridio.com\/wp-content\/uploads\/2012\/07\/apache-http-server-information.jpg\" alt=\"apache http server information\" width=\"512\" height=\"399\" \/><\/p>\n<p>6. \u0110\u1eb7t c\u1ea5u h\u00ecnh MySQL:<\/p>\n<p>&#8211; <strong>Root password:<\/strong> \u0110\u1eb7t m\u1eadt kh\u1ea9u cho MySQL Database, m\u1eadt kh\u1ea9u n\u00e0y do b\u1ea1n t\u1ef1 \u0111\u1eb7t, <strong>username<\/strong> \u0111\u01b0\u1ee3c m\u1eb7c \u0111\u1ecbnh l\u00e0 <strong>root<\/strong><\/p>\n<p>&#8211;<strong> Charecter Sets:<\/strong> Ng\u00f4n ng\u1eef cho Database, b\u1ea1n ch\u1ecdn <strong>UTF-8 Unicode<\/strong> \u0111\u1ec3 c\u00f3 th\u1ec3 \u0111\u00e1nh \u0111\u01b0\u1ee3c ti\u1ebfng Vi\u1ec7t v\u1edbi Unikey<\/p>\n<p>&#8211; <strong>Old Password:<\/strong> Nh\u00e1y v\u00e0o \u0111\u00e2y n\u1ebfu b\u1ea1n c\u00f3 l\u1ed7i khi l\u1eadp tr\u00ecnh v\u1edbi phi\u00ean b\u1ea3n c\u0169 c\u1ee7a PHP ho\u1eb7c l\u1ed7i\u00a0<span style=\"color: #cc0000\">Client does not support authentication protocol requested by server;\u00a0<\/span><span style=\"color: #cc0000\">consider upgrading MySQL client<\/span><\/p>\n<p style=\"text-align: left\">&#8211; <strong>Enable InnoDB:<\/strong> Nh\u00e1y v\u00e0o \u0111\u00e2y n\u1ebfu b\u1ea1n s\u1eed d\u1ee5ng InnoDB, t\u1ed1t nh\u1ea5t b\u1ea1n n\u00ean \u0111\u1ec3 tr\u1ed1ng.<\/p>\n<p style=\"text-align: left\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-418\" src=\"http:\/\/pridio.com\/wp-content\/uploads\/2012\/07\/mysql-server-configuration.jpg\" alt=\"mysql server configuration\" width=\"513\" height=\"397\" \/><\/p>\n<p style=\"text-align: left\">7. Th\u1eddi gian c\u00e0i \u0111\u1eb7t AppServ r\u1ea5t nhanh, ch\u1ec9 kho\u1ea3ng 1 ph\u00fat l\u00e0 ho\u00e0n th\u00e0nh<\/p>\n<p style=\"text-align: left\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-419\" src=\"http:\/\/pridio.com\/wp-content\/uploads\/2012\/07\/Installing.jpg\" alt=\"Installing\" width=\"512\" height=\"397\" \/><\/p>\n<p style=\"text-align: left\">8. <strong>Ho\u00e0n th\u00e0nh c\u00e0i \u0111\u1eb7t:<\/strong> B\u1ea1n c\u00f3 th\u1ec3 d\u00f9ng lu\u00f4n khi nh\u00e1y <strong>Finish<\/strong><\/p>\n<p style=\"text-align: left\"><strong><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-420\" src=\"http:\/\/pridio.com\/wp-content\/uploads\/2012\/07\/completing-setup.jpg\" alt=\"completing setup\" width=\"512\" height=\"400\" \/><\/strong><\/p>\n<h2><strong>M\u1ed9t s\u1ed1 l\u01b0u \u00fd sau khi c\u00e0i \u0111\u1eb7t<\/strong><\/h2>\n<p style=\"text-align: left\">Sau khi c\u00e0i \u0111\u1eb7t b\u1ea1n c\u00f3 th\u1ec3 check xem vi\u1ec7c c\u00e0i \u0111\u1eb7t c\u1ee7a m\u00ecnh \u0111\u00e3 ho\u00e0n t\u1ea5t ch\u01b0a b\u1eb1ng c\u00e1ch b\u1eadt tr\u00ecnh duy\u1ec7t web v\u00e0 g\u00f5 http:\/\/localhost\/, khi \u0111\u00e3 hi\u1ec7n ra m\u00e0n h\u00ecnh nh\u01b0 th\u1ebf n\u00e0y l\u00e0 vi\u1ec7c c\u00e0i \u0111\u1eb7t \u0111\u00e3 th\u00e0nh c\u00f4ng.<\/p>\n<p style=\"text-align: left\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-425\" src=\"http:\/\/pridio.com\/wp-content\/uploads\/2012\/07\/localhost.jpg\" alt=\"localhost\" width=\"565\" height=\"477\" \/><\/p>\n<p style=\"text-align: left\">\u0110\u1ec3 l\u00e0m vi\u1ec7c v\u1edbi <strong>phpMyAdmin<\/strong>, b\u1ea1n g\u00f5 l\u00ean tr\u00ecnh duy\u1ec7t http:\/\/localhost\/phpMyAdmin\/ ho\u1eb7c \u1ea5n tr\u1ef1c ti\u1ebfp tr\u00ean trang http:\/\/localhost\/. \u0110\u0103ng nh\u1eadp v\u1edbi username m\u1eb7c \u0111\u1ecbnh l\u00e0 root v\u00e0 m\u1eadt kh\u1ea9u l\u00e0 m\u1eadt kh\u1ea9u b\u1ea1n \u0111\u00e3 khai b\u00e1o khi n\u00e3y r\u1ed3i nh\u00e1y <strong>Log In<\/strong><\/p>\n<p style=\"text-align: left\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-423\" src=\"http:\/\/pridio.com\/wp-content\/uploads\/2012\/07\/root.jpg\" alt=\"root\" width=\"359\" height=\"224\" \/><\/p>\n<p style=\"text-align: left\">N\u1ebfu khi \u0111\u00e1nh localhost m\u00e0 b\u00e1o l\u1ed7i kh\u00f4ng t\u00ecm th\u1ea5y trang, th\u00ec \u0111\u00f3 l\u00e0 do Apache ch\u01b0a \u0111\u01b0\u1ee3c kh\u1edfi \u0111\u1ed9ng. B\u1ea1n c\u00f3 th\u1ec3 v\u00e0o Start &#8211;&gt; g\u00f5 trong \u00f4 t\u00ecm ki\u1ebfm &#8220;Services&#8221; \u00f9i \u1ea5n Enter. T\u00ecm <strong>Apache2.2<\/strong> ch\u1ecdn <strong>Start.\u00a0<\/strong>N\u1ebfu kh\u00f4ng th\u1ec3 ch\u1ea1y Apache th\u00ec t\u1ee9c l\u00e0 c\u00f3 \u1ee9ng d\u1ee5ng \u0111ang ch\u1ea1y tr\u00ean HTTP Port 80 (v\u00ed d\u1ee5 Skype), b\u1ea1n n\u00ean t\u1eaft h\u1ebft c\u00e1c \u1ee9ng d\u1ee5ng tr\u01b0\u1edbc khi ch\u1ea1y Apache, sau khi kh\u1edfi \u0111\u1ed9ng xong th\u00ec kh\u1edfi \u0111\u1ed9ng l\u1ea1i c\u00e1c \u1ee9ng d\u1ee5ng kh\u00e1c c\u0169ng \u0111\u01b0\u1ee3c. Sau n\u00e0y khi c\u1ea7n kh\u1edfi \u0111\u1ed9ng l\u1ea1i Apache b\u1ea1n c\u0169ng c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng ph\u01b0\u01a1ng ph\u00e1p n\u00e0y<\/p>\n<p style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter  wp-image-421\" src=\"http:\/\/pridio.com\/wp-content\/uploads\/2012\/07\/apache.jpg\" alt=\"apache\" width=\"578\" height=\"424\" \/><\/p>\n<p>Th\u00eam m\u1ed9t \u0111i\u1ec1u n\u1eefa l\u00e0 b\u1ea3n m\u1edbi nh\u1ea5t AppServ6.0 c\u00f3 m\u1ed9t s\u1ed1 l\u1ed7i m\u00e0 khi c\u00e0i \u0111\u1eb7t xong v\u00e0o \u0111\u01b0\u1ee3c localhost nh\u01b0ng kh\u00f4ng th\u1ec3 truy c\u1eadp phpMyAdmin, b\u1ea1n c\u00f3 th\u1ec3 kh\u1eafc ph\u1ee5c b\u1eb1ng c\u00e1ch nh\u01b0 sau:<\/p>\n<p>C\u00e1c b\u1ea1n h\u00e3y v\u00e0o th\u01b0 m\u1ee5c c\u00e0i \u0111\u1eb7t v\u00e0 m\u1edf file theo nh\u01b0 \u0111\u01b0\u1eddng d\u1eabn phpmyadmin\/config.inc.php<br \/>\nT\u00ecm d\u00f2ng :<br \/>\n<code>$cfg['Servers'][$i]['host']= 'localhost';<\/code><br \/>\nS\u1eeda n\u00f3 l\u1ea1i th\u00e0nh :<br \/>\n<code>cfg['Servers'][$i]['host'] = '127.0.0.1';<\/code><br \/>\nSau \u0111\u00f3 l\u00e0 c\u00e1c b\u1ea1n c\u00f3 th\u1ec3 truy c\u1eadp v\u00e0o phpMyAdmin b\u00ecnh th\u01b0\u1eddng.<\/p>\n<p>Tr\u00ean \u0111\u00e2y l\u00e0 c\u00e1ch c\u00e0i \u0111\u1eb7t \u0111\u1ec3 c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng v\u00e0 l\u00e0m vi\u1ec7c v\u1edbi AppServ, ch\u00fac c\u00e1c b\u1ea1n th\u00e0nh c\u00f4ng.<\/p>\n<p style=\"text-align: right\"><em>B\u1ea3n quy\u1ec1n b\u00e0i vi\u1ebft thu\u1ed9c Pridio.com<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Gi\u1edbi thi\u1ec7u v\u1ec1 Appserv AppServ l\u00e0 m\u1ed9t g\u00f3i \u0111\u1ea7y \u0111\u1ee7 t\u00ednh n\u0103ng c\u1ee7a Apache, MySQL, PHP, phpMyAdmin. \u0110\u01b0\u1ee3c l\u1ea5y \u00fd t\u01b0\u1edfng c\u1ee7a Phanupong Panyadee (ng\u01b0\u1eddi s\u00e1ng l\u1eadp trang AppServ &#8211; t\u1ea1i Th\u00e1i Lan) sau khi th\u1ea5y vi\u1ec7c ph\u1ee9c t\u1ea1p c\u1ee7a&#8230;<\/p>\n","protected":false},"author":16,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"tags":[21,22,23,20],"class_list":["post-346","post","type-post","status-publish","format-standard","hentry","category-website-marketing","tag-appserv","tag-cai-appserv","tag-cai-localhost","tag-localhost"],"acf":[],"_links":{"self":[{"href":"https:\/\/pridio.com\/en\/wp-json\/wp\/v2\/posts\/346","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pridio.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pridio.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pridio.com\/en\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/pridio.com\/en\/wp-json\/wp\/v2\/comments?post=346"}],"version-history":[{"count":0,"href":"https:\/\/pridio.com\/en\/wp-json\/wp\/v2\/posts\/346\/revisions"}],"wp:attachment":[{"href":"https:\/\/pridio.com\/en\/wp-json\/wp\/v2\/media?parent=346"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pridio.com\/en\/wp-json\/wp\/v2\/tags?post=346"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}