提供的產品配置

可在 Amazon Lightsail 上可實現下面的 Plesk 配置。

Plesk 組件組
Plesk Hosting Stack on Ubuntu 推薦組合 *(預設安裝 Fail2Ban、ModSecurity、Plesk Firewall 和 **WordPress Toolkit)

備註: *The Recommended components set includes all components necessary for web hosting (including the web server, a mail server, a database server, and so on), plus the most popular and widely used features. For more information about Plesk Hosting Stack on Ubuntu, see the topic Plesk Web Admin SE.

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

在 Amazon Lightsail 上安裝 Plesk

若要在 Amazon Lightsail 上安裝 Plesk,請如下操作:

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

    備註: 如果您正嘗試存取 Amazon Lightsail 而看到 403 HTTP 錯誤,請 創建一個要存取 Lightsail 的 IAM 策略並將其附加到新的或現有的用戶

  2. 進入 Lightsail 點按 創建實例。

    image 79175

  3. 在 「實例位址」 下點按 更改地區和區域 並選擇一個 地區 。如果您計畫託管小型企業網站,我們建議您選擇最靠近其地理位置的區域,這樣有利於降低本地訪客存取時的頁面載入時間。

  4. 在 「挑選您的實例鏡像」 > 「Apps + OS」 標籤下,選擇 Plesk Hosting Stack on Ubuntu

    image 79441

  5. (備選)點按 + 添加啟動腳本 以添加第一次啟動時將在您的實例上運行的 shell 腳本。

  6. Lightsail uses SSH keys for authentication. To use an existing SSH key, click Change SSH key pair and select the SSH key you have uploaded earlier. You can also create or upload a new key pair or use the default one.

  7. 選擇您的實例方案。Plesk Hosting Stack on Ubuntu 以每月 10 美元的 Lightsail 方案起售。

  8. 在 「命名您的實例」 下,給您的實例一個可識別的名稱,並指定您要部署的實例數量。

    image 79038

  9. Click Create instance.

    You have created the Plesk instance on Lightsail. Wait a while until Plesk is configured to log in to it.

    備註: 在實例還未完全部署好之前不要重啟實例或給其分配靜態 IP 位址。部署將需要一段時間。如果您登入正在部署的 Plesk 實例,您將看到維護螢幕。部署一旦完成,即會移除維護螢幕,Plesk 方可使用。

  10. Assign a static IP address to your instance and then restart it.

    Lightsail assigns a public IPv4 address to your instance by default. This IP address changes each time you start or stop the instance. After you assign a static IP address, it replaces the default public one and stays the same when you start or stop your instance.

    Watch the video tutorial

Accessing Plesk for the First Time

備註: When you create a Lightsail instance with Plesk, all the necessary ports are automatically opened in the Amazon Lightsail Firewall (TCP 22, UDP 53, TCP 53, TCP 80, TCP 443, TCP 8443, and TCP 8447).

To log in to Plesk on Lightsail for the first time:

  1. Access the instance command line via SSH. You can do so using the following:

    • Your own SSH client, for example PuTTY on Windows or Terminal on Linux and macOS. If you go with this option, you will need the instance user name and IPv4 address. To see them, go to Lightsail > Instances, click your instance name, and scroll down to the 「Use your own SSH client」 section.

      image lightsail ip

      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 the key downloaded from Lightsail to the PuTTY-specific format.

      Watch the video tutorial

      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 Lightsail and place the key in the designated folder.

      Watch the video tutorial

    • The Lightsail browser-based SSH client. To use the client, locate your Plesk instance and click the image terminal icon icon on it.

      image terminal icon big

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

    sudo plesk login
    
  3. Plesk will generate two login links: one with the instance hostname and the other one with the instance 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.

  4. 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.

  5. Click Enter Plesk to log in to Plesk.

Once brief initializing is finished, Plesk will be completely ready to work. You can start with creating your first website.

Next Steps

我們還建議配置伺服器在獨立的DNS區域保留子域名的DNS記錄。要實現此目的,請使用以下命令:

/usr/local/psa/bin/server_pref -u -subdomain-dns-zone own

備註: The private IP address of the server is detected automatically. To avoid connectivity issues, do not register your instance’s public IP address in Plesk. Only the private IP address must be registered.