View previous topic :: View next topic |
Author |
Message |
schorsch_76 Guru
Joined: 19 Jun 2012 Posts: 452
|
Posted: Tue Feb 02, 2016 12:59 pm Post subject: web-app config |
|
|
On my server i have cgit, bugzilla and docuwiki running. The most anoying thing are the updates of the web apps via webapp-config. If portage updates them, the installation of the web apps (vhosts) are totally broken. Nothing is working. I got several installations of docuwiki. I would like to update them one by one. To prevent any damage to my running sites, i masked any new versions of the web apps. This is of course a security risk! Is there any guide how to handle the webapp-config tool? In fact, i start to hate it.....
I know of this wiki site, but it could not help me.
https://wiki.gentoo.org/wiki/Webapp-config
As an example:
Code: | mouri ~ # webapp-config --list-installs
/var/vhosts/munin.schorsch-tech.de/htdocs/bugs
/var/vhosts/git.schorsch-tech.de/htdocs
/var/vhosts/portage.schorsch-tech.de/htdocs
/var/vhosts/www.schorsch-tech.de/htdocs/.
/var/vhosts/docu.schorsch-tech.de/htdocs/.
/var/vhosts/wm.schorsch-tech.de/htdocs/.
mouri ~ # webapp-config --show-installed
* Fatal error: No .webapp file in /var/vhosts/schorsch-tech.de/htdocs; unable to continue
* Fatal error(s) - aborting |
It seems it doesnt even know what is installed. Is it only me who has problems with that tool?
Edit: as an example: I updated cgit from 0.10 to 0.12. THe wiki tells me
Quote: | To update a previously installed webapp:
root #webapp-config -U owncloud |
So i run
Code: | webapp-config -U cgit
usage: webapp-config [-ICU] [-dghus] <APPLICATION VERSION>
webapp-config: error: argument -U/--upgrade: expected 2 arguments |
cgit is installed at
/var/vhosts/portage.schorsch-tech.de/htdocs
Code: | webapp-config -U cgit 0.12
* Install dir flag not supplied, defaulting to "cgit".
* Fatal error: Cannot clean!
* Fatal error: No package installed in /var/vhosts/schorsch-tech.de/htdocs/cgit
* Fatal error(s) - aborting
mouri georg #
|
So what does this tool help me? _________________ // valid again: I forgot about the git access. Now 1.2GB big. Start: 2015-06-25
git daily portage tree
Web: https://github.com/schorsch1976/portage
git clone https://github.com/schorsch1976/portage |
|
Back to top |
|
|
forrestfunk81 Guru
Joined: 07 Feb 2006 Posts: 567 Location: münchen.de
|
Posted: Thu Feb 04, 2016 2:12 pm Post subject: |
|
|
You have to specify the directory under the htdocs dir with -d parameter (e.g. "-d /" means install to vhost_dir/htdocs/). And possibly you have to specify your host to (-h parameter). My webapps are installed in /var/www/subdomain.domain.tld/htdocs, which works with following upgrade command:
Code: |
webapp-config -U owncloud 8.2.0 -h subdomain.domain.tld -d /
|
And yes, webapp-config is not intuitive. I don't like this tool neither. But currently it works for me. _________________ # cd /pub/
# more beer |
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Thu Feb 04, 2016 10:21 pm Post subject: |
|
|
What I usually do with these is emerge them to get the source tarballs and deps, then ignore webapp-config and set them up by hand. It doesn't auto-update existing apps installed via it anyway, afaik, so there's no real downside to not using it. |
|
Back to top |
|
|
|