Fast WordPress personal blog and intranet penetration published to the Internet

Fast WordPress personal blog and intranet penetration published to the Internet

We can completely build a website of our own through cpolar, and through the data tunnel established by cpolar , the website we store on the local computer can be accessed by public Internet users. A large number of tests and trial runs will inevitably make people feel dazzled. Today, we will put aside the complicated process, and only from the tools needed to build a website and the main steps, we will sort out for you how to build your own Web site with the help of cpolar .

To build a decent website, a website building tool is essential. In the case introduced to you, the website building tools we use are mainly PHPstudy and WordPress.

PHPstudy:

img

WordPress:

img

Usually static web pages do not have high requirements for peripheral components, so we can click the "Website" button on the PHPstudy panel, select the default site of localhost80, and build a simple static web page by downloading the template of the static web page;

img

For dynamic web pages with wider usage and more application functions, it is inevitable to establish a database, download the database management tool (SQL_Front), and upgrade the PHP version at the same time.

build database:

img

Install database management tools:

img

Install PHP7.4 for PHPstudy

img

Only after these peripheral components are installed and set up, can WordPress be installed and used to create a dynamic web page

img

img

Like static web pages, WordPress can also be modularized to customize your own personalized web pages.

img

Since our local webpages rely on the local webpage environment, we need to enable the webpage operating environment to start automatically after booting

img

After the local website is established, what we need to do is to make the website stored on the local computer accessible to public Internet users through cpolar. And cpolar does this by setting up a second-level subdomain.

img

At the same time, in order to allow cpolar to run automatically and stably in the background of the local computer and build a stable data access tunnel for our website, we need to configure the cpolar configuration file "cpolar.yml". It can be seen from the suffix of this file that we need to use special compilation software to modify the configuration file of cpolar. We use the software Visual Studio Code (VS code).

img

After the VS code download and installation is complete, we can edit cpolar.yml, add the second-level subdomain reserved by cpolar to the cpolar client, and teach cpolar to automatically open the data tunnel between the local website and the public Internet.

img

img

At the same time, we can let Windows automatically start cpolar in the background through the command prompt that comes with Windows, so that the data tunnel of cpolar can exist automatically and stably.

img

img

After this series of installation and configuration is completed, we have basically achieved the purpose of building a website on the local computer and publishing it to the public Internet through cpolar . If you have any questions about the use of cpolar , welcome to communicate with us, and we will provide you with the best possible help.

Guess you like

Origin blog.csdn.net/qq_58286439/article/details/132080455