提供的產品配置

在 DigitalOcean 上可實現以下 Plesk 配置。

Plesk 組件組
Plesk Web Admin Edition SE (Ubuntu 20.04) 推薦組合 *(預設安裝 Fail2Ban、ModSecurity、Plesk Firewall 和 **WordPress Toolkit) 另外默認會安裝 DigitalOcean DNS 擴展。
Plesk Web Admin Edition SE (CentOS 7) 推薦組合 *(預設安裝 Fail2Ban、ModSecurity、Plesk Firewall 和 **WordPress Toolkit) 另外默認會安裝 DigitalOcean DNS 擴展。

備註: * 推薦 元件組包括 web 主機所需的所有元件(包括 web 伺服器、郵件伺服器、資料庫伺服器,等等),外加最流行和最常用的功能。欲瞭解更多有關 Plesk Web Admin Edition SE 的資訊,請參閱 Plesk Web Admin SE 部分。

備註: ** Plesk Web Admin Edition SE 中的 WordPress Toolkit 只提供基本的功能。若要使用 WordPress 高級功能,請將您的 Plesk 許可證升級為 Web Pro 或 Web Host Edition

在 DigitalOcean 上安裝Plesk

  1. 登入現有的 DigitalOcean 帳戶或創建一個帳戶

  2. Click Marketplace (under “DISCOVER” in the left navigation bar), type Plesk in the search bar, and then click the desired Plesk image: 「Plesk」 (which is Plesk on Ubuntu 18.04) or 「Plesk (CentOS)」.

    image 79869

  3. Click Create Plesk (CentOS) Droplet/Create Plesk Droplet.

  4. 在三個方案中選擇一個然後選擇一個 droplet,注意其所帶的記憶體容量。

    您可以選擇標準的 droplet 注意所帶的記憶體容量。

    The more websites you intend to host and the more traffic the hosted websites generate, the more memory you will need. Estimate the amount of memory your setup will require.

    如果你想在 DigitalSea 上試用 Plesk,你可以選擇足夠測試的最小的 droplet(標準方案下的 1 GB/1 vCPU )。如果之後您發現資源不夠了, 您可以升級您的 droplet

    image 79872

  5. (Optional) Adding block storage is not necessary for Plesk to operate. You can skip this option and go to the next step.

  6. 選擇一個資料中心區域。如果您計畫託管小型企業網站,我們建議您選擇最靠近其地理位置的區域,這樣有利於降低本地訪客存取時的頁面載入時間。

  7. 對於大多數 Plesk 使用者來說,不需要其他選項,例如 私人網路絡IPv6使用者資料監控 。您可以跳過它們進入到下一步。

  8. 選擇登入 droplet 的方式。

    The easiest way is by using the root username and password. To log in this way, select Password and type your root password.

    備註: Keep your password safe. You will not see it again after the droplet is created.

    image ssh password screen

    To log in to your droplet, you can also use SSH keys and SSH clients (for example, PuTTY, iTerm2, or Terminal). SSH keys are more secure than passwords but using them is slightly more complicated.

  9. 選擇要部署多少 Plesk 實例,並為每個實例提供一個可識別的名稱。

    image 79878

  10. (備選)此時,您的 Plesk 實例已經準備好部署。如果您計畫部署多個實例,可能需要將其分組:

    • 標記 。可以一次使用相同的標記管理每一個 droplet。
    • 選擇 droplet 所屬的 現有項目

    您可以標記 droplet 或在 droplet 創建後的任何時候為其選擇一個項目。

    image 79881

  11. (Optional) Adding backups is not necessary for Plesk to operate. You can skip this option and go to the next step.

  12. Click Create Droplet.

您的 Plesk 實例正在部署。一旦部署完成,您可以在 Plesk 中開始操作。

Accessing Plesk for the First Time

The fastest way to log in to Plesk on DigitalOcean is by using the root username and password.

To log in to Plesk on DigitalOcean for the first time using a root password:

Watch the video tutorial

  1. Locate your Plesk droplet and copy the IPv4 address next to it.

    image login 1

  2. Open the https://<your-droplet-IPv4> link in your browser.

  3. Ignore the 「Your connection is not private」 warning in your browser and proceed. It is safe to do so because the connection to your Plesk server is actually secure and encrypted with a self-signed SSL/TLS certificate.

  4. On the Plesk login page, specify the root username, the root password you have created earlier, and then click Log in.

    image login 2

  5. You will be redirected to the Plesk welcome screen. Provide your contact name and email address; read and accept the End-User License Agreement; set an administrator password.

    備註: To log in to Plesk next time, use that password and the admin username.

  6. Click Enter Plesk to log in to Plesk.

    image login 3

To log in to Plesk on DigitalOcean for the first time using SSH keys:

Watch the video tutorial

  1. Locate your Plesk droplet and copy the IPv4 address next to it.

    image login 1

  2. Access the droplet command line via SSH. You can do so using your own SSH client, for example PuTTY on Windows or Terminal on Linux and macOS.

    PuTTY is a free popular SSH client for Windows. However, PuTTY does not work with the standard .pem format of SSH keys. If you use PuTTY, you will need to convert your SSH key to the PuTTY-specific format.

    Unlike Windows, Linux and macOS have the command-line Terminal application available by default. If you use Terminal, you will need to set the specific permissions for the key downloaded from DigitalOcean and place the key in the designated folder.

  3. Run the following command to generate one-time login links:

    sudo plesk login
    
  4. Plesk will generate two login links: one with the droplet hostname and the other one with the droplet IPv4 address. Open the link with the hostname in your browser (for example, https://eloquent-ishizaka.192-0-2-1.plesk.page/login?secret=KgG2POCJYtWoBc2EHoJzV6ThQpxkMjwuj7hv-9LP8LLbSc-J).

    備註: If the link with the hostname does not work for any reason, open the second link with the IP address (for example, https://192.0.2.1/login?secret=hlHH450sx%2FAlSJHj1VWJC2qKxK6gqVxtsMkYG6bf6wc%3D). In this case, you will see the 「Your connection is not private」 warning in your browser. Ignore the warning and proceed. It is safe to do so because the connection to your Plesk server is actually secure and encrypted with a self-signed SSL/TLS certificate.

  5. You will be redirected to the Plesk welcome screen. Provide your contact name and email address; read and accept the End-User License Agreement; set an administrator password.

    備註: To log in to Plesk next time, use that password and the admin username.

  6. Click Enter Plesk to log in to Plesk.

    image login 3

備註: 如果您登入到仍在部署的 Plesk 實例,您將看到維護螢幕。一旦部署完成,維護螢幕消失,您將能夠開始使用 Plesk。

image 79882

Congratulations! Your Plesk is completely ready to work and you can start adding your first domain. We also recommend that you make the following steps:

設定 DNS 主機

若要將您的網站在網上開通,可選擇如何設定您的 DNS 主機:在 Plesk 中內部實現或使用協力廠商 DNS 服務外部實現,例如 DigitalOcean DNS。我們強力建議您使用 DigitalOcean DNS,因為具備以下優勢:

  • 無需設定和維護從屬 DNS 伺服器。DigitalOcean DNS 提供免費的 DNS 主機和三個不同的域名伺服器。這將降低您的 Plesk 伺服器的負載並提高 DNS 主機的可靠性。
  • No need to configure DNS settings manually. DNS zones will be automatically synced between Plesk and DigitalOcean DNS by the DigitalOcean DNS extension (installed by default with Plesk on DigitalOcean).

Learn how to set up DNS hosting in DigitalOcean DNS.

您可以在將域名添加到 Plesk 之前或之後設定 DNS 主機。兩種方式下,新的和現有的域名都將自動與 DigitalOcean DNS 同步。

備註: 如果域名與已經在 DigitalOcean DNS 中託管的網站的名稱匹配,則無法在 Plesk 中創建該域名。

If you want to use Plesk as a DNS server, refer to this topic.

If you want to use an external DNS service other than DigitalOcean DNS, you need to configure this external DNS service and also point the domain name to your Plesk server. To configure an external DNS service, refer to its documentation.

If you have already configured the external DNS service and it supports DomainConnect, use the Domain Connect extension, which is shipped with Plesk by default, to automatically point the domain name to your Plesk server.

分配浮動 IP 地址

創建 droplet 後,DigitalOcean 會自動給其分配一個靜態公共 IP 位址。此 IP 地址足夠用於預備網站或試用 Plesk。您可以重啟 droplet,將其打開或關閉,或將其重建 - 只有破壞 droplet 該靜態 IP 位址才會丟失。

但是,對於託管生產性網站,我們建議給您的 droplet  分配一個浮動 IP 位址 並`備份您的 droplet <https://www.digitalocean.com/docs/images/backups/>`__ 。不想靜態 IP 位址,浮動 IP 位址可在 droplet 之間移動。

如果您的 droplet 破壞了,或者您不小心破壞了它,您的網站將不可用,直到您修復了該 droplet 或者創建一個新的droplet。避免宕機的最簡單的方式是移動浮動 IP 以備份 droplet。這將立即使您的網站備份,而無需更改 DNS 設定。

發送郵件的問題

如果您無法從 Plesk 發送電子郵件,請檢查 TCP 埠 25 上的傳入連接是否被阻。如果被阻,請 聯繫 DigitalOcean 支援