Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 53384 - Add support to webapp-config to influence DocumentRoot base
Summary: Add support to webapp-config to influence DocumentRoot base
Status: VERIFIED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Web Application Packages Maintainers
URL: http://www.gentoo.org/proj/en/glep/gl...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-09 01:42 UTC by Ronald Hummelink
Modified: 2004-07-09 10:36 UTC (History)
1 user (show)

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 Ronald Hummelink 2004-06-09 01:42:56 UTC
I keep seperate DocumentRoot for my non-ssl and ssl virtuals like: /var/www/{vhost}/http and /var/www/{vhost}/https as I feel it is useless to make things you want to use over ssl available over the non-ssl server.
Webapp-config enforces /var/www/{vhost}/htdocs as base for the installed webapp.



Reproducible: Always
Steps to Reproduce:
Comment 1 Stuart Herbert (RETIRED) gentoo-dev 2004-06-09 15:39:55 UTC
Hi Ronald,

This is a good point.  If I add a --secure switch, which installs into /var/www/<vhost>/htdocs-secure, would that give you what you need?  

You'll be able to edit the /var/www and the htdocs-secure bit through the /etc/vhosts/webapp-config configuration file.

Best regards,
Stu
Comment 2 Ronald Hummelink 2004-06-09 17:19:26 UTC
Definetly.

Thanks :-)
Comment 3 Stuart Herbert (RETIRED) gentoo-dev 2004-06-11 15:09:54 UTC
Hi,

I've just added webapp-config v1.10 to Portage, which includes the --secure switch.  Please test it, and let me know how you get on.

Best regards,
Stu
Comment 4 Ronald Hummelink 2004-06-17 13:13:45 UTC
First of all, Sorry Stuart for the insane delay.

support for other dirs then htdocs seems to be incomplete still, even the default for --secure (htdocs-secure):

webapp-config -h hummelink.xs4all.nl --secure  -I  phpmyadmin 2.5.6-r1 -d /phpMyAdmin


 * Running with these settings:
 *   --force-virtual is OFF
 *   --virtual-dirs  is virtual
 *   --virtual-files is virtual
 *   --user          is root
 *   --group         is root
 *   --hostname      is hummelink.xs4all.nl
 *   --server        is apache-basic
 *   --directory     is /phpMyAdmin
 *   package         is phpmyadmin
 *   version         is 2.5.6-r1
 *   action          is install
 *   link type       is file
 *   document root   is /usr/share/webapps///htdocs-secure
 * Do we have phpmyadmin-2.5.6-r1 available?
 *   Yes, we do
 * Is there already a package installed in /var/www/hummelink.xs4all.nl/htdocs-secure/phpMyAdmin?
 * Checking that the username:group 'root:root' is valid
 * Checking specific requirements for apache-basic

 * Installing phpmyadmin 2.5.6-r1 ...
 *   Creating required directories
 *     phpmyadmin-2.5.6-r1 does not install from
 *       /usr/share/webapps/phpmyadmin/2.5.6-r1/htdocs-secure; skipping
 *     /var/www/hummelink.xs4all.nl/. already exists as a real directory;
 *       skipping /var/www/hummelink.xs4all.nl/.
 *     /var/www/hummelink.xs4all.nl/error already exists as a real directory;
 *       skipping /var/www/hummelink.xs4all.nl/error
 *     /var/www/hummelink.xs4all.nl/icons already exists as a real directory;
 *       skipping /var/www/hummelink.xs4all.nl/icons
 *     /var/www/hummelink.xs4all.nl/cgi-bin already exists as a real directory;
 *       skipping /var/www/hummelink.xs4all.nl/cgi-bin
 *   Linking in required files
 *     phpmyadmin-2.5.6-r1 does not install any files from
 *       /usr/share/webapps/phpmyadmin/2.5.6-r1/htdocs-secure
 *     Installing from /usr/share/webapps/phpmyadmin/2.5.6-r1/hostroot

Comment 5 Stuart Herbert (RETIRED) gentoo-dev 2004-06-26 17:57:40 UTC
Doh.  Fixed in -r2.
Comment 6 Ronald Hummelink 2004-07-01 10:44:36 UTC
I'm sorry but as we discussed in irc its not, the new -r3 I cannot get to work properly as i could do with the config file change with -r2...
Comment 7 Stuart Herbert (RETIRED) gentoo-dev 2004-07-07 02:09:55 UTC
Hrm ... what's the problem with -r3?

Best regards,
Stu
Comment 8 Ronald Hummelink 2004-07-07 03:05:35 UTC
//// Default config file:

amyrlyn vhosts # webapp-config -I -d phpMyAdmin phpmyadmin 2.5.7 -h hummelink.xs4all.nl -p

 * Running with these settings:
 *   --force-virtual is OFF
 *   --virtual-dirs  is virtual
 *   --virtual-files is virtual
 *   --user          is root
 *   --group         is root
 *   --hostname      is hummelink.xs4all.nl
 *   --server        is apache-basic
 *   --directory     is phpMyAdmin
 *   package         is phpmyadmin
 *   version         is 2.5.7
 *   action          is install
 *   link type       is file
 *   document root   is /usr/share/webapps///htdocs
 * Do we have phpmyadmin-2.5.7 available?
 *   Yes, we do
 * Is there already a package installed in /var/www/hummelink.xs4all.nl/htdocs/phpMyAdmin?
 * Checking that the username:group 'root:root' is valid
 * Checking specific requirements for apache-basic

//// VHOST_HTDOCS_INSECURE="http"

amyrlyn vhosts # webapp-config -I -d phpMyAdmin phpmyadmin 2.5.7 -h hummelink.xs4all.nl -p

 * Running with these settings:
 *   --force-virtual is OFF
 *   --virtual-dirs  is virtual
 *   --virtual-files is virtual
 *   --user          is root
 *   --group         is root
 *   --hostname      is hummelink.xs4all.nl
 *   --server        is apache-basic
 *   --directory     is phpMyAdmin
 *   package         is phpmyadmin
 *   version         is 2.5.7
 *   action          is install
 *   link type       is file
 *   document root   is /usr/share/webapps///http
 * Do we have phpmyadmin-2.5.7 available?
 *   Yes, we do
 * Is there already a package installed in /var/www/hummelink.xs4all.nl/http/phpMyAdmin?
 * Checking that the username:group 'root:root' is valid
 * Checking specific requirements for apache-basic

amyrlyn vhosts # webapp-config -I -d phpMyAdmin phpmyadmin 2.5.7 -h hummelink.xs4all.nl

 * Running with these settings:
 *   --force-virtual is OFF
 *   --virtual-dirs  is virtual
 *   --virtual-files is virtual
 *   --user          is root
 *   --group         is root
 *   --hostname      is hummelink.xs4all.nl
 *   --server        is apache-basic
 *   --directory     is phpMyAdmin
 *   package         is phpmyadmin
 *   version         is 2.5.7
 *   action          is install
 *   link type       is file
 *   document root   is /usr/share/webapps///http
 * Do we have phpmyadmin-2.5.7 available?
 *   Yes, we do
 * Is there already a package installed in /var/www/hummelink.xs4all.nl/http/phpMyAdmin?
 * Checking that the username:group 'root:root' is valid
 * Checking specific requirements for apache-basic

 * Installing phpmyadmin 2.5.7 ...
 *   Creating required directories
 *     phpmyadmin-2.5.7 does not install from
 *       /usr/share/webapps/phpmyadmin/2.5.7/http; skipping
 *     /var/www/hummelink.xs4all.nl/. already exists as a real directory;
 *       skipping /var/www/hummelink.xs4all.nl/.
 *     /var/www/hummelink.xs4all.nl/error already exists as a real directory;
 *       skipping /var/www/hummelink.xs4all.nl/error
 *     /var/www/hummelink.xs4all.nl/icons already exists as a real directory;
 *       skipping /var/www/hummelink.xs4all.nl/icons
 *     /var/www/hummelink.xs4all.nl/cgi-bin already exists as a real directory;
 *       skipping /var/www/hummelink.xs4all.nl/cgi-bin
 *   Linking in required files
 *     phpmyadmin-2.5.7 does not install any files from
 *       /usr/share/webapps/phpmyadmin/2.5.7/http
 *     Installing from /usr/share/webapps/phpmyadmin/2.5.7/hostroot

To complete installation, you must

1. Update MySQL's grant tables and the pmadb database:
     mysql -u root -p < /usr/share/webapps/phpmyadmin/2.5.7/sqlscripts/mysql/2.5.7_create.sql
2. Reload MySQL:
     /etc/init.d/mysql restart

If you are upgrading from an earlier version and are using phpMyAdmin's
features for master/foreign tables be sure to read
  http://localhost/phpmyadmin/Documentation.html#col_com
You will need to perform the ALTER TABLE step yourself.

Finally, point your browser to http://localhost/phpmyadmin/.

 * Install completed - success
amyrlyn vhosts #

ls /var/www/hummelink.xs4all.nl/http/phpMyAdmin/ -la
total 4
drwxr-xr-x  2 root root  72 Jul  7 12:00 .
drwxr-xr-x  3 root root  80 Jul  7 12:00 ..
-rw-rw-rw-  1 root root 335 Jul  7 12:00 .webapp


// Won't get any better once I move to --secure

amyrlyn vhosts # webapp-config -I -d phpMyAdmintest phpmyadmin 2.5.7 -h hummelink.xs4all.nl --secure -p

 * Running with these settings:
 *   --force-virtual is OFF
 *   --virtual-dirs  is virtual
 *   --virtual-files is virtual
 *   --user          is root
 *   --group         is root
 *   --hostname      is hummelink.xs4all.nl
 *   --server        is apache-basic
 *   --directory     is phpMyAdmintest
 *   package         is phpmyadmin
 *   version         is 2.5.7
 *   action          is install
 *   link type       is file
 *   document root   is /usr/share/webapps///htdocs-secure
 * Do we have phpmyadmin-2.5.7 available?
 *   Yes, we do
 * Is there already a package installed in /var/www/hummelink.xs4all.nl/htdocs-secure/phpMyAdmintest?
 * Checking that the username:group 'root:root' is valid
 * Checking specific requirements for apache-basic

//// Won't improve if I change the secure dir..
webapp-config -I -d phpMyAdmintest phpmyadmin 2.5.7 -h hummelink.xs4all.nl --secure -p

 * Running with these settings:
 *   --force-virtual is OFF
 *   --virtual-dirs  is virtual
 *   --virtual-files is virtual
 *   --user          is root
 *   --group         is root
 *   --hostname      is hummelink.xs4all.nl
 *   --server        is apache-basic
 *   --directory     is phpMyAdmintest
 *   package         is phpmyadmin
 *   version         is 2.5.7
 *   action          is install
 *   link type       is file
 *   document root   is /usr/share/webapps///https
 * Do we have phpmyadmin-2.5.7 available?
 *   Yes, we do
 * Is there already a package installed in /var/www/hummelink.xs4all.nl/https/phpMyAdmintest?
 * Checking that the username:group 'root:root' is valid
 * Checking specific requirements for apache-basic
Comment 9 Stuart Herbert (RETIRED) gentoo-dev 2004-07-07 09:39:41 UTC
Hrm.  The -r3 tarball had the wrong code in it.  Please try -r4.

Best regards,
Stu
Comment 10 Ronald Hummelink 2004-07-09 10:36:24 UTC
Works fine, thx!