Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 53384
Alias:
Product:
Component:
Status: VERIFIED
Resolution: TEST-REQUEST
Assigned To: Gentoo Web Application Packages Maintainers <web-apps@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Ronald Hummelink <ronald@hummelink.net>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 53384 depends on: Show dependency tree
Bug 53384 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.





View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-06-09 01:42 0000
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 From Stuart Herbert (RETIRED) 2004-06-09 15:39:55 0000 -------
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 From Ronald Hummelink 2004-06-09 17:19:26 0000 -------
Definetly.

Thanks :-)

------- Comment #3 From Stuart Herbert (RETIRED) 2004-06-11 15:09:54 0000 -------
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 From Ronald Hummelink 2004-06-17 13:13:45 0000 -------
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 From Stuart Herbert (RETIRED) 2004-06-26 17:57:40 0000 -------
Doh.  Fixed in -r2.

------- Comment #6 From Ronald Hummelink 2004-07-01 10:44:36 0000 -------
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 From Stuart Herbert (RETIRED) 2004-07-07 02:09:55 0000 -------
Hrm ... what's the problem with -r3?

Best regards,
Stu

------- Comment #8 From Ronald Hummelink 2004-07-07 03:05:35 0000 -------
//// 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 From Stuart Herbert (RETIRED) 2004-07-07 09:39:41 0000 -------
Hrm.  The -r3 tarball had the wrong code in it.  Please try -r4.

Best regards,
Stu

------- Comment #10 From Ronald Hummelink 2004-07-09 10:36:24 0000 -------
Works fine, thx!

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug