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
You need to use >=1.2.4-r1