Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to make webapp do what YOU want it to do!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
krunk
Guru
Guru


Joined: 27 Jul 2003
Posts: 316

PostPosted: Sun Jul 25, 2004 12:30 am    Post subject: How to make webapp do what YOU want it to do! Reply with quote

webapp-config is one big mess. Anyone who's tried to install horde or other applications knows this. "Application already installed in directory" errors, /var/www/localhost/htdocs/var/localhost/htdocs/<app> nonesense and refusing to uninstall with "! / not specified" are not hard to come by. . . but lo! read below and you'll be installing webapps the way YOU want in no time.

As an example I'll use horde. Commonly horde is installed in <domain>/htdocs/horde and all add-ons in <domain>/htdocs/horde/<plugin>. However, webapp-config only allows one application per directory, so you often run into conflicting installations. The way to fix this is by modifiying the location of the files in /usr/share/webapps/* so that you have full control over which directory the .webapp file is placed (ergo no conflicts). Are you ready? it's dirt simple: just copy all the program files into the htdocs directory than explicitly specify where you wish to install.

Demo of the accounts horde plugin:
Code:

cd /usr/share/webapps/horde-accounts/2.1/htdocs/;
mv horde/accounts/* . ;
webapp-config -I -h www.example.com -d horde/accounts horde-accounts 2.1;


The above will install into the horde/accounts directory as expected instead of the annoying conflicting webapp errors.

IMHO, I feel this should be the default behavior of a webapp (explicit assignment of a directory). Furthermore, the webapp team should develop a firm submission policy requiring that packages adhere or be rejected. It would eliminate a lot of headaches.

Cheers,

Happy vhosting!
_________________
G4 1ghz iBook
PowerMac G3 (B&W) [Powered by Gentoo and Gentoo alone :)]

Dual G5
iPod 3rd generation
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks 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