WP theme recommendation: WordPress Introduction | WordPress website building detailed process, Wordpress website building tutorial network

One year ago (2023-11-24) Chief Editor
11 minutes
three hundred and four
zero

Before installing WordPress, check whether the server and local software and hardware meet the installation requirements.

Server side requirements

PHP 7.3 or higher MySQL 5.6 or MariaDB 10.1 or higher Apache or Nginx

Local requirements

User ID and password (FTP or shell account for logging in to the server) Text editor FTP software browser

1. Domain name registration

All websites need a domain name, which can be purchased by Alibaba Cloud, Tencent Cloud and Baidu Cloud; Generally, everyone will choose to register the. com domain name, which is about 55 yuan/year for the first year and about 70 yuan/year for renewal. Of course, you can also choose. cn or. net domain names, which are relatively cheap. These are the domain names that are currently highly recognized in China.

2. Purchase ECS or virtual host

Domestic hosts are fast, but expensive, and generally small in space; Foreign hosts are cheap, and most of the space is unlimited, but the speed is slower than domestic hosts. How to choose depends on everyone's needs.

The main differences between ECS and VM are as follows:

ECS is an exclusive resource and virtual host is a shared resource;

The ECS is more scalable and controllable, and the virtual host is more like an independent space without too many configuration permissions.

ECS is more expensive and virtual servers are cheaper.

ECS is fast and efficient, while virtual servers are relatively low.

The security of ECS is better than that of virtual server.

Generally, virtual hosts can be selected for personal use, while cloud servers or independent servers are required for commercial use.

When choosing ECS, it is recommended to choose mobile phones from various companies, especially for major events such as time limited second killing, where the activity incentives of various cloud platforms are very strong, for example, the current activities of Tencent Cloud: the configuration suitable for building WordPress: 1 core 2G1M is as low as 95 yuan/year, and only 288 yuan/year for three years, which is super cost-effective; At the same time, there are also higher configurations. For example, the 2-core 4G3M bandwidth 100G disk is only 568 yuan a year. For activities, please refer to:

Of course, some students may feel that the domestic filing is too troublesome, and they do not want to file, or they want to do some website applications for global users. So Tencent Cloud's cloud server global purchase activity is a good choice, and the overseas server can be as low as 20%. For the activity, please refer to:

Select overseas hosts of domestic cloud platforms and use them without filing.

3. Website filing

The first thing after the purchase of the host and domain name is the website filing. All domestic hosts need to be filed, otherwise they cannot be online. Generally, the background of the host supplier will provide a record entry, provide corresponding information according to the prompts, and submit for record. Filing is generally completed within 2-3 weeks. Completing the filing means that your website can be officially launched.

4. Domain name resolution

Domain name providers all provide domain name resolution services in the background. We take Alibaba Cloud as an example to explain the resolution process.

Enter the domain name management interface and click "Resolution" on the right

Click "Add Record"

Fill in the information according to the prompt

Record type selection A

Select www or @ for the host record. Domain name resolution is generally two, one is www, and the other is @. @ is the main domain name access. If CDN or other applications are configured, add cname records;

The resolution route generally does not need to be selected, and can be directly defaulted.

Record Value Enter the IP address of the target virtual host.

TTL generally uses the default value.

5. Download WordPress program

Download the latest WordPress program on the Chinese official website of WordPress. Download address: //cn.wordpress.org/download/ , open the page and click the download button;

The file will be downloaded to the computer download directory by default. The default button is a zip file, which is generally used in Windows systems. The download link below is a. tar.gz file, which is generally used in Linux systems; However, there is no difference between the files in the two compressed packages. Let's take the Linux system as an example.

6. Upload the WordPress compressed file to the ECS

If you select ECS, you can upload the downloaded compressed package to the server for decompression; If it is a virtual host, you can decompress the compressed package locally and upload it to the virtual host. The remote server can be connected through FTP software to upload files; There are many related software, so I will not repeat them here.

7. Uncompress files on the server and modify directory permissions

#Enter the upload file directory
[ root@hcduguo /]# cd data
#Enter the tar command to decompress the file
[ root@hcduguo data]# tar zxvf wordpress-5.4.2-zh_CN.tar.gz
#After decompressing the file, view it through the ll command
[ root@hcduguo data]# ll
total 13556
drwxr-xr-x 5 root root 4096 Aug 3 12:00 wordpress
-rw-r--r-- 1 root root 13875090 Oct 31 10:42 wordpress-5.4.2-zh_CN.zip
#Change the directory name after decompression to the desired name. The domain name of the website is a good choice;
[ root@hcduguo data]# mv wordpress runoon
#Clear installation package
[ root@hcduguo data]# rm -rf wordpress-5.4.2-zh_CN.tar.gz
#Modify the site directory owner as the default user of the web server
[ root@hcduguo data]# chown -R apache:apache runoon/

8. Create a WordPress database

If we choose ECS, we need to configure the server environment by ourselves, including Apache or nginx server installation, MySQL or mariadb installation, php installation, etc. The installation process of these applications will not be described here. If you are not familiar with them, please refer to the relevant tutorials. If the virtual server is generally configured, you can select the appropriate configuration. The management background has the relevant account password.

We can create a database in the control panel of the ECS or virtual machine host, and record the host address, database name, user name, and password of the database.

#Log in to MYSQL or MariaDB
[ root@hcduguo ~]# mysql -uroot -p
#Create Database
MariaDB [mysql]>create database test001;
MariaDB [mysql]>flush privileges;
#New User
MariaDB [mysql]>create user test001@localhost identified by test2020!;
MariaDB [mysql]>flush privileges;
#Authorize users
MariaDB [mysql]>grant all privileges on test001.* to test001@localhost identified by test2020!;
MariaDB [mysql]>flush privileges;

9. ECS configuration web service [virtual host can be ignored]

If you select ECS, you need to modify the root directory of Apache or nginx;

Apache

Modify DocumentRoot "/var/www/html" to the specified directory; For example: DocumentRoot "/data/runoon"
Restart Apache:
systemctl restart httpd.service
Nginx
Modify the root html to the specified directory; For example: root/data/runoon
Restart nginx:
cd /usr/local/nginx/sbin
./nginx -s reload

10. Install WordPress

Open the browser and enter the domain name or server IP address. The browser will navigate to the installation page by default.

Click the Start button.

Fill in the corresponding information according to the system prompt and click the Submit button

Database Name: fill in the name of the database you created or the database name given by the server background;

User Name: refers to the user name of the server database, which will be set by the user when creating the server database.

Password: refers to the password corresponding to the database user.

Database host: Localhost is used by default, which means local access. If you want to access a remote host, you can enter the corresponding host IP address.

Table Prefix: refers to a uniform prefix for all tables in the database, which can be used to distinguish the names used by different applications in the same database.

After submitting, a dialog box will pop up. Click Install Now;

Enter the website title and set the login account&password

Website title: it is the name of your website, named according to your own needs, and the title will be displayed in the title on the home page.

User name&password: the account and password for logging in to the website background.

Click the Install Wordpress button to continue the installation.

After installation, click Login to log in to the website background

Wordpress background login address: // xxx.xxx.xxx.xxx/wp-logi n.php

At this point, we have completed the construction of the basic template of WordPress. Of course, the main body of the basic template belt is not beautiful enough. You can search for gorgeous themes through the search engine and enable a new main body in the background.

This article is reproduced from the official account: Tutorial of Uncle Bird by Pi Pi Duer

Original link: Getting Started with WordPress | Detailed process of WordPress website establishment For personal study only, intrusion or deletion

This article is written by: Chief Editor Published on Software Development of Little Turkey , please indicate the source for reprinting: //hongchengtech.cn/blog/418.html
Kuke_WP editor
author

Related recommendations

1 year ago (2024-02-20)

What are the main contents of wms system in warehouse management

Original title: What does the wms system mainly embody in warehouse management? What does the wms system mainly embody in warehouse management? Warehouse management has standardized and intelligent process oriented management. A good warehouse management mechanism can improve the efficiency of warehouse managers, relieve their pressure, and complete efficient and accurate work. 1. Warehouse management is accompanied by the progress of the times
1 year ago (2024-02-18)

How to implement the mptt comment function of CMS content management system in Django?, Django management page

During the daily development of content related Web systems in the directory, whether it is Blog or CMS, if you need to add links to interact with users, you must need the comment function. Next, you can implement the comment reply function in Django based on Python's MPTT framework. Note: Because the user comment function will involve a
three hundred and ninety-two
zero
1 year ago (2024-02-18)

Best CMS content management system in 2022, good novel in 2021

Looking for the best CMS software to build your website? At a high level, CMS or content management systems can help you create functional websites without having to use code to build every page from scratch. However, different CMS software has different advantages and disadvantages, so you need to choose the tool that best suits your specific needs and budget. To help, we accept
four hundred and four
zero
1 year ago (2024-02-18)

Shenzhen promotes the access of 5G base station energy storage system to the virtual power plant management center in the city. Does the Shenzhen 5g government subsidize the flow package charge

Xinhua News Agency, Shenzhen, December 14 (Reporter Wang Feng) At the 2022 Carbon Peak Carbon Neutralization Forum and Shenzhen International Low Carbon City Forum held here in Shenzhen, Shenzhen Virtual Power Plant Management Center signed a cooperation agreement on virtual power plant construction with China Tower, China Telecom, China Mobile, China Unicom, Huawei Digital Energy and other units on the 13th, which will jointly promote the city's 5G base station energy storage system
three hundred and thirty-nine
zero
1 year ago (2024-02-18)

Common website cms content management system recommendation, common website cms content management software

CMS is the abbreviation of "Content Management System", which means "Content Management System" in Chinese. These systems have developed common website functions and provided them to users for download, greatly improving the efficiency of website construction. The most common functions of CMS are column management, article management, product management, picture management
three hundred and twenty-six
zero

comment

0 people have participated in the review

Scan code to add WeChat

contact us

WeChat: Kuzhuti
Online consultation: