The ultimate solution for beginners to build a WordPress website Quickly build a perfect personal blog (Blog) based on the Bitnami stack

In order to build my own blog, it is really not easy for me without relevant knowledge. After a long time of exploration and research, I finally set up this blog (Blog), then the first article is to record Now, after repeated tossing, I feel that a method is the most suitable for me. The article contains a lot of my own experience, not pure technology. The specific construction process will be in the second part. If you want to know how to build quickly, you can skip the first part.

The first part of the mental journey

WordPress is a very popular website building platform. It is said that nearly 30% ( data source ) websites in the world are built through WordPress. It is developed using PHP language and can be set up on servers that support PHP and MySQL databases. of course you can also use WordPress as a content management system (CMS). After years of updates and iterations, it has reached version 4.9.1 when I write this article. Regardless of stability, ease of use, security, and scalability, it can meet the needs of most websites, and for Xiaobai, it is also the most It is easy to get started, and after some learning, you can build a fully functional Blog.
Let’s talk about my mental journey first. At first, I was watching YouTube to have a good internet speed. I thought about building a ladder, and then I searched for relevant information on the Internet. Most of these tutorials are only introduced by personal blogs. I read a lot of related Bolg articles one after another, and I followed the method in the tutorial, starting with the purchase of a host, step by step, and successfully built my own ladder. In this process, sometimes when I need to type a command, I can't remember and I have to check it repeatedly. I often go to the browser's history to find the tutorial of the article I read yesterday, which is very troublesome. I feel that those bloggers build a blog. In addition to the original intention of knowledge sharing, some of these articles should also be used as life study notes. At that time, I also had the idea of ​​building my own blog, but I really had no clue about Xiaobai's self (I didn't know there was such a thing as Word Press at that time). But upholding the belief that life is endless and tossing and turning, I have embarked on the journey.
If you just build a WordPress site, there is actually a very simple way. The major cloud service providers in China have solutions for blogs (but the classification is more chaotic, there is space / virtual host / cloud host / VPS, etc., and the major service providers still have I have my own naming method, and I was confused at the beginning), just register and buy a domain name and open a blog space. Although it is generally only a few hundred M in size and the traffic is limited, the price is relatively cheap, and the operating environment They are all configured. After getting the account password, you can directly configure and send documents. Sometimes there is an activity of buying a domain name and sending it to a space. This is the first time I bought a domain name from Wanwang and sent it to a space.

 

 

But the biggest trouble is the filing review. After purchasing the domain name, you need to submit the application materials to the service space service provider, purchase the background curtain, and after receiving it by mail, take a photo and upload the photo as required, and the service provider submits it to your local Communications Administration for review. The website can only be established after passing the pass. If the process is fast, it will take 20 days. At that time, I was rejected because the name I gave did not meet the requirements and asked to change the name. Later, I gave up because of the trouble, and decided to find a foreign host, and there was a time to build a ladder. experience, it is quicker to get started. So far, I have used 6 hosts in total. Generally speaking, each has its own characteristics. I will not introduce them one by one here. This blog uses a European host, and the network speed is slower, 400+ms. Delay, but enough for this blog, the biggest advantage is that it is cheap, 20GB SSD hard disk / 1T traffic for 1 euro per month, very cost-effective, I will have the opportunity to introduce the advantages and disadvantages of different hosts in detail in the future.
After the host is the choice of the system and the operating environment. There is nothing to say about the system. Linux is a must, and there are several options for the operating environment. To be honest, I don’t know much about it . The installation is very simple. The official website has operation instructions. You can follow this step by step, but it is a bit troublesome to reinstall each time. It is very convenient, you can enter the background configuration and post in minutes, but there is also a disadvantage. The host service providers you choose are different, and each has its own characteristics. If you change the host in the middle, the data migration should be more troublesome; then I try I used the Docker container mode, but because I confused myself when configuring the port, I gave up in stages (but I personally feel it is a good solution, and I will continue to study it later).
Now it's time to talk about the protagonist of this time, the Bitnami stack Word Press solution. Bitnani is an open source project specializing in web applications and solution stacks. At present, the official website has provided more than 140 integrated stacks of various software and environments, and has very detailed documentation support, as well as active community questions, which can be solved All the problems you have encountered (but the most painful of course is that you don't have Chinese, so you can use it as a level 6 practice). Bitnami provides three solutions for WordPress, the first cloud launcher (that is, the integration image similar to the hosting service provider mentioned above, currently supports 7 cloud service providers such as Google Cloud, Amazon Web Services, Microsoft Azure, etc.), the second container deployment (that is, Docker), the third local installation, I chose this one, it can be installed in Windows, Mac, Linux, virtual machines, and integrates all the program environments required for WordPress to run. The pre-configuration of SSL, as long as you apply for a certificate, put it in the corresponding file directory, it is very easy, I have not mastered all its usage methods, here is to introduce the installation and configuration process to you, let me Tell everyone as much as you know.

The second part of the construction process

This building process is done using the host of vultr's Debian 9 system. You can also use it in a virtual environment such as local host/Vmware/other remote VPS.
Let’s talk about the general process first, 1) Create a Debian 9 host instance in the vultr background, and get the root user password ⇒ 2) Use SSH tools to remotely connect to the host ⇒ 3) Download and install Bitnami ’s WordPress stack program ⇒ 4) After completion, enter the WordPress background configuration ⇒5) Is it easy to post the first blog post, so let's start.


1. The node I choose is the Sydney node (server loctaion) of vultr . I am used to it, and it is fairly stable. The average delay is about 240ms. It will be faster to choose a Japanese node, but many Japanese nodes have been broken by everyone. , It's purely by luck, don't choose Singapore if there is no special need, domestic even Singapore vultr is around Japan, the delay is very high, the system (server type) chooses Debian 9, and the configuration (server size) 5 knives is enough, of course If the 2.5 knives are in stock, it is more recommended. Other options do not need to be selected for the time being. Just enter a host name at the bottom line, and then create a deployment instance (deploy server), wait for a while to get the IP of the host instance, and log in as root. password.

 

 

2. It is best to ping the newly created host to ensure that the IP can be communicated. Use the Xshell SSH connection tool (the default port port is 22) to log in to the host using the root account password (it is invisible when entering the password, just press Enter after entering it).

 

3. Download Bitnami 's WordPress stack program, the download address is: https://bitnami.com/redirect/to/167684/bitnami-wordpress-4.9.1-0-linux-x64-installer.run , the latest version can go to the official website Obtain (find the corresponding system version download button on the right-click copy link), use the wget command:
https://bitnami.com/redirect/to/186010/bitnami-wordpress-4.9.5-0-linux-x64-installer.run

Before installing WordPress, you need to give the installer and execute permissions, and then execute the installation, run the following two commands (note to replace the actual downloaded version name):
chmod 755 bitnami-APPNAME-VERSION-linux.run ./bitnami-APPNAME-VERSION-linux.run

 

After executing the second command, it will enter the installation process, which is similar to the process of installing applications with a graphical interface in Windows. Basically, some installations are also configured: component selection (select all YSE), installation directory selection (/opt/ NAME yourself), choose English as the language (Chinese support is not good), the account name and password can be used casually, there is a mailbox configuration to pay attention to (choose not to configure, you can configure it later in the WordPress background), then jump out of these two lines, enter Y, press Enter, and you're done.


4. If you have purchased a domain name, you can now resolve to the IP of the host, and then access the website through the domain name. If not, you can directly enter the IP access in the browser, enter the completion interface of bitnami, and click Access WordPress to enter the blog home page.

 

Then you need to do some settings, remove the wordpress suffix after the domain name, so that the bitnami page will no longer be displayed when accessing the domain name, execute the following command, installdir needs to be replaced with the installation directory set by the installation.
installdir/apps/wordpress/bnconfig --appurl /

Enter the WordPress background, enter the domain name /wp-admin/ in the browser, and the account password is set during installation.
 
Language change Chinese: Settings-General-site Language-Simplified Chinese. At this point, it has been successfully completed. For other related settings, you can refer to the support documentation of bitnami, or see the update of the article in the future.

5. Write the first article, article - write article - fill in the title - type in the first article you want to send - publish.
 

follow-up

In fact, there are still many places that need to be configured and debugged in the background configuration, such as SMTP mailbox configuration, SSL security certificate configuration, SEO configuration, various management negative reviews installation, theme installation, URL setting. . . But it's too late today. I wrote this article for an afternoon + evening. It was the first time I posted an article. I also encountered many small problems in the middle, and I will record them one by one in the future. The SSH tool Xshell used in this article can be downloaded from the official website, and can be obtained for free by individuals and schools. There are also similar tools such as PuTTY, MobaXterm, etc., and the usage methods are basically the same.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324732987&siteId=291194637