Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 121531
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Web Application Packages Maintainers <web-apps@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Narada Sage <narada.sage@googlemail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 121531 depends on: Show dependency tree
Bug 121531 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-02-04 04:22 0000
`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

------- Comment #1 From Narada Sage 2006-02-04 04:32:14 0000 -------
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

------- Comment #2 From Allen Brooker (AllenJB) 2006-02-04 04:39:16 0000 -------
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.

------- Comment #3 From Narada Sage 2006-02-04 04:43:01 0000 -------
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

------- Comment #4 From Narada Sage 2006-02-04 04:48:35 0000 -------
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.

------- Comment #5 From Allen Brooker (AllenJB) 2006-02-04 05:27:55 0000 -------
I apologise. I missed where you'd got the command from. It does look like the
man page needs looking at.

------- Comment #6 From Gunnar Wrobel 2006-03-04 08:34:09 0000 -------
Fixed UPSTREAM.

http://www.vhost-tools.org/changeset/271#file2

Will be part of webapp-config-1.50.12.

Thanks for the report!

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug