Experimental topology diagram:
Experimental requirements:
1. Web server:
Use the source package Apache implementation. After the installation is complete and the execution path is optimized.
After the service is started, the client can access the default Web site through Http://IP.
2. DNS server:
Packages required to install DNS
Create a forward zone (benet.com) and resolve the www.benet.com to the IP address of the Web server.
After the service is started, the client can access the default Web site through http://www.benet.com.
3, awstats log Monitoring Server
Configure Awstats and implement access logs that can monitor the default Web site on the Web server
The client accesses the Awstats Web site and views and counts the access log conditions to the default Web site.
One, Web server:
A Use the source package Apache implementation. After the installation is complete and the execution path is optimized.
B After the service is started, the client can access the default Web site through Http://IP.
Steps
1, first configure the IP address, gateway and shut down the firewall.
Verify that the IP, network management, and firewall settings are successful (with Ifconfig, IP tables-l authentication, respectively)
2. Import the disc and mount it. Ready to install Apache. However, the httpd server software needs to be installed first.
After copying it, go to the httpd file and compile the first three lines, such as:
After optimizing the path, use the command/etc/init.d/httpd start to launch the httpd and modify the client's IP for testing.
Second, the DNS server:
A Packages required to install DNS
B Create a forward zone (benet.com) and resolve the www.benet.com to the IP address of the Web server.
C After the service is started, the client can access the default Web site through http://www.benet.com.
Steps:
1. Hang on the required CD (Linux system CD-ROM) and install the required packages for DNS.
2. Modify the master configuration file/var/named/chroot/etc/named.conf such as:
Modify the zone data file/var/named/chroot/var/named/benet.com.zone, such as:
3. Enter/etc/sysconfig/network-scripts/ifcfg-etho to resolve the www.benet.com to the IP address of the Web server.
4. Test with the client.
Third, awstats log monitoring Server
A Configure Awstats and implement access logs that can monitor the default Web site on the Web server
B The client accesses the Awstats Web site and views and counts the access log conditions to the default Web site.
Steps:
1, enter the/USR/SRC directory, configure the Awstats
2, unpack, and move to/usr/local/awstats and then into the/usr/local/awstats/tools. Such as:
Execute the awstats_configure.pl script as shown in:
./awstats_configure.pl
And then it's all yes.
Next, press the ENTER key
Modify the site statistics Profile/etc/awstats/awstats.www.benet.com.conf, such as:
Then create the directory/var/lib/awstats
Execute./awstats.updateall.pl to perform log analysis. You can first use the client more than a few times in advance.
Using the client to access the analysis system Http://www.benet.com/awstats/awstats.pl?config=www.benet.cor
Article reference public number: L Baby talk about it
Apache Installation and Awstats Analysis system