Apache Installation and Awstats analysis system

Source: Internet
Author: User

Experimental topology diagram:

Experimental requirements:

1. Web server:

    1. Use the source package Apache implementation. After the installation is complete and the execution path is optimized.

    2. After the service is started, the client can access the default Web site through Http://IP.

2. DNS server:

    1. Packages required to install DNS

    2. Create a forward zone (benet.com) and resolve the www.benet.com to the IP address of the Web server.

    3. After the service is started, the client can access the default Web site through http://www.benet.com.

3, awstats log Monitoring Server

    1. Configure Awstats and implement access logs that can monitor the default Web site on the Web server

    2. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.