<!DOCTYPE html>
	<html lang="vi" xmlns="http://www.w3.org/1999/xhtml" prefix="og: http://ogp.me/ns#">
	<head>
<title>Xampp là gì? Cách cài đặt localhost trên máy tính bằng Xampp</title>
<meta name="description" content="Xampp là gì? Cách cài đặt localhost trên máy tính bằng Xampp - Savefile - Tin tức -...">
<meta name="author" content="Thế Anh Group">
<meta name="copyright" content="Thế Anh Group">
<meta name="robots" content="index, archive, follow, noodp">
<meta name="googlebot" content="index,archive,follow,noodp">
<meta name="msnbot" content="all,index,follow">
<meta name="geo.region" content="VN-SG">
<meta name="geo.placename" content="Ho Chi Minh">
<meta name="geo.position" content="10.833111;106.641224">
<meta name="generator" content="NukeViet v4.0">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#00b456">
<meta name="msapplication-navbutton-color" content="#00b456">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="#00b456">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta property="og:title" content="Xampp là gì? Cách cài đặt localhost trên máy tính bằng Xampp">
<meta property="og:type" content="website">
<meta property="og:description" content="Savefile - Tin tức - https&#x3A;&#x002F;&#x002F;theanhgroup.com&#x002F;tin-tuc&#x002F;savefile&#x002F;thu-thuat-may-tinh&#x002F;xampp-la-gi-cach-cai-dat-localhost-tren-may-tinh-bang-xampp-76.html">
<meta property="og:site_name" content="Thế Anh Group - Hosting - Domain - VPS">
<meta property="og:image" content="https://theanhgroup.com/uploads/bnn-tag.jpg">
<meta property="og:url" content="https://theanhgroup.com/tin-tuc/thu-thuat-may-tinh/xampp-la-gi-cach-cai-dat-localhost-tren-may-tinh-bang-xampp-76.html">
<link rel="shortcut icon" href="https://theanhgroup.com/favicon.ico">
<link rel="preload" as="script" href="https://theanhgroup.com/assets/js/jquery/jquery.min.js">
<link rel="preload" as="script" href="https://theanhgroup.com/assets/js/language/vi.js">
<link rel="preload" as="script" href="https://theanhgroup.com/assets/js/global.js">
<link rel="preload" as="script" href="https://theanhgroup.com/themes/theanhgroup/js/news.js">
<link rel="preload" as="script" href="https://theanhgroup.com/themes/theanhgroup/js/main.js">
<link rel="preload" as="script" href="https://theanhgroup.com/OneSignalSDKWorker.js">
<link rel="preload" as="script" href="https://theanhgroup.com/OneSignalSDKUpdaterWorker.js">
<link rel="preload" as="script" href="https://cdn.onesignal.com/sdks/OneSignalSDK.js">
<link rel="preload" as="script" href="https://theanhgroup.com/themes/theanhgroup/js/intersection-observer.js">
<link rel="preload" as="script" href="https://theanhgroup.com/themes/theanhgroup/js/lazyload.min.js">
<link rel="preload" as="script" href="https://theanhgroup.com/themes/theanhgroup/js/bootstrap.min.js">
<link rel="stylesheet" href="https://theanhgroup.com/stylesheet/css/all.css">
<style>
	body{background: #fff;}
</style>
<script data-show="inline">(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-101091287-1', '.theanhgroup.com');
ga('send', 'pageview');
</script>
</head>
	<body >
<div id="print">
	<div id="hd_print">
		<h2 class="pull-left">Thế Anh Group - Hosting - Domain - VPS</h2>
		<p class="pull-right"><a title="Thế Anh Group - Hosting - Domain - VPS" href="https://theanhgroup.com/">https://theanhgroup.com</a></p>
	</div>
	<div class="clear"></div>
	<hr />
	<div id="content">
		<h1>Xampp là gì? Cách cài đặt localhost trên máy tính bằng Xampp</h1>
		<ul class="list-inline">
			<li>Thứ ba - 21/05/2019 23:06</li>
			<li class="hidden-print txtrequired"><em class="fa fa-print">&nbsp;</em><a title="In ra" href="javascript:;" onclick="window.print()">In ra</a></li>
			<li class="hidden-print txtrequired"><em class="fa fa-power-off">&nbsp;</em><a title="Đóng cửa sổ này" href="javascript:;" onclick="window.close()">Đóng cửa sổ này</a></li>
		</ul>
		<div class="clear"></div>
		<div id="hometext">
			Localhost một trong những thuật ngữ vô cùng quan trọng khi bạn tiếp cận với lập trình website. Để có thể cài đặt Localhost lên máy tính thì bạn cần phải sử dụng xampp hay appserv/network. Vậy xampp là gì? cách cài đặt Localhost trên máy tính bằng xampp? Mời các bạn cùng tham khảo tại bà viết dưới đây của theanhgroup.com nhé.
		</div>
		<div id="bodytext" class="clearfix">
			<h3>Khái niệm của Xampp</h3>

<p>Xampp chính là chương trình tạo ra máy chủ của website, được viết tắt của X + Apache + MySQL + PHP + Perl bởi nó được tích hợp sẵn ứng dụng Apache, MySQL, PHP, FTP server, mail server.</p>

<p>Trong đó, X còn được thể hiện sự đa dạng của nền tảng của Xampp bởi nó có thể dùng được trên 4 hệ điều hành khác nhau như: Windows, MAC, Linux và Solaris.</p>

<p>Xampp là phần mềm cho phép người dùng giả lập môi trường server hosting ngay trên chính máy tính của bạn, khi đó bạn có thể chạy demo website của bạn mà không cần phải mua hosting hay vps. Chính vì vậy, Xampp được sử dụng cho các quá trình học tập hay giảng dạy và thực hành website.</p>

<p>Hiện nay, các loại source được phép sử dụng Xampp như: Joomla, WordPress hay PHP, Nuke và opencat.</p>

<h3>Hướng Dẫn Cài Đặt Localhost Trên Máy Tính Với Xampp</h3>

<h4>1. Lưu ý khi cài đặt localhost</h4>

<p>Trước khi bạn muốn cài đặt localhost trên máy tính với xampp thì bạn nên kiểm tra xem PC của bạn đã cài đặt các ứng dụng hay phần mềm có liên quan đến việc làm localhost như Php hay mysql hay không, nếu có thì bạn nên xoá hết bạn tuyệt đối không nên cài XAMPP trên Windows Server đã được cài IIS</p>

<h4>2. Các bước cài đặt Locallhost trên PC với xampp</h4>

<p>Đường link tải Xampp: https://www.apachefriends.org/download.html<br  />
Bạn vào đường link trên và chọn phiên bản xampp phù hợp với hệ điều hành của PC mà bạn đang sử dụng. Chúng tôi khuyên bạn nên chọn phiên bản PHP 5.4.31.</p>

<div style="text-align:center">
<figure class="image" style="display:inline-block"><img alt="cai dat localhost tren pc bang xampp1 768x412" height="322" src="https://theanhgroup.com/uploads/tin-tuc/thu-thuat-may-tinh/cai-dat-localhost-tren-pc-bang-xampp1-768x412.png" width="600" />
<figcaption>Chọn phiên bản XAMPP tải về máy</figcaption>
</figure>
</div>

<blockquote>
<p>Lưu ý rằng: Xampp chỉ có thể hoạt động trên hệ điều hành 32 bit, nhưng ở 64 bit vẫn hoạt động bình thường.</p>
</blockquote>

<p>Sau khi chọn xong phiên bản đó và cài đặt về xong, sao đó chọn ” Next “.</p>

<div style="text-align:center">
<figure class="image" style="display:inline-block"><img alt="cai dat localhost tren pc bang xampp2" height="506" src="https://theanhgroup.com/uploads/tin-tuc/thu-thuat-may-tinh/cai-dat-localhost-tren-pc-bang-xampp2.jpg" width="600" />
<figcaption>Nhấn Next bắt đầu cài đặt XAMPP</figcaption>
</figure>
</div>

<p>Ở mục chọn đường dẫn, bạn hãy chọn đường dẫn cần lưu cài đặt Xampp, ở phần này, bạn phải nhỡ kỹ đường dẫn đó, bởi khi cài đặt lên website, chúng ta sẽ cần phải truy cập thư mực này, mặc định đường dẫn của Xampp khi cài đặt là: ” C:/xampp ” . Sau đó bạn nhấn Next.</p>

<div style="text-align:center">
<figure class="image" style="display:inline-block"><img alt="cai dat localhost tren pc bang xampp3" height="503" src="https://theanhgroup.com/uploads/tin-tuc/thu-thuat-may-tinh/cai-dat-localhost-tren-pc-bang-xampp3.jpg" width="600" />
<figcaption>Chọn đường dẫn cài đặt XAMPP -&gt; Next</figcaption>
</figure>
</div>

<p>Sau khi nhấn Next, ở trang kế tiếp, chọn bỏ chọn phần ” Learn more about Bitnami for XAMPP “, sau đó tiếp tục nhấn ” Next ” 2 lần nữa và bắt đầu quá trình cài đặt Xampp.</p>

<div style="text-align:center">
<figure class="image" style="display:inline-block"><img alt="cai dat localhost tren pc bang xampp14" height="495" src="https://theanhgroup.com/uploads/tin-tuc/thu-thuat-may-tinh/cai-dat-localhost-tren-pc-bang-xampp14.jpg" width="600" />
<figcaption>Bỏ stick&nbsp;Learn more about Bitnami for XAMPP -&gt; Next</figcaption>
</figure>
</div>

<p>Sau khi cài đặt xong XAMPP, bạn ấn nút ” Finish ” để kết thúc cài đặt và mở bảng điều khiển của XAMP.</p>

<p>Lưu ý: Sau khi cài đặt xong XAMPP, bạn nên reset lại máy thì có thể đảm bảo PC của bạn có thể chạy ổn định trên localhost nhé.</p>

<h4>3. Khởi động XAMPP</h4>

<p>Để có thể khởi động được XAMPP, bạn vào đường link thư mục ở bên trên lúc cài đặt, bạn mở file có tên sau: “Xampp-panel.exe” để bật bảng điều khiển của XAMPP.</p>

<div style="text-align:center">
<figure class="image" style="display:inline-block"><img alt="cai dat localhost tren pc bang xampp5" height="391" src="https://theanhgroup.com/uploads/tin-tuc/thu-thuat-may-tinh/cai-dat-localhost-tren-pc-bang-xampp5.png" width="600" />
<figcaption>Cpanel của XAMPP</figcaption>
</figure>
</div>

<p>Ở bảng điều khiển XAMPP bạn sẽ thấy 2 ứng dụng Apache và MySQL có nút ” Start “, dấu hiệu này biểu hiện 2 ứng dụng này chưa hoạt động, sau đó bạn ấn ” Start ” của từng ứng dụng để khởi động Webserver Apache và MySQL Server , khi đó bạn mới có thể chạy được localhost.</p>

<div style="text-align:center">
<figure class="image" style="display:inline-block"><img alt="cai dat localhost tren pc bang xampp6" height="391" src="https://theanhgroup.com/uploads/tin-tuc/thu-thuat-may-tinh/cai-dat-localhost-tren-pc-bang-xampp6.png" width="600" />
<figcaption>Apache và MySQL xanh lè là ok !</figcaption>
</figure>
</div>

<p>Nếu như cả 2 ứng dụng trên đều chuyển sang màu xanh như hình ở bên dưới thì XAMPP đã chạy khởi động thành công r đó.</p>

<p>Tiếp đến, bạn vào trình duyệt website, gõ vào thành công cụ đường link sau: “http://localhost” sau đó nó sẽ hiện ra trang giới thiệu XAMPP như hình bên dưới.</p>

<div style="text-align:center">
<figure class="image" style="display:inline-block"><img alt="cai dat localhost tren pc bang xampp7 768x418" height="327" src="https://theanhgroup.com/uploads/tin-tuc/thu-thuat-may-tinh/cai-dat-localhost-tren-pc-bang-xampp7-768x418.jpg" width="600" />
<figcaption>Giao diện web XAMPP khi truy cập&nbsp;http://localhost chọn ngôn ngữ cần hiển thị</figcaption>
</figure>
</div>

<div style="text-align:center">
<figure class="image" style="display:inline-block"><img alt="cai dat localhost tren pc bang xampp8 768x421" height="329" src="https://theanhgroup.com/uploads/tin-tuc/thu-thuat-may-tinh/cai-dat-localhost-tren-pc-bang-xampp8-768x421.jpg" width="600" />
<figcaption>Giao diện chính của web XAMPP</figcaption>
</figure>
</div>

<p>Không Start được Apache thì phải làm sao?</p>

<p>Ở vấn đề này, nếu như bạn không đổi chạy được Apache thì khả năng cao port 80 của bạn đang được sử dụng, khi đó bạn vào Task Manager để tắt những UD đang chiếm cổng này nhé.</p>

<h4>4. Hướng dẫn đổi Port Skype</h4>

<p>Để đổi được Port Skype bạn thao tác như sau:</p>

<div style="text-align:center">
<figure class="image" style="display:inline-block"><img alt="cai dat localhost tren pc bang xampp9 768x590" height="461" src="https://theanhgroup.com/uploads/tin-tuc/thu-thuat-may-tinh/cai-dat-localhost-tren-pc-bang-xampp9-768x590.jpg" width="600" />
<figcaption>Đổi port Skype để tránh đụng độ port 80 với XAMPP</figcaption>
</figure>
</div>

<p>Vào Skype -&gt; Tools -&gt; Connection Options -&gt; Bỏ chọn ” Use port 80 and 443 … ” sau đó nhập một cổng bất kỳ để Skype có thể sử dụng như hình dưới.<br  />
Hi vọng với những chia sẻ trên về XAMPP là gì? cách cài đặt localhost trên PC bằng XAMPP sẽ giúp bạn hiểu hơn về XAMPP nhé. Chúc các bạn thành công.</p>
		</div>
	</div>
	<div id="footer" class="clearfix">
		<div id="url">
			<strong>URL của bản tin này: </strong><a href="https://theanhgroup.com/tin-tuc/thu-thuat-may-tinh/xampp-la-gi-cach-cai-dat-localhost-tren-may-tinh-bang-xampp-76.html" title="Xampp là gì? Cách cài đặt localhost trên máy tính bằng Xampp">https://theanhgroup.com/tin-tuc/thu-thuat-may-tinh/xampp-la-gi-cach-cai-dat-localhost-tren-may-tinh-bang-xampp-76.html</a>

		</div>
		<div class="clear"></div>
		<div class="copyright">
			&copy; Thế Anh Group - Hosting - Domain - VPS
		</div>
		<div id="contact">
			<a href="mailto:info@theanhgroup.com">info@theanhgroup.com</a>
		</div>
	</div>
</div>

		</div>
        <div id="timeoutsess" class="chromeframe">
            Bạn đã không sử dụng Site, <a onclick="timeoutsesscancel();" href="https://theanhgroup.com/#">Bấm vào đây để duy trì trạng thái đăng nhập</a>. Thời gian chờ: <span id="secField"> 60 </span> giây
        </div>
        <div id="openidResult" class="nv-alert" style="display:none"></div>
        <div id="openidBt" data-result="" data-redirect=""></div>
<div id="run_cronjobs" style="visibility:hidden;display:none;"><img alt="" src="/index.php?second=cronjobs&amp;p=l1uSTOwY" width="1" height="1" /></div>
<script src="https://theanhgroup.com/assets/js/jquery/jquery.min.js"></script>
<script>var nv_base_siteurl="/",nv_lang_data="vi",nv_lang_interface="vi",nv_name_variable="nv",nv_fc_variable="op",nv_lang_variable="language",nv_module_name="tin-tuc",nv_func_name="savefile",nv_is_user=0, nv_my_ofs=-4,nv_my_abbr="EDT",nv_cookie_prefix="nv4",nv_check_pass_mstime=1738000,nv_area_admin=0,nv_safemode=0,theme_responsive=1,nv_is_recaptcha=1,nv_recaptcha_sitekey="6LcBa6sUAAAAAL3xxPH8QGCnxx1DtQN_Qu8zAtTm",nv_recaptcha_type="image",nv_recaptcha_elements=[];</script>
<script src="https://theanhgroup.com/assets/js/language/vi.js"></script>
<script src="https://theanhgroup.com/assets/js/global.js"></script>
<script src="https://theanhgroup.com/themes/theanhgroup/js/news.js"></script>
<script src="https://theanhgroup.com/themes/theanhgroup/js/main.js"></script>
<script type="application/ld+json">
		{
			"@context": "http://schema.org",
			"@type": "LocalBusiness",
			"url": "/",
			"logo": "/uploads/logo.svg",
			"image": "/uploads/logo.svg",
			"priceRange": "VND",
			"hasMap": "https://goo.gl/maps/GxvwWZZZJwYi28GR7",
			"email": "mailto: khachhang@theanhgroup.com",
			"address": { 
			"@type": "PostalAddress", 
			"addressLocality": "Gò Vấp", 
			"addressRegion": "Hồ Chí Minh", 
			"postalCode":"700000", 
			"streetAddress": "164/64 Bùi Quang Là, Q. Gò Vấp, TP. Hồ Chí Minh" 
			},
			"description": "Công Ty TNHH Thế Anh Group chuyên cung cấp giải pháp lưu trữ website, máy chủ ảo, tên miền giá rẻ uy tín hàng đầu Việt Nam",
			"name": "Công Ty TNHH Thế Anh Group", "telephone": "088-877-6611",
			"openingHours": [ "Mo-Fri 08:00-17:00", "Sat 08:00-12:00" ],
			"geo": { "@type": "GeoCoordinates", "latitude": "10.833485", "longitude": "106.641419" },
			"sameAs" : [ "https://www.facebook.com/TheAnhGroup/" , "https://www.pinterest.com/theanhgroup/"] 
		}
		</script>
<script src="https://theanhgroup.com/OneSignalSDKWorker.js" async=""></script>
<script src="https://theanhgroup.com/OneSignalSDKUpdaterWorker.js" async=""></script>
<script src="https://cdn.onesignal.com/sdks/OneSignalSDK.js" async=""></script>
<script>
		  var OneSignal = window.OneSignal || [];
		  OneSignal.push(function() {
			OneSignal.init({
			  appId: "a62d202f-ca22-40ca-9987-e10da3bfbd9a",
			});
		  });
		</script>
<script>
		$(document).ready(function() {
			if (document.documentElement.clientWidth > 786 ) {
				window.onscroll = function() {myFunction()};
				var navbar = document.getElementById("main-menu");
				var sticky = navbar.offsetTop;
				function myFunction() {
					if (window.pageYOffset >= sticky) {
						navbar.classList.add("sticky")
					} else {
						navbar.classList.remove("sticky");
					}
				};
			}
			else
			{
				window.onscroll = function() {sticky_search_box()};
				var navbar_search = document.getElementById("box-search");
				var sticky_search = navbar_search.offsetTop;
				function sticky_search_box() {
					if (window.pageYOffset >= sticky_search + 300) {
						navbar_search.classList.add("sticky-search")
					} else {
						navbar_search.classList.remove("sticky-search");
					}
				}
			}
		});
		</script>
<script src="https://theanhgroup.com/themes/theanhgroup/js/intersection-observer.js"></script>
<script src="https://theanhgroup.com/themes/theanhgroup/js/lazyload.min.js"></script>
<script>
			var lazyLoadInstance = new LazyLoad({
				elements_selector: ".img-lazyload"
			}); 
		</script>
<script src="https://theanhgroup.com/themes/theanhgroup/js/bootstrap.min.js"></script>
</body>
</html>