Version: opensuse 11.3
Apache/2.2.17
I have a Sinatra application running on top of passenger module for Apache. Ruby 1.9.2
The application works if apache is started with “apache2ctl start”, however, it doesn’t when calling “service apache2 start”.
The error comes from passenger:
Error message:
invalid byte sequence in US-ASCII
Exception class:
ArgumentErrorBacktrace:
# File Line Location
0 /usr/lib/ruby/gems/1.9.1/gems/sinatra-1.1.0/lib/sinatra/base.rb 897 ingsub' 1 /usr/lib/ruby/gems/1.9.1/gems/sinatra-1.1.0/lib/sinatra/base.rb 897 in
inline_templates=’
2 /usr/lib/ruby/gems/1.9.1/gems/sinatra-1.1.0/lib/sinatra/base.rb 850 inset' 3 /usr/lib/ruby/gems/1.9.1/gems/sinatra-1.1.0/lib/sinatra/base.rb 859 in
block in enable’
4 /usr/lib/ruby/gems/1.9.1/gems/sinatra-1.1.0/lib/sinatra/base.rb 859 ineach' 5 /usr/lib/ruby/gems/1.9.1/gems/sinatra-1.1.0/lib/sinatra/base.rb 859 in
enable’
I’m guessing somehow apache2ctl lets passenger->ruby interpreter know that Im working with UTF-8, where service apache2 start doesn’t, however I don’t manage it to work even explicitally setting LANG=en_US.UTF-8 in /etc/init.d/apache2.
Any ideas on how to make service apache2 start work like apache2ctl start?
Thanks in advance