Apache Webserver shut down after restore backup to new server
Failed to start service : Starting httpd: [FAILED]
Mon Jun 28 19:29:28 2010] [error] Can’t locate /etc/webmin/virtualmin-google-analytics/apachemod.pl in @INC (@INC contains: /usr/libexec/webmin /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 . /etc/httpd) at (eval 2) line 1.\n
Operating system CentOS Linux 5.5
Webmin version 1.510 Virtualmin version 3.79 Pro
Theme version 7.7
It looks like the problem is related to the Google Analytics module. Apache is trying to load it, but it doesn’t look like it’s enabled in Virtualmin.
What I’d do is is use Virtualmin to disable the Google Analytics module for that Virtual Server, then re-enable it. That, or simply comment out the line in your /etc/httpd/conf/httpd.conf file that is trying to load apachemod.pl.
where is the Google Analytics module located.
I re-save the backup file without Enable Analytics tracking and Webalizer reporting . uploaded to new server and all is well
I just wanted to add my .02 on this.
I am running a GPL 3.81 host and migrating virtual servers to 3.84 PRO.
If a virtual server had analytics enabled when the backup was performed the restore will cause the PRO machine to restart Apache2 unsuccessfully with errors.
tail -f /var/log/apache2/errors.log
[Fri May 20 15:04:51 2011] [error] Can’t locate /etc/webmin/virtualmin-google-analytics/apachemod.pl in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl . /etc/apache2) at (eval 2) line 1.\n
The fix is to edit the Virtual Server in Pro and select the checkbox next to “Enable Analytics tracking?”, save the Virtual Server and start apache2 through the Webmin->Servers->Apache Webserver area.
Thanks for pointing me in the right direction Eric.