Error Disabling Google Analytics

As a follow on to Bug #715 (New Google Analytics Plug-in Breaks Apache), the Google Analytics feature cannot be easily disabled from a virtual server when Apache is down:

Updating Webmin user ..
.. done

Removing Google Analytics tracking from website configuration ..
Failed to modify server : flush_file_lines called on non-loaded file /etc/httpd/conf/httpd.conf

This requires the system administrator to find the pertinent configuration file (which may not be httpd.conf if using include files), and manually remove or comment out the following lines:

#PerlRequire /etc/webmin/virtualmin-google-analytics/apachemod.pl
#PerlOutputFilterHandler Virtualmin::GoogleAnalytics
#PerlSetVar AnalyticsID UA-xxxxxxx-x

Status: 
Closed (fixed)