`man webapp-config` has the following example: ==== Removing applications To remove the copy of phpmyadmin-2.5.7, you would do this: webapp-config -C -d /databases/admin/ To remove all the virtual copies of phpmyadmin-2.5.7, you would do this: for x in `webapp-config --list-installs phpmyadmin 2.5.7` ; do webapp-config -C -d $x ; done ==== When I tried these examples for awstats 6.5 however they did not work. dhruba ~ # webapp-config --list-installs awstats 6.5 /var/www/dhruba.net/htdocs/stats/dhruba.net/ /var/www/localhost/htdocs/awstats/ dhruba ~ # for x in `webapp-config --list-installs awstats 6.5` ; do webapp-config -C -d $x ; done Fatal error: No package installed in /var/www/localhost/htdocs/var/www/dhruba.net/htdocs/stats/dhruba.net/ Fatal error(s) - aborting Fatal error: No package installed in /var/www/localhost/htdocs/var/www/localhost/htdocs/awstats/ Fatal error(s) - aborting dhruba ~ # webapp-config -C -d /var/www/dhruba.net/htdocs/stats/dhruba.net/ Fatal error: No package installed in /var/www/localhost/htdocs/var/www/dhruba.net/htdocs/stats/dhruba.net/ Fatal error(s) - aborting
The command below works however but only seems to remove one installed instance instead of two. dhruba ~ # webapp-config -C -d awstats 6.5 * Removing awstats-6.5 from /var/www/localhost/htdocs/awstats * Installed by root on 2006-01-30 19:24:19 * Config files owned by root:root
Your instances are installed in different hosts. You need to use the -h parameter to specify the host for the other instanbce you have installed (-h defaults to localhost). Of course, if you'd read the manual (man webapp-config or webapp-config --help) you would know this. Please read the manual and use the forums to confirm bugs before posting them to bugzilla - it is not a support forum.
The second instance was removed by doing the following: dhruba ~ # webapp-config -C -h dhruba.net -d /stats/dhruba.net/ awstats 6.5 * Removing awstats-6.5 from /var/www/dhruba.net/htdocs/stats/dhruba.net/ * Installed by root on 2006-01-29 14:38:56 * Config files owned by root:root
I've managed to remove both instances now. It'd be nice if it said at the end that the instance has been removed successfully. Comment #2: Hi. You seem very keen on reprimanding me for posting this bug. Yes I've managed to remove both instances by using various command parameters but shouldn't the command suggested in the man page have worked? It's easy to close a bug but you shouldn't put people off posting them if they think there's a problem that they can help with.
I apologise. I missed where you'd got the command from. It does look like the man page needs looking at.
Fixed UPSTREAM. http://www.vhost-tools.org/changeset/271#file2 Will be part of webapp-config-1.50.12. Thanks for the report!