How to download and install WampServer and combine it with cpolar intranet penetration to easily achieve public network access to local services

Insert image description here

Preface

Apache + PHP + MysqlWamp is an integrated installation environment under Windows system. It is a set of open source software commonly used to build dynamic websites or servers. It is loved by the majority of users because of its simple graphics and menu installation and configuration environment. This tutorial will be shared with you . Let’s talk about how to install WampServer and combine it with the cpolar intranet penetration tool to achieve public network access to the WampServer service on the intranet.

1.WampServer download and installation

First click to enter the sourceforge official website and download the installation program.

1694590901116

After downloading the installer, double-click to open it to install.

1694591834927

After selecting I accept on the installation interface, click NextNext to install by default.

1694592073383

1694592244478

At the end of the installation, the window shown below will pop up, click

image-20230913160736071

After clicking , a window will pop up, click打开

image-20230913160907587

Then, another window will pop up, as shown below:

1694592656636

Select the same , and then click on the pop-up window打开

1694592757830

The installation will then continue until the following window pops up, clickNext

1694592864862

Click Finishto finish installing WampServer

1694593043287

2.WampServer starts

Once the installation is complete, click on the WampServer shortcut on your desktop.

1694593359859

The program will automatically configure and display the progress bar as shown below, just wait.

1694593242431

After the progress bar runs out, a WampServer program icon will appear in the lower right corner of the desktop, as shown below. If the icon is green, it means the startup is successful!

1694593602902

Now, open the browser and enter localhostthe following interface to display, which means that WampServer is running normally!

1694593686754

3. Install cpolar intranet penetration

At this time, WampServer has been successfully logged in and running, but it can only be accessed locally. If we plan to access the Wamp service on the intranet at any time in the public network environment, we need to install the cpolar intranet penetration tool to achieve this.

3.1 Register an account

Enter cpolar official website: https://www.cpolar.com/

Click in the upper right corner 免费注册, use your email to register a cpolar account for free and log in

20221117173301

3.2 Download cpolar client

After successfully logging in, click to download cpolar locally and install it (you can install it by default all the way). In this tutorial, you choose to download the Windows version.

20221117173307

3.3 Log in to the cpolar web ui management interface

Access 127.0.0.1:9200 on the browser and use the registered cpolar email account to log in to the cpolar web ui management interface (default is local port 9200)

20221117173316

3.4 Create a public network address

隧道管理After successfully logging in and entering the main interface, we click - on the left dashboard 隧道列表, and then click 创建隧道.

1694594083588

  • Tunnel name: The name can be customized and cannot be repeated with the existing tunnel name. I filled it in here.wamp

  • Protocol: Selecthttp

  • Local address:80

  • Domain name type: Free package selection随机域名

  • area:China Top

Click创建

image-20230913163639600

At this time, click 状态on 在线隧道列表the left, you can see the wamp tunnel you just created, and two public network addresses are generated. There are two access methods, namely http and https. Copy an address at will and open it in a public network computer browser. That’s it, as shown in the figure below, it means that the public network has successfully accessed the WampServer of the local intranet.

image-20230913163856162

4. Fixed public network address access

It should be noted that this tutorial uses a random temporary address on the public network generated by free cpolar. This address will change within 24 hours. For users who need to use WampServer outside for a long time, configuring a fixed address is very useful. necessary.

Therefore, we can configure a second-level subdomain name for it. This address is a fixed address and will not change randomly [ps: cpolar.cn has been filed]

Note that you need to upgrade the cpolar package to a basic package or above, and the bandwidth corresponding to each package is different. [cpolar.cn has been registered]

Log in to the cpolar official website, click Reserve on the left, select to reserve the second-level subdomain name, set a second-level subdomain name, click, and copy the 保留reserved second-level subdomain name after the reservation is successful.

image-20230913164145706

Take this tutorial as an example, select the region China VIP, fill in the second-level domain name wamptest, fill in the description test, and click 保留.

image-20230913164244740

隧道管理After the reservation is successful, copy the reserved second-level subdomain address, log in to the cpolar web UI management interface, click - on the left dashboard 隧道列表, find the tunnel to be configured: wamp, and click on the right编辑

image-20230913164455003

Modify the tunnel information and configure the successfully reserved second-level subdomain name into the tunnel.

  • Domain name type: Select二级子域名
  • Sub Domain: Fill in the successfully reserved second-level subdomain namewamptest
  • Region: SelectChina VIP

Click更新

1694594786598

After the update is completed, open it 在线隧道列表. At this time, you can see that the public network address has changed, and the address name has also become a reserved and fixed second-level subdomain name.

1694594925102

Finally, we use a fixed public network address for connection access, copy the second-level subdomain name: http://wamptest.vip.cpolar.cn/ and open it in the browser of another public network computer. There is no error or connection exception. You can see Once the connection is successful, a fixed address access will be set up. You can use this domain name to access the intranet WampServer from the public network anytime and anywhere.

image-20230913164941737

Reprinted from cpolar pole cloud article: WampServer download and installation + Cpolar intranet penetration to achieve public network access to local services

Guess you like

Origin blog.csdn.net/YYDsis/article/details/133001764