PS: This tutorial uses the Aliyun ECS Server (Windows Server 2008 R2) as an example
The preparatory work
Want to build a website, first of all to prepare the following resources (can be purchased in Ali Cloud and other websites, pay attention to the purchase of relevant discounts, to avoid unnecessary spending) :
- The server
- The domain name
- SSL certificate
In the process of building the website, you also need to use the following software (available for download on the pagoda official website and wordpress official website) :
- Pagoda installation software
- WordPress compressed file
Because some servers cannot open the pagoda interface with their own browsers, you may need to prepare installation software for common browsers (such as Google).
Finally, when using pagodas to build a site, you must remember to open the necessary ports (listed below are some common port descriptions of pagodas, please select as needed) :
- 22 Default SSH port number
- 80 Default site port
- 443 Default SSL port number
- 3306 Default port of Mysql
- 8888 Default port on the pagoda panel
- 888 PHPMyAdmin default port
- 20, 21, 39000-40000 Default FTP port number
If you do not know which port you want to open and how to open it, you can refer to the alicloud help document for adding security group rules and deploying Web environment (note: the help document is only for users who buy Alicloud server, in addition, if you have not changed the pagoda default port, you must remember to open port 8888).
Began to build the
Step 1 Remotely connect to the server and install required software
For Windows PC users, the system has its own remote desktop connection service, Win7 system can directly open the remote desktop connection in the following order: [Start] → [all programs] → [accessories] → [remote desktop connection]; Win10 direct in the search box search remote desktop connection can be. Of course, you can also directly use the shortcut key [win+R] to call up and run, enter [MSTSC] enter.
As shown in figure:
The default user name of the Windows server is Administrator, and the default user name of the Linux server is root. Finally, click Connect to connect to the remote desktop. When connecting, you need to fill in the instance password. If you forget or are not clear, ali Cloud users can choose the corresponding instance from the console → cloud server → Instance and image → Instance, click more → Password/key → Reset instance password to set a new password.
After the connection is completed, enter the server desktop (wait for a while for the first connection), as shown in the following figure:
Then open the folder where the downloaded software is located on your PC, copy the software mentioned above (btsoft. exe and WordPress-x.x.zip), and paste it directly into the interface shown in the figure above.
Click on Pagodas BtSoft to start installing pagodas. One-click installation.
Step 2 Add a site and upload a wordpress file
After installation, see the following figure:
Modify the user name and password (custom), you can leave the rest blank, save the configuration and click on the top copy link to paste to the browser, you can access the panel, panel login user name and password is the custom user name and password, after login, you will be required to log in the pagoda account, you can register in the pagoda official website.
Open the panel, click Software Management on the left, and select Apache (or other Web Server), MySQL (or other database management system), FileZilla Server, or PHP in the red box. This example uses the above four software.
Select the website in the menu on the left, click Add Site, and the following interface appears:
Domain before fill in the purchase of domain name, FTP and databases are created, the user name password by default, you can also can see, after created database related to download a database management system (the example USES MySQL), on the other hand, can be in the root directory is the default path after “add”/domain name, the site on the web site’s exclusive folder. Other options do not need to be modified, click Submit.
Note: the domain name filled in here needs to be resolved. You can choose your own domain name to be resolved in Ali Cloud console → domain name → Domain name Service → domain name list. For detailed operations, you can choose baidu domain name resolution.
After successful creation, click the area in the red box to enter the site folder:
Enter the folder and click Upload to upload the wordpress file:
Click start upload and wait for some time until the upload is complete.
After the upload is complete, the wordpress-x.x.zip file is displayed in the file directory. Select it and decompress it. After decompression, you can delete the zip file.
Click on the above folder to enter the folder.
Then click the check box in front of the file name and click Copy on the right. Go back to the site root directory and click Paste All.
Step 3 Install wordpress
Enter the domain name entered when you added the site and press Enter to enter the wordpress installation screen.
Select Simplified Chinese and click Continue (if you make a wrong choice or the installation is not successful, don’t worry, after wordpress is installed, you can change the language in background Settings → General.
In the figure above, you only need to fill in the content in the red box, which can be viewed in the database of the menu on the left of the pagoda interface, as shown below:
Fill in the content in the red box and click Install. The username and password will be used to log in to the background of your wordpress website.
Enter the user name and password, click login, if successfully enter the background, the website is successfully set up.
Step 4 Configure the SSL certificate
If an SSL certificate is not configured, an unsafe flag will appear when you visit your site
Open ali Cloud official website, enter the console → Products and Services →SSL Certificate, select the purchased certificate and click Download to download the certificate of the corresponding Web server. (If you are using Apache as in this example, simply download the “Other” certificate.)
Copy the downloaded files to the server desktop, then click on the site in the left menu of the pagoda, select the Settings on the right side of your site, open the following panel.
Click SSL, other certificates, open the downloaded.key and.pem files with Notepad, copy them to the appropriate area, click Save, and force HTTPS in the upper right corner.
Enter the domain name of your website in the browser. If a small lock sign appears on the left, the setting is successful.
A message may be displayed indicating that the TLS version is too low and requires an upgrade. You can download IISCrypto(pay attention to download a clean installation program) to the server desktop and install it.
After installation, open the software, check it as shown in the picture below, then Apply and restart the server to upgrade TLS. You can check reboot in the lower right corner and click Apply to restart the server directly.