Allright, I seem to have a working radiant CMS.. can change files in admin, publish, etc all as expected and actually pretty fast... So, good.
To recap, I had to recompile the mod_ruby source and change one line in mod_ruby.h from #define MR_DEFAULT_SAFE_LEVEL 1 to #define MR_DEFAULT_SAFE_LEVEL 0 and my .htaccess now looks like this: > #!/usr/bin/ruby1.8 > > require File.dirname(__FILE__) + "/../config/environment" unless > defined?(RAILS_ROOT) > > # If you're using RubyGems and mod_ruby, this require should be > changed to an absolute path one, like: > # "/usr/local/lib/ruby/gems/1.8/gems/rails-0.8.0/lib/dispatcher" -- > otherwise performance is severely impaired > require "dispatcher" > #require "/var/lib/gems/1.8/gems/rails-2.0.2/lib/dispatcher" > > > #ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if > File.directory?(dir) } if defined?(Apache::RubyRun) > Dispatcher.dispatch I have very little understanding of what's going on here.. perhaps someone with some experience can tell my why this work and why i had to comment out the ADDITIONAL line, etc. thanks, Jack Jack Downes wrote: > Okay, I recompiled the mod_ruby source such that i turned the SAFE const > to 0, and .... well, got a different error: > >> [Sun Feb 24 21:49:18 2008] [error] mod_ruby: error in ruby >> [Sun Feb 24 21:49:18 2008] [error] mod_ruby: >> /var/lib/gems/1.8/gems/radiant-0.6.4/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:266:in >> >> `load_missing_constant': uninitialized constant ADDITIONAL_LOAD_PATHS >> (NameError) >> [Sun Feb 24 21:49:18 2008] [error] mod_ruby: from >> /var/lib/gems/1.8/gems/radiant-0.6.4/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:452:in >> >> `const_missing' >> [Sun Feb 24 21:49:18 2008] [error] mod_ruby: from >> /var/www/sites/dtc/nwmt.us/subdomains/www/html/dispatch.rb:9 >> [Sun Feb 24 21:49:18 2008] [error] mod_ruby: from >> /usr/lib/ruby/1.8/apache/ruby-run.rb:53:in `load' >> [Sun Feb 24 21:49:18 2008] [error] mod_ruby: from >> /usr/lib/ruby/1.8/apache/ruby-run.rb:53:in `handler' >> > Anyone know what this is? > > thanks, > Jack > > > Jack Downes wrote: > >> I'm trying to decrease the RubySafeLevel... that is the first error, >> all the others are just part of the cascade, so that might just be it. >> >> Jack >> _______________________________________________ >> Radiant mailing list >> Post: Radiant@lists.radiantcms.org >> Search: http://radiantcms.org/mailing-list/search/ >> Site: http://lists.radiantcms.org/mailman/listinfo/radiant >> >> > > _______________________________________________ > Radiant mailing list > Post: Radiant@lists.radiantcms.org > Search: http://radiantcms.org/mailing-list/search/ > Site: http://lists.radiantcms.org/mailman/listinfo/radiant > _______________________________________________ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant