View and manage pre-installed applications on Simple Application Servers created from application images.
Prerequisites
A Simple Application Server is created from an application image. Create a Simple Application Server.
This feature applies only to servers created from application images, not OS images.
Procedure
This example uses a LAMP 6.1.0 server. The steps are similar for other application images, but console details may differ.
-
Go to the Servers page in the Simple Application Server console.
-
Click a server ID to open the server overview page.
-
Click the Application Details tab.
NoteThis tab is available only for application image servers.
-
View the application details.
The application details page displays:
-
Image information: server running status and image version. For complex issues, click Contact the service provider or View image Help documentation..
-
Basic usage steps.
Follow these steps to build a website.

-
Application information: configuration details including username, password, website root directory, and home address.
For this LAMP example, the database account is
root, the command to obtain the database password issudo grep mysql_root_passwd /root/env.txt, the website root directory is/home/www/htdocs, and the port for the database address is 3306.-
Click the link next to Homepage Address to verify the server configuration.
If the page shows It Works!, Apache is running correctly.
-
Next to database password, click the copy icon
, and then click Connect. In the terminal, paste and run the command to retrieve the database admin password.[admin@iZ7xvdgmetdlzv3sg4qxxx ~]$ sudo grep mysql_root_passwd /root/env.txt mysql_root_passwd:EA397afc [admin@iZ7xvdgmetdlzv3sg4qxxx ~]$
-
-
Application installation information. The LAMP image includes Apache 2.4 (installed in
/usr/local/apache), MySQL 5.7 (installed in/usr/local/mysql), and PHP 5.6 (installed in/usr/local/php56).
-
-
Configure the application.
For example, create a test .html page in the LAMP server's website root directory and access it via the server's public IP.
-
In the LAMP information section, find the website root directory (
/home/www/htdocs) and click Remote Connection. -
Switch to the
rootuser.sudo su root -
Go to the website root directory.
cd /home/www/htdocs -
Create a test file named
test.htmland write "Test001" into it.touch test.html echo 'Test001' >> test.html -
In a browser, navigate to
http://<public_IP_address_of_your_Simple_Application_Server>/test.html.File changes in the website root directory take effect immediately. Configuration file changes require an Apache restart.
WarningRestarting Apache may cause a service interruption. Perform this during off-peak hours.
If the page shows Test001, the website is correctly configured and publicly accessible.
-
What's next
-
To make your website accessible through a custom domain name, upload project files to the website root directory, then bind and resolve the domain. Register and resolve a domain name.
-
Alibaba Cloud provides best practices for building websites, such as deploying MantisBT in a LAMP environment or hosting multiple sites on one server. Best practices overview.