The plugin Analytics Tracking cannot be used : Apache's mod_perl version 2 must be installed

I cannot enable the google analytics plugin in the featurs an plugins page. I get

Failed to save enabled features : The plugin Analytics Tracking cannot be used : Apache's mod_perl version 2 must be installed.

I have mod-perl2 installed. from my system...

dpkg -l libapache2-mod-perl2 Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Description +++-==============-==============-============================================ ii libapache2-mod 2.0.4-6ubuntu1 Integration of perl with the Apache2 web ser

dpkg -l webmin-virtual-server-google-analytics No packages found matching webmin-virtual-server-google-analytics. jsouthwell@amber:/etc/apache2/mods-enabled$ dpkg -l webmin-virtualmin-google-analytics Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Description +++-==============-==============-============================================ ii webmin-virtual 2.5 Webmin module for 'Virtualmin Analytics'

Status: 
Active

Comments

this is a serious problem because I can't restore my backup...

I get...

Warning - the following features were enabled in one or more of the domains in the backup, but are not enabled on this system : Analytics Tracking

This backup cannot be restored without breaking the configuration of this system.

Hmm, you may want to verify that the Perl module is enabled within Apache.

You can do that from the command line by typing this command:

a2enmod perl

And then restart Apache:

/etc/init.d/apache2 restart

After that, are you able to enable the Google Analytics feature?

I have the same problem.

Debian 5 and virtualmin 3.94 on the system I want to backup and a minimal fresh installation of Debian 7 with Virtualmin 4.02 on the system I want to restore. There was the analytics plugin installed but not used on the Debian 5 system. I also unistalled the plugin before i made the backup but I still got this annoying error message when i want to restore it on the new Debian 7 system:

<strong>Restore Virtual Servers</strong>
Are you sure you want to restore the selected domains and features from /home/backup on SSH server xxx.n et? Any existing data for the features in these domains will be over-written!

Warning - the following features were enabled in one or more of the domains in the backup, but are not enabled on this system : Analytics Tracking
This backup cannot be restored without breaking the configuration of this system.

so the only option would be to install the perl module for apache2 I guess.

Yeah in your particular situation, it sounds like you would indeed want to install mod_perl onto your new system in order to restore those domains.

You can always disable analytics and remove mod_perl after everything is restored.

Prior to removing the analytics plugin on your Debian 5 system, do you recall if you went into System Settings -> Features and Plugins, and disabled that plugin?

yes I tried some cases. one time just disabled the plugin in the virtualmin plugins settings. another time I disabled it in virtual server settings on the one domain it was active and then disabled the plugin. In Both cases there was the error message. In both cases I did a new complete backup before loading via SSH to the new server.