Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to quickly build a Wordpress personal site

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

How to quickly build a Wordpress personal site, in view of this problem, this article introduces the corresponding analysis and answers in detail, hoping to help more partners who want to solve this problem to find a more simple and easy way.

Lab architecture task 1: create a CVM and log in

Log in to the public account, find your own CVM in the CVM console, and copy your host's public network IP

Log in to the CVM

Step1: download and install client software

To log in to the Linux CVM locally, we need to download a link tool.

Here we use Putty to link to the server.

Access link

Download Putty.exe

Step2: log in to the Linux server

Double-click to open Putty, enter the IP address in Hostname, and click Open below to enter the command line interface

Log in using the user Ubuntu, and the password is the password set by yourself.

After logging in successfully, enter the command sudo su to switch to the root user.

Examples of operations are as follows:

Note: the initial password of the administrator account is assigned by the system, and the user can reset the password. For more information, please see the administrator account password reset. At the same time, the public network IP used for login can be queried in the management interface.

Task 2: purchase a database instance and initialize

Log in to the console and find your own database according to the user name and password you got.

Server-side installation of MySQL Client

# apt-get install mysql-client

Verify that the database is properly connected

First check the internal and external IP of the database

# mysql-h20.66.126.19-uroot-p

Task 3: install and configure the necessary software

Task goal: install the necessary supporting software on the CVM, including Nginx,PHP runtime environment and PHP MySQL extension. And successfully configure a web service through Nginx

Update apt Feed

# apt-get update

Install Nginx

# apt-get install nginx

Verify that Nginx is installed successfully

# service nginx restart

Enter public network IP in the browser

Install the PHP execution environment

# apt-get install php5-fpm

Install the PHP MySQL extension

# apt-get install php5-mysql

Task 4: obtain the wordpress source code and complete the relevant configuration

Task objective: get the wordpress source code from github, configure the web service of wordpress, and create related database tables, as well as wordpress and database connection configuration

Get the wordpress source code

# wget http://download-10012769.cos.myqcloud.com/wordpress-4.5.3-zh_CN.tar.gz

Create a web service working directory

# mkdir / var/www

Extract the wordpress source code to the web service working directory

# tar-xzf wordpress-4.5.3-zh_CN.tar.gz-C / var/www

Modify directory permissions

# chown-R www-data:www-data / var/www/wordpress

Configure Nginx:

Execute the following command to download the setup script

Wget-O echo.sh http://yepscript.com/qcloud-wordpress bash echo.sh

When prompted with Please Input Your Doamin, enter the IP of the CVM and press enter.

After the creation is complete, perform service nginx reload to reload the configuration file

Create a Wordpress database

Click Log in on the database management page of Tencent Cloud to go to the management control page.

Log in with the password you set during initialization. The user name is root, and the password is the password set by yourself.

After logging in successfully, click Tab at the top, select the database, go to the database management page, enter the name of the database to be created in the input box below, and click create

After the creation is successful, it will be automatically directed to the database page, click permissions, and add new user accounts.

Set up your user information in the new page. It should be noted that the host of the database should be your CVM's intranet IP.

Restart web service and php-fpm

Service nginx restart

Service php5-fpm restart

Task 5: install and configure wordpress

Access your server's IP in a browser

Click next to install, enter your database information, and then click next to install

Task 6: use load balancing for parallel expansion (teacher presentation)

Create a load balancer

Bind the previously created CVM to access the service directly through the address of the load balancer

Create an image of an existing CVM

Generate a new CVM and mount it to the load balancer

Stop the service of a machine to see if wordpress is working properly

Task 7: share the image to your own account

Stop your own CVM

Create an image using a CVM

Set up sharing for the created image

View the shared image on the original account

Task 8: clear the database

Log in to the database using the mysql-hIP-u username-p command

Execute the command drop database database name

Save exit

This is the answer to the question about how to quickly build a Wordpress personal site. I hope the above content can be of some help to you. If you still have a lot of doubts to solve, you can follow the industry information channel to learn more about it.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report