Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 174386 - app-admin/webapp-config-1.50.15 unable to install apps into directories outside of htdocs
Summary: app-admin/webapp-config-1.50.15 unable to install apps into directories outsi...
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-13 08:08 UTC by Eric Brown
Modified: 2007-04-13 08:26 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Brown 2007-04-13 08:08:18 UTC
The use of webapp-config is forced upon users who want to install the portage versions of applications like squirrelmail.  Users should be able to install these web applications anywhere they want using webapp-config.

Not everyone maintains /var/some.domain.com structures, and not everyone likes to put all web apps under htdocs.  Therefore, webapp-config should probably have a flag like --absolute-directory to allow users to simply install the application at will wherever he/she wants.  Currently, it doesn't appear to work with directories outside of htdocs, and when instructed to install outside of htdocs, it just installs files in the base of the hostname folder.

It would also be nice if users were not forced to use webapp-config.

Reproducible: Always

Steps to Reproduce:
1. emerge squirrelmail
2. webapp-config -I -h localhost -d /var/www/localhost/somedir
3. webapp-config appears to install the files to /var/www/localhost (not ./somedir where it should be)
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-04-13 08:17:18 UTC
See /etc/vhosts/webapp-config

Comment 2 Eric Brown 2007-04-13 08:26:16 UTC
Here's a fix I found:

change /etc/vhosts/webapp-config:

vhost_htdocs_insecure="/"

("" is illegal, documentation should indicate this)

then use -d somedir

(this is relative to the htdocs dir, so even though the man page says /databases/blah, it doesn't mean that the directory is absolute, using -d /var/www/localhost/somedir, webapp-config would install it to the actual directory: /var/www/localhost/htdocs/var/www/localhost/somedir)


Perhaps some of this could just be clarified a bit in the docs?