While enabling Analytics, I get the following error.
Failed to save enabled features : The plugin Analytics Tracking cannot be used : Apache's mod_perl version 2 must be installed
yum search mod_perl or modperl gives me no related results!
The result of rpm -qa | grep virtual-server wbm-virtual-server-5.01.gpl-1.noarch wbt-virtual-server-theme-9.0-2.noarch wbt-virtual-server-mobile-2.5-1.noarch ust-virtual-server-theme-6.9-1.noarch
yum install wbm-virtualmin-google-analytics Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: centos.mbni.med.umich.edu * extras: chicago.gaminghost.co * updates: mirror.oss.ou.edu Package 2:wbm-virtualmin-google-analytics-2.7-1.noarch already installed and latest version Nothing to do
Appreciate help....
Comments
I found this package "ftp://rpmfind.net/linux/centos/6.7/os/x86_64/Packages/mod_perl-2.0.4-11...." which is actually for CentOS 6.7. But I have CentOS 7. Is there a different package/way to install mod_perl?
Submitted by andreychek on Fri, 04/01/2016 - 00:29 Comment #2
Howdy -- unfortunately, CentOS stopped including mod_perl in their repository.
It is available in EPEL though. There's a direct download link here for that:
http://dl.fedoraproject.org/pub/epel/7/x86_64/m/mod_perl-2.0.8-10.201406...
Error trying to install the above .rpm even after installing the dependencies noted below.....
rpm -iUh mod_perl*.rpm error: Failed dependencies: perl(BSD::Resource) is needed by mod_perl-2.0.8-10.20140624svn1602105.el7.x86_64 perl(Linux::Pid) is needed by mod_perl-2.0.8-10.20140624svn1602105.el7.x86
Submitted by andreychek on Fri, 04/01/2016 - 09:59 Comment #4
Ah, looks like it requires two Perl dependencies as well:
http://dl.fedoraproject.org/pub/epel/7/x86_64/p/perl-BSD-Resource-1.29.0...
http://dl.fedoraproject.org/pub/epel/7/x86_64/p/perl-Linux-Pid-0.04-18.e...
Installation succeeded for mod_perl.
Thanks Andrew once again.
Submitted by andreychek on Fri, 04/01/2016 - 11:27 Comment #6
Glad to help, and we're happy to hear that worked!
Please feel free to let us know if you have any other questions.
Recently, I encountered this problem again on another CentOS server. So, thought of listing the steps I followed. Hope somebody will benefit from this post/comment.
Here are the steps to follow in order to install mod_perl on CentOS 7.
As root, connect to your server via ssh using PUTTY or the like. 1. yum install epel-release 2. yum install mod_perl mod_perl-devel 3. yum install perl-BSD-Resource perl-Linux-Pid 4. service httpd restart
Now, go to Virtualmin and enable Analytics in "Features and Plugins" under "System Settings"