Control Web Panel
WebPanel => Addons => Topic started by: DragoCom on May 31, 2025, 01:05:04 AM
-
Is there such an addon for CWP for server wide analytics for each website. Like awstats and webalizer worked but they are so far out of date it's crazy. I need something easy to install serverwide without requiring a docker or container.
-
@overseer or @cyberspace had posted a nice tutorial how to manually update GoAccess which is CWP's analytics program.
I tried searching for it, but couldn't find it.
Hopefully 1 of the 2 can repost it for you.
I'll also keep looking for you.
But GoAccess is only like 1 version behind the current one. 1.9.3 vs 1.9.4
-
Is that cli only like it is already or is there a way to view it like domain.xcom/stats/
-
That's the stats program built into CWP.
So when you are in the user control panel, on the main page under 'CWP Settings', look for 'Statistcs'
The next window that comes up will ask you to select 'Domain, Frequency, Data' and the click 'Generate'.
It will open a new window with the stats Dashboard, and if you look in the bottom left corner, the sideways test will read 'by GoAccess v1.9.4 and GWSocket', if you have the latest version installed with AL9.
Also on the right side you will see Goaccess Log Analyzer where you can also delete old files to save space.
-
Here's how to update GoAccess under CentOS 7:
https://forum.centos-webpanel.com/informations/goaccess-geo-ip-location/msg50684/#msg50684 (https://forum.centos-webpanel.com/informations/goaccess-geo-ip-location/msg50684/#msg50684)
I've also used Webalizer before on a dedicated server; it wasn't difficult to setup. And long ago I've used AWstats, but don't like it as well -- very "heavy" and slow.
-
I upgraded goaccess but I have always liked the way webalizer puts the stats out for you. So I tried installing it using this guide but changed apt-get to yum:
https://www.unixmen.com/install-and-configure-webalizer-on-ubuntu/
Doing so I got this as a result:
Install 7 Packages
Total download size: 2.4 M
Installed size: 6.6 M
Is this ok [y/N]: y
Downloading Packages:
(1/7): httpd-filesystem-2.4.37-65.module_el8.10.0+3966+b9483c84.3.noarch.rpm 284 kB/s | 44 kB 00:00
(2/7): almalinux-logos-httpd-84.5-1.el8.noarch.rpm 140 kB/s | 29 kB 00:00
(3/7): mod_http2-1.15.7-10.module_el8.10.0+3966+b9483c84.3.x86_64.rpm 470 kB/s | 155 kB 00:00
(4/7): httpd-2.4.37-65.module_el8.10.0+3966+b9483c84.3.x86_64.rpm 2.7 MB/s | 1.4 MB 00:00
(5/7): GeoIP-1.6.12-7.el8.x86_64.rpm 239 kB/s | 124 kB 00:00
(6/7): GeoIP-GeoLite-data-2018.06-5.el8.noarch.rpm 1.2 MB/s | 552 kB 00:00
(7/7): webalizer-2.23_08-15.el8.x86_64.rpm 335 kB/s | 148 kB 00:00
-----------------------------------------------------------------------------------------------------------------------------------------
Total 1.1 MB/s | 2.4 MB 00:02
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : GeoIP-GeoLite-data-2018.06-5.el8.noarch 1/7
Installing : GeoIP-1.6.12-7.el8.x86_64 2/7
Running scriptlet: httpd-filesystem-2.4.37-65.module_el8.10.0+3966+b9483c84.3.noarch 3/7
Installing : httpd-filesystem-2.4.37-65.module_el8.10.0+3966+b9483c84.3.noarch 3/7
Installing : almalinux-logos-httpd-84.5-1.el8.noarch 4/7
Installing : mod_http2-1.15.7-10.module_el8.10.0+3966+b9483c84.3.x86_64 5/7
Installing : httpd-2.4.37-65.module_el8.10.0+3966+b9483c84.3.x86_64 6/7
warning: /etc/logrotate.d/httpd created as /etc/logrotate.d/httpd.rpmnew
Running scriptlet: httpd-2.4.37-65.module_el8.10.0+3966+b9483c84.3.x86_64 6/7
Running scriptlet: webalizer-2.23_08-15.el8.x86_64 7/7
Installing : webalizer-2.23_08-15.el8.x86_64 7/7
Running scriptlet: GeoIP-GeoLite-data-2018.06-5.el8.noarch 7/7
Running scriptlet: httpd-2.4.37-65.module_el8.10.0+3966+b9483c84.3.x86_64 7/7
Running scriptlet: webalizer-2.23_08-15.el8.x86_64 7/7
Verifying : almalinux-logos-httpd-84.5-1.el8.noarch 1/7
Verifying : httpd-2.4.37-65.module_el8.10.0+3966+b9483c84.3.x86_64 2/7
Verifying : httpd-filesystem-2.4.37-65.module_el8.10.0+3966+b9483c84.3.noarch 3/7
Verifying : mod_http2-1.15.7-10.module_el8.10.0+3966+b9483c84.3.x86_64 4/7
Verifying : GeoIP-1.6.12-7.el8.x86_64 5/7
Verifying : GeoIP-GeoLite-data-2018.06-5.el8.noarch 6/7
Verifying : webalizer-2.23_08-15.el8.x86_64
Installed:
GeoIP-1.6.12-7.el8.x86_64 GeoIP-GeoLite-data-2018.06-5.el8.noarch
almalinux-logos-httpd-84.5-1.el8.noarch httpd-2.4.37-65.module_el8.10.0+3966+b9483c84.3.x86_64
httpd-filesystem-2.4.37-65.module_el8.10.0+3966+b9483c84.3.noarch mod_http2-1.15.7-10.module_el8.10.0+3966+b9483c84.3.x86_64
webalizer-2.23_08-15.el8.x86_64
Complete!
[root@viking src]# sudo mv /var/www/webalizer /var/www/html/
mv: cannot stat '/var/www/webalizer': No such file or directory
[root@viking src]# sudo gedit /etc/webalizer/webalizer.conf
sudo: gedit: command not found
[root@viking src]# sudo nano /etc/webalizer/webalizer.conf
[root@viking src]# sudo webalizer
Error: Can't open log file /var/log/httpd/access_log
[root@viking src]#
-
Ok just realized that since I did the goaccess update and the webalizer install that went whacky "ALL" my websites are coming uo 502 Bad Gateway, so basically my whole VPS is not showing sites uggggghhhh HELP!!!
-
So I removed (supposedly) webalizer using sudo yum remove webalizer but I still get 502 bad gateway:
[root@viking ~]# sudo yum remove webalizer
Dependencies resolved.
=========================================================================================================================================
Package Architecture Version Repository Size
=========================================================================================================================================
Removing:
webalizer x86_64 2.23_08-15.el8 @epel 360 k
Removing unused dependencies:
GeoIP x86_64 1.6.12-7.el8 @epel 385 k
GeoIP-GeoLite-data noarch 2018.06-5.el8 @epel 1.2 M
Transaction Summary
=========================================================================================================================================
Remove 3 Packages
Freed space: 1.9 M
Is this ok [y/N]: y
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Erasing : webalizer-2.23_08-15.el8.x86_64 1/3
Erasing : GeoIP-1.6.12-7.el8.x86_64 2/3
Running scriptlet: GeoIP-GeoLite-data-2018.06-5.el8.noarch 3/3
Erasing : GeoIP-GeoLite-data-2018.06-5.el8.noarch 3/3
Running scriptlet: GeoIP-GeoLite-data-2018.06-5.el8.noarch 3/3
Verifying : GeoIP-1.6.12-7.el8.x86_64 1/3
Verifying : GeoIP-GeoLite-data-2018.06-5.el8.noarch 2/3
Verifying : webalizer-2.23_08-15.el8.x86_64 3/3
Removed:
GeoIP-1.6.12-7.el8.x86_64 GeoIP-GeoLite-data-2018.06-5.el8.noarch webalizer-2.23_08-15.el8.x86_64
Complete!
[root@viking ~]#
-
Also I just got an email that says this:
The following list of files have FAILED the md5sum comparison test. This means that the file has been changed in some way. This could be a result of an OS update or application upgrade. If the change is unexpected it should be investigated:
/usr/bin/goaccess: FAILED
/usr/bin/tcamgr: FAILED open or read
/usr/bin/tcamttest: FAILED open or read
/usr/bin/tcatest: FAILED open or read
/usr/bin/tcbmgr: FAILED open or read
/usr/bin/tcbmttest: FAILED open or read
/usr/bin/tcbtest: FAILED open or read
/usr/bin/tcfmgr: FAILED open or read
/usr/bin/tcfmttest: FAILED open or read
/usr/bin/tcftest: FAILED open or read
/usr/bin/tchmgr: FAILED open or read
/usr/bin/tchmttest: FAILED open or read
/usr/bin/tchtest: FAILED open or read
/usr/bin/tctmgr: FAILED open or read
/usr/bin/tctmttest: FAILED open or read
/usr/bin/tcttest: FAILED open or read
/usr/bin/tcucodec: FAILED open or read
/usr/bin/tcumttest: FAILED open or read
/usr/bin/tcutest: FAILED open or read
/bin/goaccess: FAILED
/bin/tcamgr: FAILED open or read
/bin/tcamttest: FAILED open or read
/bin/tcatest: FAILED open or read
/bin/tcbmgr: FAILED open or read
/bin/tcbmttest: FAILED open or read
/bin/tcbtest: FAILED open or read
/bin/tcfmgr: FAILED open or read
/bin/tcfmttest: FAILED open or read
/bin/tcftest: FAILED open or read
/bin/tchmgr: FAILED open or read
/bin/tchmttest: FAILED open or read
/bin/tchtest: FAILED open or read
/bin/tctmgr: FAILED open or read
/bin/tctmttest: FAILED open or read
/bin/tcttest: FAILED open or read
/bin/tcucodec: FAILED open or read
/bin/tcumttest: FAILED open or read
/bin/tcutest: FAILED open or read
-
That is because AlmaLinux is NOT Ubuntu. ::)
If you look at the packages it installed, you overwrote some key packages, like Apache when you where trying to install Webalizer.
Running a server you need some experience, so you don't follow guides not for your OS.
Your best bet now is to do the 1 time support from CWP, and see if they can restore the server.
If not, hope you made a snapshot (which is always recommended, before making major changes) you can restore to.
Otherwise, you'll be rebuilding the server from scratch.
-
WARNING!
Job for httpd.service failed because the control process exited with error code.
See "systemctl status httpd.service" and "journalctl -xe" for details.
-
WARNING!
Job for httpd.service failed because the control process exited with error code.
See "systemctl status httpd.service" and "journalctl -xe" for details.
Normally just about any redhat or ubuntu guides work fine by changing the commands to fit your linux distro. But I guess this time it did not. Anyway what is 1 time support?
-
Which part of, YOU OVERWROTE THE APACHE INSTALLATION following the wrong guide, didn't make sense.
Now you have to try & undo what you did, without corrupting the system further.
Hence why I recommended hiring CWP to try & fix it for you.
-
https://support.centos-webpanel.com/index.php?rp=/store/support-onetime (https://support.centos-webpanel.com/index.php?rp=/store/support-onetime)
If you wanted Webalizer instead of GoAccess, all that needed to be done was:
dnf install webalizer
But GoAccess is built into the client portal.
-
https://support.centos-webpanel.com/index.php?rp=/store/support-onetime (https://support.centos-webpanel.com/index.php?rp=/store/support-onetime)
If you wanted Webalizer instead of GoAccess, all that needed to be done was:
dnf install webalizer
But GoAccess is built into the client portal.
I did the 1 time support but when I hit confirm and pay I get a 503 forbidden don't have access error everytime but I was charged grrrrr
-
So I sent them a regular ticket and told them about the 1 time and what my problem is. Hopefully they can fix it.
-
I just fixed it by going to select webservers and I rechose apache, nginx and varnish and recompiled and it all works again.