Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 110799 - mod_ruby config file for apache2 uses wrong path for mod_ruby.so
Summary: mod_ruby config file for apache2 uses wrong path for mod_ruby.so
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-29 09:25 UTC by Leif Linse
Modified: 2005-10-29 11:04 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 Leif Linse 2005-10-29 09:25:55 UTC
The 20_mod_ruby.conf supplyed by mod_ruby ebuild contains an error. The row
"LoadModule ruby_module    extramodules/mod_ruby.so" 
should be 
"LoadModule ruby_module    modules/mod_ruby.so" 
or apache wont be able to load the .so file. 

Reproducible: Didn't try
Steps to Reproduce:
1. emerge apache
2. emerge mod_php
3. vi /etc/apache2/httpd.conf
Add the line
"Include /etc/apache2/conf/modules.d/*.conf" 
bellow the existing row 
"Include /etc/apache2/modules.d/*.conf" 
(Fixes another bug in the same ebuild)

4. /etc/init.d/apache2 start
Actual Results:  
Apache complains about that it cant find the mod_ruby.so file.

Expected Results:  
Apache should start without complaining, and the ruby mod should work.

How I have solved the problem manualy.

1. emerge apache
2. emerge mod_ruby
3. vi /etc/apache2/httpd.conf
Add the line
"Include /etc/apache2/conf/modules.d/*.conf" 
bellow the existing row 
"Include /etc/apache2/modules.d/*.conf" 
(Fixes another bug in the same ebuild)

4. vi /etc/conf.d/apache2 
Add "-D RUBY" to APACHE2_OPTS=... (row 24)
/etc/init.d/apache2 start

---
Output from emerge -pv apache: 
net-www/apache-2.0.54-r31  +apache2 -debug -doc -ldap -mpm-leader -mpm-peruser -
mpm-prefork -mpm-threadpool -mpm-worker -no-suexec (-selinux) +ssl -static-
modules -threads 0 kB

Output from emerge -pv mod_ruby: 
dev-ruby/mod_ruby-1.2.4  +apache2 +doc 0 kB
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-10-29 11:04:26 UTC
You need to use >=1.2.4-r1