WordPress local installation detailed tutorial: server environment configuration and site deployment

WordPress It is one of the most popular web content management systems in the world, and it's a quick way to get started, whether you're building a personal blog or an official business website. In this article, we will continueInstalling the 1Panel PanelContinue to explain, in detail, WordPress on the local server environment configuration and website deployment of the whole process.

图片[1]-WordPress本地安装教程:1Panel环境配置与建站流程

I. Configuring the 1Panel Environment

1. Install OpenResty

  • show (a ticket) 1Panel In the backend, go to "Application Management" > "All".
  • Click to install OpenResty
  • Default configuration is sufficient, you need to enable the port external access option
图片[2]-WordPress本地安装教程:1Panel环境配置与建站流程
图片[3]-WordPress本地安装教程:1Panel环境配置与建站流程

2. Installing MySQL

  • Continue in the App Store by clicking MySQL
  • Install and set the initial root password (remember it for later WordPress installations)
  • External access to the port also needs to be enabled
  • You can manage the database in "Database Management" after completion.
图片[4]-WordPress本地安装教程:1Panel环境配置与建站流程

3. Installing Redis

  • Open the 1Panel backend and go to Application Management > All
  • Click to install Redis
  • Default configuration is sufficient, you need to enable the port external access option
图片[5]-WordPress本地安装教程:1Panel环境配置与建站流程

4. Install PHPMyAdmin

图片[6]-WordPress本地安装教程:1Panel环境配置与建站流程

5. Installation of the PHP runtime environment

Find PHP in the store and click Install.

Fill in the name php runtime environment name, other content default.

Extended template selection WordPress.

图片[7]-WordPress本地安装教程:1Panel环境配置与建站流程

II. Creation of a website and database

✅ 1. New site

  • Left Navigation > Site Management > Sites > New Site
图片[8]-WordPress本地安装教程:1Panel环境配置与建站流程
  • Point open we need to select the operating environment, select the PHP operating environment we have just created, in the bulk add domain name input box to add their own domain names such as
    • 123.com
    • www.123.com
  • Then click Generate
图片[9]-WordPress本地安装教程:1Panel环境配置与建站流程

✅ 2. New database

  • "Database Management > MySQL > New Database
    • Database name: e.g. wordpress
    • Username: e.g. wp_user
    • Password: Customized strong password
图片[10]-WordPress本地安装教程:1Panel环境配置与建站流程

Upload and deploy the WordPress program

✅ 1. Download WordPress installation package

leave forWordPress official website WordPress.orgDownload the latest version of the WordPress file.

图片[11]-WordPress本地安装教程:1Panel环境配置与建站流程

After downloading, click on the website-site directory and open the root directory of the website

图片[12]-WordPress本地安装教程:1Panel环境配置与建站流程

Click on Upload to upload the WordPress installer we just downloaded

图片[13]-WordPress本地安装教程:1Panel环境配置与建站流程

After uploading we unzip it, select our WordPress archive and click on More to unzip it.

图片[14]-WordPress本地安装教程:1Panel环境配置与建站流程

After unzipping it will be a WordPress folder We need to move the files inside to the root directory of the website.

Open the folder you just unzipped, click on the name to select it all, click on Move in the upper right corner, and then return to the directory you just came from to paste it.

图片[15]-WordPress本地安装教程:1Panel环境配置与建站流程
图片[16]-WordPress本地安装教程:1Panel环境配置与建站流程

At this point our site files are configured.

IV. Installation SSL certificateand site configuration

Click on Website - Certificates and click on Acme Accounts to create an account.

图片[17]-WordPress本地安装教程:1Panel环境配置与建站流程

Enter any email here in the correct format.

图片[18]-WordPress本地安装教程:1Panel环境配置与建站流程

After creating successfully we apply for a certificate. Click apply for certificate, get your domain name from the website, check http, click finish

图片[19]-WordPress本地安装教程:1Panel环境配置与建站流程

Go back to Site Configuration and click Configuration

图片[20]-WordPress本地安装教程:1Panel环境配置与建站流程

Find https in the site configuration and click on enable, select the certificate you just created.

图片[21]-WordPress本地安装教程:1Panel环境配置与建站流程

Find Pseudo-Static, select the WordPress solution, click Save and Reload

图片[22]-WordPress本地安装教程:1Panel环境配置与建站流程

At this point we have completed the required configuration, next you can open the site to install WordPress.

V. Finish the WordPress Installation Wizard

✅ 1. Browser access to the website

Visit your bound domain name or server IP to go to the WordPress installation page:

  • Language Selection: Simplified Chinese
  • Database information is filled in:
    • Database Name:wordpress
    • Username:wp_user
    • Password: the password you set

All of the above information can be found in the database

图片[23]-WordPress本地安装教程:1Panel环境配置与建站流程

The host we copy from inside the link information

图片[24]-WordPress本地安装教程:1Panel环境配置与建站流程

Once you've done that, set the site name, administrator account password, and you're in the WordPress backend.

VI. Follow-up recommended operations

🔧 Plugin Recommendation:

  • Cache acceleration:WP Super Cache,LiteSpeed Cache
  • Safety and security:Wordfence Security
  • SEO Optimization:Yoast SEO,Rank Math
  • Chinese optimization:WP Chinese Conversion

🎨 Topic Recommendation:

  • Free Themes: Astra, Kadence, GeneratePress
  • E-commerce themes: WoodMart, Flatsome (with WooCommerce)

summarize

Now, get your hands dirty and start your own website project! If you wish to learn more in-depth theme customization, plugin development or performance optimization, you can also stay tuned to our follow-up content.

If there is a problem following the content of the article please contact our customer service for a solution!


Contact Us
Can't read the tutorial? Contact us for a free answer! Free help for personal, small business sites!
客服微信
Customer Service
Tel: 020-2206-9892
QQ咨询:1025174874
(iii) E-mail: [email protected]
Working hours: Monday to Friday, 9:30-18:30, holidays off
© Reprint statement
本文作者:托尼屎大颗
THE END
If you like it, support it.
kudos8213 share (joys, benefits, privileges etc) with others
commentaries sofa-buying

Please log in to post a comment

    No comments