Categorias
Apache Blog Fedora Linux

suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) – erro no httpd – FAILED – mod-ssl

Aconteceu em um servidor que cuido, instalei o mod_ssl com os certificados e do nada ele falhou, vi os log

cat /var/log/httpd/error_log
[Sun Jan 11 04:03:55 2015] [notice] Digest: generating secret for digest authentication ...
[Sun Jan 11 04:03:55 2015] [notice] Digest: done
[Mon Jan 12 08:31:14 2015] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)

para resolver foi simples basta fazer os passos abaixo

em /etc/httpd/conf.d/nss.conf

adiciona essa linha:

NSSEnforceValidCerts off

God Bless

Categorias
Blog Fedora Linux Ruby Ruby on Rails

Erro Could not find a JavaScript runtime – rails

se este erro ocorrer quando estiver executando “rails server” ou rails s
/usr/lib/ruby/gems/1.8/gems/execjs-1.4.0/lib/execjs/runtimes.rb:51:in `autodetect’: Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)
from /usr/lib/ruby/gems/1.8/gems/execjs-1.4.0/lib/execjs.rb:5
from /usr/lib/ruby/gems/1.8/gems/coffee-script-2.2.0/lib/coffee_script.rb:1:in `require’
from /usr/lib/ruby/gems/1.8/gems/coffee-script-2.2.0/lib/coffee_script.rb:1
from /usr/lib/ruby/gems/1.8/gems/coffee-script-2.2.0/lib/coffee-script.rb:1:in `require’
from /usr/lib/ruby/gems/1.8/gems/coffee-script-2.2.0/lib/coffee-script.rb:1
from /usr/lib/ruby/gems/1.8/gems/coffee-rails-3.2.2/lib/coffee-rails.rb:1:in `require’
from /usr/lib/ruby/gems/1.8/gems/coffee-rails-3.2.2/lib/coffee-rails.rb:1
from /usr/lib/ruby/gems/1.8/gems/bundler-1.1.5/lib/bundler/runtime.rb:68:in `require’
from /usr/lib/ruby/gems/1.8/gems/bundler-1.1.5/lib/bundler/runtime.rb:68:in `require’
from /usr/lib/ruby/gems/1.8/gems/bundler-1.1.5/lib/bundler/runtime.rb:66:in `each’
from /usr/lib/ruby/gems/1.8/gems/bundler-1.1.5/lib/bundler/runtime.rb:66:in `require’
from /usr/lib/ruby/gems/1.8/gems/bundler-1.1.5/lib/bundler/runtime.rb:55:in `each’
from /usr/lib/ruby/gems/1.8/gems/bundler-1.1.5/lib/bundler/runtime.rb:55:in `require’
from /usr/lib/ruby/gems/1.8/gems/bundler-1.1.5/lib/bundler.rb:119:in `require’
from /Ruby/projeto/college/config/application.rb:7
from /usr/lib/ruby/gems/1.8/gems/railties-3.2.7/lib/rails/commands.rb:53:in `require’
from /usr/lib/ruby/gems/1.8/gems/railties-3.2.7/lib/rails/commands.rb:53
from /usr/lib/ruby/gems/1.8/gems/railties-3.2.7/lib/rails/commands.rb:50:in `tap’
from /usr/lib/ruby/gems/1.8/gems/railties-3.2.7/lib/rails/commands.rb:50
from script/rails:6:in `require’
from script/rails:6
instale o gem ‘therubyracer’ para javascript
no linux

gem install therubyracer

e depois execute

echo "gem 'therubyracer'" >> Gemfile

dentro do projeto.

Categorias
Blog Fedora Linux

Serviços inicializando junto com Linux

uma abordagem rapida sobre inicialização vou se referir a dois serviços, o apache e o mysql, que
foram instalados por yum
utilize o comando

#su root
#vim /etc/rc.local

e edite o arquivo deixando desse jeito