[Step 3] Load Balancing EasySLB Website Setup

Published: 2015-01-20

I. windows Operating System

  1. First, use 建站助手 on the file server to create a site, see the screenshot:

    zhandian.jpg

Mainly create the ftp username and password, file storage path, and mysql username and password. After creation, stop the file server iis (command iisreset /stop), disable “World Wide Web Publishing Service” and “IIS Admin Service”, and turn off the firewall.

2. Through ftp software, upload the web files to the file server; mysql can be restored through phpmyadmin, or restored by command.

3. Refer to /faq/list.asp?unid=882 Set up file sharing, note that you must use the ordinary user that created the site for sharing, and the permission must be Full Control.

4. Create a site on the web server (this must be done on every web server). The “Site Name” and “ftp password” must be the same as those on the file server; uncheck “Associate mysql”; no need to create mysql. After completion, turn off the server firewall, connect once to the file server at \\192.168.236.148, and enter the username and password used when creating the site earlier.

Then open iis, find the site just created, open Properties > Home Directory, manually modify the path, select “A share on another computer” for the connection, and enter “\\192.168.236.148\test\wwwroot” as the address. See the screenshot,

11.png


After all web servers are configured, log in to our Management Center - Independent IP Management - Load Balancing EasySLB, click “Add Server” to add the backend WEB servers to the cluster.

Note that you need to submit the whitelist first: log in to our Management Center - Independent IP Management - Load Balancing EasySLB, click Manage, and click Submit Whitelist.

The entire load balancing configuration is now complete.


II. linux Operating System

1. Log in to the wdcp panel of the server where NFS is located (the file server)

 l.png

Fill in the domain name, ftp account name, database name, password, and other related information as prompted on the page, and then directly click “Save”.

2. Delete the database user

l1.png
 
At the position shown in the figure, delete the database user just created

3. Recreate the database user just deleted

l2.png
 
Note that the host name must be written as %

4. Upload files to the server via ftp; mysql can be imported via the phpmyadmin included with wdcp, or upload a .sql file and import it using commands yourself.

Note: 1. Please remotely log in to the web server and restart apache with the command service httpd restart

      2. For the mysql address in the program, just enter the intranet IP address of the NFS server directly.