Joined: 27 Jul 2003
|Posted: Sun Jul 25, 2004 12:30 am Post subject: How to make webapp do what YOU want it to do!
|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:
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.
G4 1ghz iBook
PowerMac G3 (B&W) [Powered by Gentoo and Gentoo alone ]
iPod 3rd generation