<?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>Victor Hung%27s Diary</title>
	<atom:link href="https://taskinghouse.com/posts/tag/siteground/feed/" rel="self" type="application/rss+xml" />
	<link>https://taskinghouse.com</link>
	<description></description>
	<lastBuildDate>Thu, 06 Sep 2018 16:17:23 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://taskinghouse.com/wp-content/uploads/2018/05/cropped-favicon.png</url>
	<title>SiteGround &#8211; TaskingHouse</title>
	<link>https://taskinghouse.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>「教學」使用 GCP 台灣主機五分鐘快速架設 WordPress 網站</title>
		<link>https://taskinghouse.com/posts/install-wordpress-certified-by-bitnami-gcp-ssl-on-google-cloud-platform/</link>
		
		<dc:creator><![CDATA[Victor Hung]]></dc:creator>
		<pubDate>Thu, 06 Sep 2018 16:00:20 +0000</pubDate>
				<category><![CDATA[GCP]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[教學]]></category>
		<category><![CDATA[架站]]></category>
		<category><![CDATA[Bitnami]]></category>
		<category><![CDATA[EC2]]></category>
		<category><![CDATA[Google Cloud Platform]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[SiteGround]]></category>
		<category><![CDATA[主機]]></category>
		<category><![CDATA[台灣主機]]></category>
		<guid isPermaLink="false">https://diary.taskinghouse.com/?p=2196</guid>

					<description><![CDATA[<p>之前介紹過 「教學」Amazon EC2 Ubuntu 建立並啟動 WordPress 網站 是從最原始的 EC2 環境中佈署 LAMP 並安裝原版的 Word...</p>
<p>這篇文章 <a rel="nofollow" href="https://taskinghouse.com/posts/install-wordpress-certified-by-bitnami-gcp-ssl-on-google-cloud-platform/">「教學」使用 GCP 台灣主機五分鐘快速架設 WordPress 網站</a> 最早出現於 <a rel="nofollow" href="https://taskinghouse.com">TaskingHouse</a>。</p>
]]></description>
										<content:encoded><![CDATA[<p>之前介紹過 <a href="https://taskinghouse.com/posts/799035-amazon-ec2-ubuntu-install-wordpress-website/">「教學」Amazon EC2 Ubuntu 建立並啟動 WordPress 網站</a> 是從最原始的 EC2 環境中佈署 LAMP 並安裝原版的 WordPress。不過佈署 EC2 主機、LAMP 環境再安裝 WordPress 其實得花不少時間，因此本篇介紹 Google 所提供的 Google Cloud Platform 雲端主機服務，也就是所謂的 GCP 主機，跟 EC2 一樣享有一年免費的試用時間，而且可以在五分鐘之內快速架設 WordPress 網站！</p>
<h2>Step 1</h2>
<p>首先使用 Google 帳號登入 https://cloud.google.com/ 開始免費試用，註冊過程中需要輸入信用卡資料，提供 12 個月期間共 300 美元的額度免費試用 GCP 的各種服務，而且在一年結束之後，只要不超過指定用量限制，都可以永久免費使用 GCP 的部分服務。</p>
<p><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-2199" src="https://taskinghouse.com/wp-content/uploads/2018/09/gcp-wordpress-00.png" alt="" width="2048" height="1006" /></p>
<h2>Step 2</h2>
<p>登入 Google Cloud Platform 後，選擇 <code>Compute Engine</code>，再看到左下角的 <code>Marketplace</code>。</p>
<p><img decoding="async" class="alignnone size-full wp-image-2200" src="https://taskinghouse.com/wp-content/uploads/2018/09/gcp-wordpress-01.png" alt="" width="2048" height="1007" /></p>
<h2>Step 3</h2>
<p>點選 <code>Marketplace</code> 並搜尋 <code>WordPress</code>，接著我們點選 <code>WordPress with NGINX and SSL Certified by Bitnami</code></p>
<p><img decoding="async" class="alignnone size-full wp-image-2201" src="https://taskinghouse.com/wp-content/uploads/2018/09/gcp-wordpress-02.png" alt="" width="2048" height="1007" /></p>
<h2>Step 4</h2>
<p>在 <code>WordPress with NGINX and SSL Certified by Bitnami</code> 內點選 <code>在 COMPUTE ENGINE 上啟動</code></p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2202" src="https://taskinghouse.com/wp-content/uploads/2018/09/gcp-wordpress-03.png" alt="" width="2048" height="1007" /></p>
<h2>Step 5</h2>
<p>設定佈署名稱、選擇主機區域，其中 <code>asia-east-a</code>、<code>asia-east-b</code>、<code>asia-east-c</code> 都是位於台灣彰化的主機；機器類型可以使用預設的「小型」；硬碟選用 SSD 並設定為 30GB。這樣選下來，每月預估費用為 20.43 美元，以免費試用額度一年 300 美元來計算，不超過每月平均 25 美元的扣打。</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2203" src="https://taskinghouse.com/wp-content/uploads/2018/09/gcp-wordpress-04.png" alt="" width="2048" height="1007" /></p>
<h2>Step 6</h2>
<p>最後在下方點選佈署，跳轉後可以觀察 GCP 的佈署進度。</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2204" src="https://taskinghouse.com/wp-content/uploads/2018/09/gcp-wordpress-05.png" alt="" width="2048" height="1007" /></p>
<h2>Step 7</h2>
<p>佈署完成，右側可以看到主機的 IP 位置以及 WordPress 的登入資訊，點選右下方 <code>Log into the admin panel</code> 並輸入上面的使用者名稱及密碼就可以登入了。</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2205" src="https://taskinghouse.com/wp-content/uploads/2018/09/gcp-wordpress-06.png" alt="" width="2048" height="1007" /></p>
<h2>Step 8</h2>
<p>Bitnami 套裝的 WordPress 已經預先安裝了一些外掛，第一次登入後可以先將 WordPress 預設的語言與時區改為繁體中文與台北時間並更新外掛程式。本篇教學做到這邊基本上已經完成 WordPress 架站了，是不是非常快速呢！</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2206" src="https://taskinghouse.com/wp-content/uploads/2018/09/gcp-wordpress-07.png" alt="" width="2048" height="1007" /></p>
<h2>Step 9</h2>
<p>不過你可能已經發現右下角有一個 Bitnami 的 Logo，而它在 WordPress 後台是無法關閉的，必須透過指令來移除，但透過 SSH 連 GCP 有一點麻煩，這邊建議先在電腦上安裝 Google Cloud SDK，如果是 Mac 使用者可以參考：<a href="https://cloud.google.com/sdk/docs/quickstart-macos" target="_blank" rel="noopener">https://cloud.google.com/sdk/docs/quickstart-macos</a> 官方說明文件。</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2207" src="https://taskinghouse.com/wp-content/uploads/2018/09/gcp-wordpress-08.png" alt="" width="2048" height="1006" /></p>
<h2>Step 10</h2>
<p>安裝完 Google Cloud SDK 後，回到 GCP 後台，剛剛登入按鈕旁邊有一個 SSH 的按鈕，下拉後點選「查看 gcloud 指令」</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2208" src="https://taskinghouse.com/wp-content/uploads/2018/09/gcp-wordpress-09.png" alt="" width="2048" height="1007" /></p>
<h2>Step 11</h2>
<p>接著將指令複製起來，並開啟 Mac 的終端機</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2209" src="https://taskinghouse.com/wp-content/uploads/2018/09/gcp-wordpress-10.png" alt="" width="2048" height="1007" /></p>
<h2>Step 12</h2>
<p>在終端機貼上 gcloud 指令後，就可以登入 GCP 主機。接著，執行以下指令：</p>
<pre><code>sudo /opt/bitnami/apps/wordpress/bnconfig --disable_banner 1</code></pre>
<pre><code>sudo /opt/bitnami/ctlscript.sh restart apache</code></pre>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2210" src="https://taskinghouse.com/wp-content/uploads/2018/09/gcp-wordpress-11.png" alt="" width="2048" height="1286" /></p>
<p>回到網站重新整理，Bitnami 的 Logo 就不見了！</p>
<h2>Step 13</h2>
<p>以 GCP 每月約 20 美元左右等級的主機，安裝 Bitnami 版本搭載 Nginx 的 WordPress，在還沒有安裝任何快取外掛的情況下，網頁效能測試已經有很不錯的成績，再加上我們所選擇的 GCP 主機就在台灣彰濱工業區，因此國內瀏覽體驗理論上會比國外測試網站更好！</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2211" src="https://taskinghouse.com/wp-content/uploads/2018/09/gcp-wordpress-12.png" alt="" width="2048" height="1006" /></p>
<h2>延伸閱讀</h2>
<p>如果你對 Google Cloud Platform 的主機規格、設定以及這些參數指令不是很熟悉，希望能有更簡單的主機方案選擇、中文介面，並且對 WordPress 友善的話，也可以參考老牌的 <a href="https://taskinghouse.com/go/siteground/">SiteGround</a> 主機，以 WordPress 虛擬主機來說，可以簡單區分為三種方案，每月只要大約 100-300 台幣的費用算是相當實惠。</p>
<p><strong>SiteGround WordPress Hosting</strong><br />
<a href="https://www.siteground.com/go/wp-admin" target="_blank" rel="noopener">https://www.siteground.com/go/wp-admin</a></p>
<p>這篇文章 <a rel="nofollow" href="https://taskinghouse.com/posts/install-wordpress-certified-by-bitnami-gcp-ssl-on-google-cloud-platform/">「教學」使用 GCP 台灣主機五分鐘快速架設 WordPress 網站</a> 最早出現於 <a rel="nofollow" href="https://taskinghouse.com">TaskingHouse</a>。</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
