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.
Step 1. Create a Lightsail instance
- Log in to AWS Management Console.
- At the top of AWS console page, search for and select
Lightsail service.

- Click Create instance.

Step 2. Set up the instance
- 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.


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

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

- Select the Dual-stack type.
- 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 1 GB of storage holds approximately 1000 minutes of recorded calls. You can set up the storage based on your recording usage.
- 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
- Click the console tab to open the console window.

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

wget https://update-ys2015-alicloud.oss-cn-hongkong.aliyuncs.com/YeastarSupport/pseinstallscripts/lightsail-install-pse.shchmod +x lightsail-install-pse.sh./lightsail-install-pse.shImportant: 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.
- Click on the instance.
You will be redirected to the instance management page.

- 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 and port in the address bar, then pressEnter.

Result
Yeastar P-Series Software Edition is installed successfully.
What to do next
Activate and set up Yeastar P-Series Software Edition to make it ready for use. You can do this using one of the following methods:
- Complete setup via Web GUI using the installation wizard
- Continue with the installation wizard in the Web GUI. This method only supports to complete the settings included in the wizard.
- Complete setup via SSH using a prepared XML file
-
Upload a prepared XML file to the PBX via SSH. This method allows you to complete the initial setup and apply additional supported PBX settings, such as creating extensions, trunks, inbound routes, and more.
- Download the XML configuration file and edit it as needed.
- Upload the XML configuration file to the designated directory and reboot the PBX to take effect.
For more information, see Activate and Set up Yeastar P-Series Software Edition Using XML Configuration File.
- Root Account: Username is
root, and password is the credential configured in XML configuration file.
- Support Account: Username is
support, and password is the credential configured in PBX web portal (Path: ) or in XML configuration file.Figure 1. Support password in PBX web portal
Figure 2. Support password in XML configuration file 