Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Confused by webapp-config
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
joeljkp
Guru
Guru


Joined: 06 Mar 2004
Posts: 316
Location: Starkville, MS, USA

PostPosted: Tue Apr 26, 2005 9:32 pm    Post subject: Confused by webapp-config Reply with quote

I'm seriously confused by the messages I'm getting when I upgrade phpmyadmin:

Code:
[ebuild  NS   ] dev-db/phpmyadmin-2.6.2-r1  -vhosts 1,606 kB


Notice it's slotted, so it should install along with my current copy (2.6.2_rc1).

Then it installs, and I get these messages:

Code:
* vhosts USE flag not set - auto-installing using webapp-config
 * This is an upgrade
 * phpmyadmin-2.6.2_rc1 is already installed - upgrading
 * Running /usr/sbin/webapp-config -U -h localhost -u root -d /phpmyadmin phpmyadmin 2.6.2-r1
--- cfgpro file config.inc.php
^o^ hiding ./._cfg0001_config.inc.php

 * One or more files have been config protected
 * To complete your install, you need to run this command:
 *
 *   CONFIG_PROTECT="/var/www/localhost/htdocs/phpmyadmin" etc-update

--- cfgpro file config.inc.php
--- !empty dir /var/www/localhost/icons
--- !empty dir /var/www/localhost/error
--- !empty dir /var/www/localhost/cgi-bin
--- !empty dir themes/original/img
--- !empty dir themes/original/css
--- !empty dir themes/original
--- !empty dir themes/darkblue_orange/img
--- !empty dir themes/darkblue_orange/css
--- !empty dir themes/darkblue_orange
--- !empty dir themes
--- !empty dir scripts
--- !empty dir libraries/transformations
--- !empty dir libraries/fpdf/font
--- !empty dir libraries/fpdf
--- !empty dir libraries/export
--- !empty dir libraries/engines
--- !empty dir libraries/dbi
--- !empty dir libraries/dbg
--- !empty dir libraries/auth
--- !empty dir libraries
--- !empty dir lang
--- !empty dir css
--- !morecontents /var/www/localhost/htdocs/phpmyadmin
--- !empty dir /var/www/localhost/htdocs/phpmyadmin
 * Remove whatever is listed above by hand


Should I really remove all that stuff? That would basically get rid of everything in /var/www/localhost, plus all the subdirs of /var/www/localhost/htdocs/phpmyadmin.

Then I get this message:

Code:
To complete installation, you must

1. Update MySQL's grant tables and the pmadb database:
     mysql -u root -p < /usr/share/webapps/phpmyadmin/2.6.2_rc1/sqlscripts/mysql/2.6.2_rc1_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/.


Since this is an update, is this really necessary? It probably won't hurt anything, anyway.

Finally, I get this:

Code:
* Removing old version phpmyadmin-2.6.2_rc1

 dev-db/phpmyadmin
    selected: 2.6.2_rc1
   protected: none
     omitted: 2.6.2-r1


Wait, this was an upgrade, and it was slotted. Why is it removing the old version?

Can anyone help me understand this stuff?
_________________
Catch me on Jabber: joeljkp@jabber.org
Back to top
View user's profile Send private message
tukachinchila
Apprentice
Apprentice


Joined: 11 Mar 2005
Posts: 274
Location: Oregon

PostPosted: Wed Apr 27, 2005 6:34 am    Post subject: Reply with quote

Quote:
Should I really remove all that stuff? That would basically get rid of everything in /var/www/localhost, plus all the subdirs of /var/www/localhost/htdocs/phpmyadmin.

No, don't do that. It's just telling you that the old phpmyadmin installed some files in those directories, and not all of those files could be deleted. I wouldn't worry about those warnings too much.

Quote:
Since this is an update, is this really necessary? It probably won't hurt anything, anyway.

I don't use phpmyadmin, but I would follow those instructions if I did.

Quote:
Wait, this was an upgrade, and it was slotted. Why is it removing the old version?

If an ebuild makes use of webapp-config, then it isn't really slotted the same way other ebuilds are slotted. AFAIK, webapp-config handles all of the slotting itself instead of portage so that you can have multiple versions of the same application installed on multiple virtual hosts. Since a lot of people running servers have virtual hosts, it makes it easier for developers to let webapp-config deal with installing this group of programs.

If you'd rather not have all of these steps happen for you automatically, you can add 'vhosts' to your USE flags in /etc/make.conf. That's how you would really take advantage of the power of webapp-config. So, for instance, if you wanted to install phpmyadmin onto two virtual hosts, you could do:
Code:
webapp-config -I -h localhost -d phpmyadmin phpmyadmin 2.6.2-r1
webapp-config -I -h forums -d phpmyadmin phpmyadmin 2.6.2-r1
The first would install phpmyadmin into '/var/www/localhost/htdocs/phpmyadmin' and the second would additionally install it into '/var/www/forums/htdocs/phpmyadmin'. Then users could access phpmyadmin from either www.yoursite.com or from forums.yoursite.com (assuming you had your virtual hosts set up properly). In your case, you're not using virtual hosts (I assume), so portage tries to automate the process of running webapp-config for you. Also, if you added 'vhosts' to your use flags, then portage would not automatically remove your old version of phpmyadmin.

You can get more info about webapp-config from the man pages.

HTH
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum