Error: Apache2/mod_ruby (CentOS/Fedora): mod_ruby: ruby:0:in `require': no such file to load -- apache/ruby-run (LoadError)

You get the following error messages in Apache's error log:

[Thu May 26 02:05:05 2011] [error] mod_ruby: ruby:0:in `require': no such file to load -- apache/ruby-run (LoadError)
[Thu May 26 02:05:05 2011] [error] mod_ruby: failed to require apache/ruby-run
[Thu May 26 02:05:05 2011] [error] mod_ruby: error in ruby

 

Solution

Open /etc/httpd/conf.d/ruby.conf...

vi /etc/httpd/conf.d/ruby.conf

... and add the line RubyAddPath /1.8:

LoadModule ruby_module modules/mod_ruby.so
RubyAddPath /1.8

Restart Apache2:

/etc/init.d/httpd restart

Falko Timme

About Falko Timme

Falko Timme is an experienced Linux administrator and founder of Timme Hosting, a leading nginx business hosting company in Germany. He is one of the most active authors on HowtoForge since 2005 and one of the core developers of ISPConfig since 2000. He has also contributed to the O'Reilly book "Linux System Administration".

Share this page:

Suggested articles

0 Comment(s)

Add comment