Install Yeastar P-Series Software Edition on AWS Lightsail via Command Line

You can host and manage Yeastar P-Series Software Edition on AWS Lightsail using command line and leverage your Lightsail knowledge to stay in full control of your PBX deployment.

Note: If you are a Yeastar partner, you can deploy Yeastar P-Series Software Edition on AWS Lightsail via Yeastar Partner Portal, eliminating the need for complex instance setup and command-line operations. For more information, see Install Yeastar P-Series Software Edition on AWS Lightsail via Yeastar Partner Portal.

Step 1. Create a Lightsail instance

  1. Log in to AWS Management Console.
  2. At the top of AWS console page, search for and select Lightsail service.

  3. Click Create instance.

Step 2. Set up the instance

  1. In the Instance location section, click Change AWS Region and Availability Zone to change the region and availability zone according to your needs.
    Note: By default, the instance will be created in the region that you have selected when you first log in to AWS Management Console.

  2. In the Pick your instance image section, select Linux/Unix platform, then select Ubuntu system with version 20.04.

  3. In the Choose your instance plan section, select a network type and an instance size.

    1. Select the Dual-stack type.
    2. Select an instance size based on the Extensions (EXT) and Concurrent Calls (CC) of your PBX system.
      1-20 EXT

      (1-5 CC)

      21-50 EXT

      (6-13 CC)

      51-250 EXT

      (14-63 CC)

      251-500 EXT

      (64-125 CC)

      501-1000 EXT

      (126-250 CC)

      EXT > 1000

      (CC > 250)

      vCPU 2 2 4 6 8 Contact Yeastar
      Memory 2 GB 4 GB 4 GB 8 GB 16 GB
      Storage Call Recording Disabled 40 GB 40 GB 50 GB 100 GB 200 GB
      Call Recording Enabled Recommended: 1 TB
      Tip: 1 GB of storage holds approximately 1000 minutes of recorded calls. You can set up the storage based on your recording usage.
  4. In the Identify your instance section, enter a name to help you identify the instance, then click Create instance.

    You will be redirected to the Lightsail home page. When the instance status changes to Running, it indicates that the instance is created.

Step 3. Install Yeastar P-Series Software Edition on the instance

  1. Click the console tab to open the console window.

  2. Run sudo -i to switch to the root user.
  3. Run the following commands sequentially to install Yeastar P-Series Software Edition.

    1. wget https://update-ys2015-alicloud.oss-cn-hongkong.aliyuncs.com/YeastarSupport/pseinstallscripts/lightsail-install-pse.sh
    2. chmod +x lightsail-install-pse.sh
    3. ./lightsail-install-pse.sh
      Important: If a You have been disconnected prompt is displayed, it indicates that the system has restarted and Yeastar P-Series Software Edition is being installed. Do NOT click Reconnect, as it will interrupt the installation process.

Step 4. Add firewall rules

By default, Lightsail only allows SSH and HTTP access to your instance, you need to add firewall rules to ensure PBX access to your instance.

  1. Click on the instance.

    You will be redirected to the instance management page.

  2. Click the Networking tab, then click Add rule under the IPv4 Firewall tab to create and configure the required firewall rules.

    Application Protocol Port or range / Code Restricted to
    Ping (ICMP) ICMP No port required Any IPv4 address
    Custom TCP 389 Any IPv4 address
    Custom TCP 3306 Any IPv4 address
    Custom TCP 5038 Any IPv4 address
    Custom TCP 5060-5061 Any IPv4 address
    Custom TCP 8022 Any IPv4 address
    Custom TCP 8088 Any IPv4 address
    Custom UDP 5060 Any IPv4 address
    Custom UDP 10000-20000 Any IPv4 address

Step 5. Access Yeastar PBX

Open a web browser, enter the PBX's IP address in the address bar, then press Enter.
Note: You can obtain the PBX's IP address from the Public IPv4 address field on the instance management page.

If an installation wizard page appears, it indicates that Yeastar P-Series Software Edition is installed successfully.
Note: If you cannot access the PBX, wait a few minutes for the installation process to complete, then try again.

Result

Yeastar P-Series Software Edition is installed successfully, but it is inactivated and not ready for use, you need to Activate and Initially Set up Yeastar P-Series Software Edition.

Important: With P-Series Software Edition activated, next time you want to access the PBX via SSH, you should use the username support and the console password configured on PBX web portal (Security > Security Settings > Console/SSH Access > Console > Console Password).