Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
web-app config
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
schorsch_76
Guru
Guru


Joined: 19 Jun 2012
Posts: 450

PostPosted: Tue Feb 02, 2016 12:59 pm    Post subject: web-app config Reply with quote

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
View user's profile Send private message
forrestfunk81
Guru
Guru


Joined: 07 Feb 2006
Posts: 565
Location: münchen.de

PostPosted: Thu Feb 04, 2016 2:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Thu Feb 04, 2016 10:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum