Linux Redhat 6.5 Apache log split

Source: Internet
Author: User
Tags apache log fully qualified domain name

Apache 2.4.4 automatically split logs, generated by date
  • Wed software Apache Nginx lls7 Tomcat Software
  • HTTP protocol 80 Port
  • Domain name resolution DNS TCP 53 (with DNS connection) UDP 53 port (Resolve DNS)
  • Language html5+css3 jsp php java python
  • RPM-IVH/MNT/PACKAGES/HTTPD-2.2.15-29.EL6_4.X86_64.RPM installation httpd
  • rpm-ivh/mnt/packages/bind-9.8.2-0.17.rc1.el6_4.6.x86_64 Installing DNS domain name Resolution
  • Vim/etc/httpd/conf/httpd.conf Modifying the httpd master configuration file
  • 135 Listen 192.168.100.101:80 write to its own server IP
  • 136 #Listen 80 Notes Lpv6
  • 276 ServerName www.soso.com:80 fully qualified domain name
  • Service httpd Restart Reload Services
  • After reloading the service, you will also access the Web services provided by Linux.
  • Etc/httpd/logs/access_log
  • Figure 1

  • Cd/etc/httpd/conf.d/Creating a log split
  • 1
  • Mkdir-p/usr/local/apache/htdocs Creating a site
  • Mkdir-p/usr/local/apache/logs Storage Log
  • cd/usr/local/apache/htdocs/preparing to create a log split home
  • echo "This is Logs" > index.html Create homepage
  • Modify the DNS domain name resolution Master Profile Zone profile zone data file and then restart two services
  • Web-type production view record
  • Hanging in shared files decompression awstats-7.6
  • Create a directory for mount points
  • Hanging on host shared files
  • Tar zxvf awstats-7.6.tar.gz-c/opt/Extract Files
  • MV awstats-7.6//usr/local/awstas Easy to manage
  • Cd/usr/local/awstats/tools configuration file
  • ./awstats_configure.pl execution
  • Config file path (' None ' to skip Web server Setup):
  • >/etc/httpd/conf/httpd.conf//input configuration file
  • Your Web site, virtual server or profile name:
  • > www.benet.com//input domain
  • All the others are Y or return
  • Vim/etc/httpd/conf/httpd.conf Adding content
  • <directory "/usr/local/awstats/wwwroot" >
    Options None
    AllowOverride None
    Order Allow,deny
    Allow from all
    </Directory>
  • Vim/etc/awstats/awstats.www.benet.com.conf Modifying content
  • Logfile= "/var/log/httpd/access_log"//Modify access log file location
  • Dirdata= "/var/lib/awstats"//awstats default does not exist (need to create)
  • Service httpd Restart
  • ./awstats_updateall.pl Now//Update data
  • Then visit
  • Http://www.benet.com/awstats/awstats.pl?config=www.benet.com

Linux Redhat 6.5 Apache log split

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.