[Personal website building tutorial] Aliyun server + pagoda + wordpress

1. Application for server and domain name

1.1 Purchase of server

  1. Go to the official website of Alibaba Cloud and purchase ECS cloud server (you can see the developer growth plan , although I bought the student ECS here at 618). The server system chooses CentOS or Ubuntu.

    After the purchase is completed, you will enter the console , where you can see the server you just purchased.
  2. Before using the server, we need to reset the root user password.
  3. After resetting the password, you can log in to the server through the public IP , using xshell or PuTTy or the remote connection tool of the Ali platform.

1.2 Domain name application and filing

  1. Enter the domain name registration platform , select a suitable domain name, and click Settlement. (If you have not applied for a domain name before, you need to create a personal information template during settlement and fill in the information as required).
  2. After the purchase, the registration of the domain name is completed, and then the website needs to be filed. Go to the homepage of Ali's filing and start filing.
  3. Fill in the personal information, click on the information verification ( note: the domain name is required to be filed two to three days after registration )

    and then fill in your own information and website information as required, perform identity verification, and submit for review. Note that all information must be filled in accurately, and if it does not meet the requirements, you will need to call to modify it .
  4. After submitting for review, within one working day, Alibaba Cloud's customer service will call to confirm the identity, and at the same time inform the record information needs to be modified. During this period, the phone needs to be kept open.
  5. After the preliminary review of Alibaba Cloud is completed, the filing information will be submitted to the Administration. Within about a day, you will receive a verification SMS from the Ministry of Industry and Information Technology. According to the verification code on the SMS, enter the official website of the Ministry of Industry and Information Technology for verification.
  6. After waiting for 7-20 days, after the administrative bureau's review is completed, the filing is OK.

2. Installation of pagoda panel

2.1 Preparation

Enter the pagoda official website to register a pagoda account, which will be used later.

2.2 Install the pagoda panel

Refer to the official website for the following installation process: https://www.bt.cn/bbs/thread-19376-1-1.html

  1. Open server port
    Enter the console, click the instance name, enter the security group-security group list page, and click Configure Rules.

    As shown in the figure below, release port 8888 and open all ip access, click save.

    In addition, open other ports here at the same time, click Quick Add, select SSH, HTTP, HTTPS, MySQL to add, to facilitate subsequent website visits.
  2. Installation panel
  • CentOS installation command:
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh
  • Ubuntu installation command:
wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh

After the installation is successful, you can see the address of the pagoda backstage, as well as the user name and password. Open the browser to log in to the pagoda background.

  1. Pagoda panel settings
    For security reasons, first modify the pagoda panel user and panel password after entering the panel. (The panel user and password here are not the official website account, but the account panel that each cloud server needs to access the pagoda panel)
  2. Install LNMP environment
    LNMP website environment refers to the combination of Linux+Nginx+MySQL+PHP, used to quickly build various open source website programs such as Wordpress, Typecho, etc.

    The installation takes 10-20 minutes, and the installation process is completed automatically. Just wait a while.
  3. Pagoda account real-name authentication
    to enter the pagoda's official website , click on the upper right corner of members backstage, or Click here to enter the background https://www.bt.cn/admin/userinfo .

    Select Account Management on the left to perform real-name authentication.

    6. Add site
    Click on the site on the left-add site


    After the site is successfully added, you can enter the root directory of the site. The website will be built in the root directory of this website.

Three, install WordPress

3.1 Upload the WordPress installation package

  1. Go to WordPress China official website to download the zip installation package

Download link: https://cn.wordpress.org/latest-zh_CN.zip

  1. Back to the pagoda, click on the file to enter the root directory of the domain name, click on the upper left corner to upload the file, and upload the wordpress installation package just downloaded.
  2. After the upload is successful, unzip the installation package in zip format

3.2 Modify the site configuration file

Since the installation package is decompressed to the site directory/wordpress, the root in the configuration file needs to be changed to

root /www/wwwroot/huffie.top/wordpress;

After the modification is complete, click Save.

3.3 Domain name resolution binding

  1. Enter Alibaba Cloud's domain name console
  2. Add record


    ps. There is a small problem here, it always shows that your request did not find the corresponding site in the web server! , Tried many methods, and finally changed the PHP version from 7.4 to 5.6, and then succeeded. I don't know if it is because of this reason. Later, after the version is changed back to 7.4, you can continue to visit.

3.4 Online installation of WordPress

Enter your domain name in the browser address bar, and you can see the wordpress welcome page. The next step is to configure wordpress.

  1. Fill in the database information The
    database name, user name, and password can be found in the database column of the pagoda console.

    Fill in as required, and click submit after completing.

  2. Fill in website information
  3. Successful installation
    Log in to the background, you can see the familiar wordpress management interface.

Guess you like

Origin blog.csdn.net/weixin_44543463/article/details/112980280