Package your PHP application as a ZIP file that meets SAE requirements, and then deploy it to SAE.
Procedure
On the SAE Application List page, select the target region and namespace from the top navigation bar, and then click Create Application.
Select an application edition.
ImportantThe Lightweight Edition and Professional Edition are in an invite-only beta phase. If you are not part of the beta test, your application defaults to the Standard Edition, and you do not need to select an edition.
Lightweight Edition: Provides the minimum feature set required to run an application. This edition does not support the Application Monitoring and Microservices Governance features.
Standard Edition: Includes the Basic Application Monitoring feature. The Advanced Application Monitoring and Microservices Governance features must be enabled and purchased separately.
Professional Edition: Includes the Advanced Application Monitoring and Microservices Governance features. They do not need to be enabled or purchased separately.
On the Create Application page, enter an Application Name and configure the following parameters.
Select a namespace type for the application. A namespace is equivalent to a Kubernetes namespace and isolates resources across different environments. You cannot change the namespace of an application after it is created. Plan your resources accordingly.
System Created: Uses the default namespace, vSwitch, and security group that are automatically created by the system in the current region.
Existing Namespace: Select a namespace, vSwitch, and security group that you created in advance.
For Application Deployment Method, select Code Package-based Deployment, and click Configure Code Package-based Deployment. For Technology Stack Programming Language, select PHP. Choose a PHP environment that is compatible with your code. Configure the following parameters, and click OK.
In the Capacity Settings section, configure Resource Type, Single Instance Specification, and Number of Instances.
(Optional) Click Next: Advanced Settings to configure additional features.
Click One-Click Create Application or Create Application.
Application creation takes about 1 to 2 minutes. You can view the change records to check if the deployment is successful. If the deployment fails, SAE does not create any instances. Troubleshoot the issue based on the error message in the Change Details.
You can view your created applications on the page. To modify the application configuration after deployment, click the target application to go to its details page. At the top of the page, click Deploy Application or Modify Application Configurations. Note that the application automatically restarts for the new configuration to take effect, so you should perform this operation during off-peak hours.
You can log on to an application instance by using Webshell and interact with it through console commands.
After creating the application, you can manually adjust the number of instances and the instance specification, or configure an auto scaling policy. You can also enable idle mode to reduce costs.