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:
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
Definetly. Thanks :-)
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
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
Doh. Fixed in -r2.
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...
Hrm ... what's the problem with -r3? Best regards, Stu
//// 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
Hrm. The -r3 tarball had the wrong code in it. Please try -r4. Best regards, Stu
Works fine, thx!