Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 489672 - www-apps/drupal-7.23 fails to install into web root
Summary: www-apps/drupal-7.23 fails to install into web root
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-28 17:37 UTC by three sixes
Modified: 2015-06-18 13:06 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 three sixes 2013-10-28 17:37:59 UTC
drupal when emerged does not insert its self into web root or run the webapp command to do so.

Reproducible: Always

Steps to Reproduce:
emerge drupal
Actual Results:  
ls /var/www/localhost/htdocs
$

Expected Results:  
ls /var/www/localhost/htdocs
drupal
$

webapp-config -I -h localhost -d /drupal/ drupal 7.23
Comment 1 three sixes 2013-10-28 17:44:57 UTC
side note that drupal 500s once it is installed on install.php & index.php

system is functioning correctly for mediawiki phpbb dokuwiki & other lamp stack applications.
Comment 2 Devan Franchini (RETIRED) gentoo-dev 2013-10-28 19:46:50 UTC
(In reply to three sixes from comment #0)
> drupal when emerged does not insert its self into web root or run the webapp
> command to do so.
> 
> Reproducible: Always
> 
> Steps to Reproduce:
> emerge drupal
> Actual Results:  
> ls /var/www/localhost/htdocs
> $
> 
> Expected Results:  
> ls /var/www/localhost/htdocs
> drupal
> $
> 
> webapp-config -I -h localhost -d /drupal/ drupal 7.23

This issue is probably related to webapp-config. If you are using python3.2 and up as your interpreter it'll cause issues and it's very likely installed into:

/var/www/${vhost_hostname}/htdocs/ <-- Literal location.

This is because under python3.2+ webapp-config was using incorrect syntax to call the get() function from the ConfigParser class. This has been corrected and a new version of webapp-config will probably be pushed out soon. 

For a quick fix edit your configuration file in /etc/vhosts/webapp-config and under the line where it declares:

vhost_root="/var/www/${vhost_hostname}"

alter the ${vhost_hostname} to make the vhost_root to:

vhost_root="/var/www/localhost" or whatever you please.

This should fix your issue until the new version is released.

Hope this helps.
Comment 3 three sixes 2013-10-28 21:14:46 UTC
i am using python3.2 eselected...  other packages issued the commands to webapp-config fine & webapp-config -I -h localhost -d /drupal/ drupal 7.23 is what i used against python3.2 to get it to show up in my webroot for localhost.  i PERSONALLY don't really have a problem with this so much as with the 500ing once it is inserted into web root.  im trying to get this up on the wiki pages because i have known drupal before on ubuntu to be vastly powerful and reformable into many different things.  i see the viability of gentoo being a secure bloat free server for web, and that's what ive been targeting for the most part.  maybe a little desktop / boot loader / core system stuff here and there but not my primary objective like the web apps.

thanks everyone for responding and all of your hard work on gentoo.
Comment 4 three sixes 2013-11-15 17:44:33 UTC
just tried this with python 2.7 eselected, and it still fails to insert into webroot.  i really don't want to write webapp-configs into wiki pages.
Comment 5 Jorge Manuel B. S. Vicetto (RETIRED) gentoo-dev 2013-11-28 23:51:27 UTC
webapp-config -I -h localhost -d /drupal/ drupal 7.23

The above is telling webapp-config to install a package under ${localhost}/htdocs/drupal which usually translates to /var/www/localhost/htdocs/drupal
If you want to install to the / of your site, drop the "-d /drupal" from the webapp-config command.
Comment 6 Devan Franchini (RETIRED) gentoo-dev 2013-11-29 04:14:44 UTC
Also this issue should be fixed in the latest version of webapp-config, I apologize if I didn't mention this sooner. If you could please test this for me and report back whether or not this is true.
Comment 7 Jorge Manuel B. S. Vicetto (RETIRED) gentoo-dev 2015-06-18 13:06:53 UTC
-ENEEDCONFIRMATION