Abstract:

preface

When there are more and more like-minded people, it is easy to miss the important content or jump out of the group chat from time to time and get very upset. At this time the forum is a very good tool, a regular look at the forum is not afraid of missing what important content, also will not feel upset. Self-built forum also has a benefit is very high degree of freedom, such as transmission of an attachment no longer need to put a certain degree of cloud disk, to avoid everyone 10KB /s drag down.

So let’s learn how to build a PHPWind forum to help communicate and exchange. Phpwind (PW for short) is an open source community program based on PHP and MySQL. It is one of the most popular general purpose forum programs in China. Ali cloud developer forum runs on PW, very stable and efficient.

The tutorial

Set up a server using a web disk

1. First we have to open the cloud server

Student users can purchase ECS with certain configuration after student authentication on aliyun official website, only 9.9 yuan per month, student users do not need to worry about spending too much on the server.

User after students after the certification can be in the related website to buy, address: promotion.aliyun.com/ntms/campus…

You can go to the management console of the account management just registered to view the server and some of its configurations.

2. Install LAMP environment

The pre-installed environment and location can be selected according to your actual situation, as long as you have PHP and MYSQL. A LAMP environment (Linux + Apache + MySQL + PHP) is recommended for beginners, so feel free to choose between pre-installed systems. After purchasing the ECS, you do not need to purchase an image. You only need to stop the server and replace the system disk.



The LAMP environment (Ubuntu16.04 Apache PHP7.1) is recommended when choosing an image, because this image provides rich tools such as OSS backup, and Apache, PHP and other components can be upgraded, more secure!

After replacing the system disk, select the mirror market and select from the mirror market (including the operating system).

Enter the installation environment and click Use

If the public IP address is displayed, the image is successfully installed.

3. Prepare control software

Next, we need to install a software called PuTTY on our computer for remote connection and management of our servers on Aliyun ECS.

PuTTY is a remote login terminal tool. It can run on different platforms and simulate xterm terminals in Both Win32 and Unix systems.

Here is the download address: github.com/larryli/PuT…

Note: In the column of host name or IP address, fill in the public IP address of the server on Aliyun ECS.

Then install FileZilla, a great cross-platform FTP software. Just declare the SFTP :// protocol in the host bar, and you can connect and see the directory on the remote Linux.

Download: filezilla-project.org/download.ph…

4. Install PHPWind

Next, we need to download phpWind file and upload it to the /data/wwwroot/default/ directory on alicloud ECS using FileZilla.

Download: github.com/medz/phpwin…

Running in Putty:

grep dbrootpwd /root/oneinstack/options.confCopy the code

You will be prompted:

dbrootpwd='KeYpZrZx'Copy the code

This is our root password, which generally defaults to KeYpZrZx. Open http://ecs public IP/old/phpMyAdmin in the browser

Enter the root account and password, click Login, and click the list on the leftnew

In the database name field, enter the database name, for example, newdb

Finally, enter the following command in PuTTY:

chown -R www /data/wwwroot/default/Copy the code

Then you can open our ECS public IP address in the browser

Other steps are very simple and basically install an EXE software, is the database filling need to pay attention to:

Then we are done ~, you can see our forum

Next is to sort out the forum and the name of the section, determine a core content, and then we talk about, the management of the forum is a knowledge, we can slowly explore.