Apache Awstats Installation Error resolution process suitable for beginners

Source: Internet
Author: User
Tags perl script

**

awstats : https://jaist.dl.sourceforge.net/project/awstats/AWStats/7.0/awstats-7.0.tar.gz
Error status (completed)
This is a webpage access error:

Log error

First of all, my error is this.
Workaround:
First: Firewall add 80 port allowed through policy
-A input-p tcp-m state--state new-m TCP--dport 80-j ACCEPT
Add the policy to the /etc/sysconfig/iptables file as follows

Then close SELinux
Temporary shutdown can be used
Setenforce 0

Permanent shutdown needs to be set in the file (but takes effect after reboot)
Cat/etc/selinux/config

Find selinux=enforcing instead of disbled

This time the error inside or missing files need to create
Touch/var/www/html/favicon.ico
Mkdir/var/lib/awstats

These two files and folders can be seen in the error log (/var/log/httpd/error_log) carefully observed
It's no problem logging into http://www.qqq.com/awstats/awstats.pl?config=www.qqq.com at this time.
This Awstats statistics page can also be opened.
But because the update of this statistic page needs to execute a script inside the system to update the access information of the website (install the Perl script that comes with Awstats)
./awstats.pl-update-config=www.qqq.com
There's going to be an error here, that's it.

Touch/var/log/httpd/mylog.log
It's good to run it again!
Normal

Basically this is all solved! Then remember to add a task plan!

Apache Awstats Installation Error resolution process suitable for beginners

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.