Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 724388 - www-apps/redmine-4.1.1 USE="passenger": default vhost config does not work
Summary: www-apps/redmine-4.1.1 USE="passenger": default vhost config does not work
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Azamat H. Hackimov
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2020-05-21 05:53 UTC by Adam Purkrt
Modified: 2020-06-15 10:57 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,5.22 KB, text/plain)
2020-05-21 05:54 UTC, Adam Purkrt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Purkrt 2020-05-21 05:53:48 UTC
with "passenger" useflag on, www-apps/redmine-4.1.1 installs the following vhost config:

vbox ~ # cat /etc/apache2/vhosts.d/10_redmine_vhost.conf
<IfModule passenger_module>
Listen 3000
<VirtualHost *:3000>
        DocumentRoot /var/lib/redmine/public
#       RailsEnv production
        <Directory "/var/lib/redmine/public">
                Options FollowSymLinks
                Order allow,deny
                Allow from all
        </Directory>
</VirtualHost>
</IfModule>

apache refuses to start with that config:
vbox ~ # /etc/init.d/apache2 start
 * apache2 has detected an error in your setup:
AH00526: Syntax error on line 8 of /etc/apache2/vhosts.d/10_redmine_vhost.conf:
Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration
 * ERROR: apache2 failed to start

The issue is the old apache2.2 syntax is used; the fix is to use the new syntax for apache2.4:

vbox ~ # cat /etc/apache2/vhosts.d/10_redmine_vhost.conf
<IfModule passenger_module>
Listen 3000
<VirtualHost *:3000>
        DocumentRoot /var/lib/redmine/public
#       RailsEnv production
        <Directory "/var/lib/redmine/public">
                Options FollowSymLinks
		Require all granted
        </Directory>
</VirtualHost>
</IfModule>

Reproducible: Always
Comment 1 Adam Purkrt 2020-05-21 05:54:46 UTC
Created attachment 640612 [details]
emerge-info.txt
Comment 2 Larry the Git Cow gentoo-dev 2020-06-15 10:57:29 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f41bc627b6b7c6a5618fd62d1f4e6075965d23e0

commit f41bc627b6b7c6a5618fd62d1f4e6075965d23e0
Author:     Azamat H. Hackimov <azamat.hackimov@gmail.com>
AuthorDate: 2020-06-15 10:54:43 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2020-06-15 10:57:15 +0000

    www-apps/redmine: fixing bugs
    
    Fixed bugs based on reports from Bugzilla:
    
    * #724384 - changed file permissions for config.ru to redmine:redmine
    * #724388 - updated Apache2's 10_redmine_vhost.conf to comply 2.4 syntax
    * #724464 - relaxing rails version to ~>5.2.4
    
    Closes: https://bugs.gentoo.org/724384
    Closes: https://bugs.gentoo.org/724388
    Closes: https://bugs.gentoo.org/724464
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com>
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 www-apps/redmine/files/10_redmine_vhost.conf |   3 +-
 www-apps/redmine/redmine-4.1.1-r1.ebuild     | 231 +++++++++++++++++++++++++++
 2 files changed, 232 insertions(+), 2 deletions(-)