This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
106
CentOS-WebPanel GUI / Re: Resources monitor per user/website
« on: September 02, 2018, 10:23:10 PM »
Does this helps
yum install python-devel -y
yum install python-devel -y
107
CentOS-WebPanel GUI / Re: Resources monitor per user/website
« on: September 01, 2018, 10:44:27 PM »108
How to / Re: [Tutorial] integrating Awstats in Centos Web Panel
« on: August 31, 2018, 02:23:40 PM »
Well when you install awstats it asks you to automatically fix combined logs but at that time you pressed N and it didnt do that. That was the issue.
109
How to / Re: [Tutorial] integrating Awstats in Centos Web Panel
« on: August 31, 2018, 02:18:04 PM »
add the below command at the end of your httpd.conf file
CustomLog "logs/access_log" combined
CustomLog "logs/access_log" combined
110
How to / Re: [Tutorial] integrating Awstats in Centos Web Panel
« on: August 31, 2018, 02:11:34 PM »
nano /usr/local/apache/conf/httpd.conf
find line
#CustomLog "logs/access_log" combined
Uncomment it and save it
run below commands again.
rm -rf /usr/local/apache/logs/access_log
service httpd restart
/usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=www.salespc.net
find line
#CustomLog "logs/access_log" combined
Uncomment it and save it
run below commands again.
rm -rf /usr/local/apache/logs/access_log
service httpd restart
/usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=www.salespc.net
111
How to / Re: [Tutorial] integrating Awstats in Centos Web Panel
« on: August 31, 2018, 01:54:26 PM »
last thing you can do is to check if your apache is using combined log format
cat /usr/local/apache/conf/httpd.conf | grep combined
cat /usr/local/apache/conf/httpd.conf | grep combined
112
How to / Re: [Tutorial] integrating Awstats in Centos Web Panel
« on: August 31, 2018, 01:52:24 PM »
I dont know if actually it is causing issue. I would suggest you to contact your server admin regarding it once.
113
How to / Re: [Tutorial] integrating Awstats in Centos Web Panel
« on: August 31, 2018, 01:36:24 PM »
Well this is not absolutely correct output it needs. you are behind nginx and that may be causing issue.
rm -rf /usr/local/apache/logs/access_log
service httpd restart
/usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=www.salespc.net
If the above doesnt work. Temporarily disable nginx and run the above commands again and then check if it updates
rm -rf /usr/local/apache/logs/access_log
service httpd restart
/usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=www.salespc.net
If the above doesnt work. Temporarily disable nginx and run the above commands again and then check if it updates
114
How to / Re: [Tutorial] integrating Awstats in Centos Web Panel
« on: August 31, 2018, 01:30:56 PM »
output of
tail -f /usr/local/apache/logs/access_log
tail -f /usr/local/apache/logs/access_log
115
How to / Re: [Tutorial] integrating Awstats in Centos Web Panel
« on: August 31, 2018, 01:25:44 PM »
Its not working before of log format error. When you were installing awstats it must have asked you to fix log format. Did you checked no for it?
Also what is output of
cat /usr/local/apache/conf/httpd.conf | grep LogFormat
Also what is output of
cat /usr/local/apache/conf/httpd.conf | grep LogFormat
116
How to / Re: [Tutorial] integrating Awstats in Centos Web Panel
« on: August 31, 2018, 01:20:39 PM »
Well then what is output of
/usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=www.salespc.net
/usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=www.salespc.net
117
How to / Re: [Tutorial] integrating Awstats in Centos Web Panel
« on: August 31, 2018, 01:11:21 PM »
Run the commands below
Code: [Select]
sed -i 's|var/\log/\httpd/\mylog.log|usr\/local/apache/logs/access_log|g' /etc/awstats/awstats.www.salespc.net.conf
rm -rf /usr/local/apache/logs/access_log
service httpd restart
crontab -l | { cat; echo "* * * * * /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=www.salespc.net"; } | crontab -
118
How to / Re: [Tutorial] integrating Awstats in Centos Web Panel
« on: August 31, 2018, 01:06:42 PM »
What is output of
cat /etc/awstats/awstats.www.salespc.net.conf | grep LogFile
cat /etc/awstats/awstats.www.salespc.net.conf | grep LogFile
119
How to / Re: [Tutorial] integrating Awstats in Centos Web Panel
« on: August 31, 2018, 01:01:13 PM »
what is output of
ls -lah /etc/awstats/
ls -lah /etc/awstats/
120
How to / Re: [Tutorial] integrating Awstats in Centos Web Panel
« on: August 31, 2018, 12:56:02 PM »
yes you need to change with the domain name you choose while installing awstats