Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 480256 - www-apps/drupal-7.22 - pkg_postinst() einfo should point to http://localhost/drupal
Summary: www-apps/drupal-7.22 - pkg_postinst() einfo should point to http://localhost/...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-08 12:53 UTC by Martin Mokrejš
Modified: 2015-11-17 10:25 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 Martin Mokrejš 2013-08-08 12:53:45 UTC
Hi,
  I find it somehow unusual that apps installed via webapp-config install themselves into http://localhost/$app where drupal said:

>>> Emerging (2 of 2) www-apps/drupal-7.22
 * drupal-7.22.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                                                                                                                                                                              [ ok ]
>>> Unpacking source...
>>> Unpacking drupal-7.22.tar.gz to /mnt/1TB/var/tmp/portage/www-apps/drupal-7.22/work
>>> Source unpacked in /mnt/1TB/var/tmp/portage/www-apps/drupal-7.22/work
>>> Preparing source in /mnt/1TB/var/tmp/portage/www-apps/drupal-7.22/work/drupal-7.22 ...
>>> Source prepared.
>>> Configuring source in /mnt/1TB/var/tmp/portage/www-apps/drupal-7.22/work/drupal-7.22 ...
>>> Source configured.
>>> Compiling source in /mnt/1TB/var/tmp/portage/www-apps/drupal-7.22/work/drupal-7.22 ...
>>> Source compiled.
>>> Test phase [not enabled]: www-apps/drupal-7.22

>>> Install drupal-7.22 into /mnt/1TB/var/tmp/portage/www-apps/drupal-7.22/image/ category www-apps
 * (server owned) htdocs/files
 * (server owned) htdocs/sites/default
 * (server owned) htdocs/sites/default/settings.php
 * (config) htdocs/sites/default/settings.php
 * (config) htdocs/.htaccess
 * (info) /mnt/1TB/usr/portage/www-apps/drupal/files/postinstall-en.txt (lang: en)
>>> Completed installing drupal-7.22 into /mnt/1TB/var/tmp/portage/www-apps/drupal-7.22/image/

ecompressdir: bzip2 -9 /usr/share/doc

>>> Installing (2 of 2) www-apps/drupal-7.22
 * 
 * SECURITY NOTICE
 * If you plan on using SSL on your Drupal site, please consult the postinstall information:
 *      # webapp-config --show-postinst drupal 7.22
 * 

[cut]

# webapp-config --show-postinst drupal 7.22

=================================================================
POST-INSTALL INSTRUCTIONS
=================================================================

You will need to provide a database for your drupal installation.  

This assumes you have some knowledge of MySQL, and already have it
installed and configured. If not, please refer to the Gentoo MySQL
guide at the following URL:

http://www.gentoo.org/doc/en/mysql-howto.xml 

Once you have a database ready all you need to do is to go to this 
location

http://localhost//

and provide the credential required for the database access.

SECURITY NOTICE: If you use SSL on your Drupal installation, you
should enable the PHP configuration option 'session.cookie-secure'
to make it harder for attackers to sniff session cookies.

References:
CVE-2008-3661
http://www.php.net/manual/en/session.configuration.php#ini.session.cookie-secure
http://drupal.org/node/315703

After that you can start to use drupal.

=================================================================

#

When accessing http://localhost/drupal I get in apache.errorlog:

[Thu Aug 08 14:48:12 2013] [error] [client 127.0.0.1] File does not exist: /var/www/localhost/htdocs/drupal
Comment 1 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2015-11-17 10:25:21 UTC
I've update the postinstall instructions to warn that one needs to pass -h "<host>" and -d "<install dir>" in order to the postinst message to show the accurate URL (minus http vs https).