我正在使用 Rails 3 + Apache + Passenger,并且正在尝试部署到新服务器。我不太熟悉 RailsEnv 的来源,并且在检查我的 apache 配置的语法时遇到此错误。Invalid command 'RailsEnv', perhaps misspelled or defined by a module not included in the server configuration
有谁知道是什么模块RailsEnv
来自?
最佳答案
按照此处针对您的特定环境的指南安装 Apache 乘客模块:http://blog.phusion.nl/2011/03/02/phusion-passenger-3-0-4-released/
然后,使用以下命令启用模块:
sudo a2enmod passenger
最后重启apache。
关于ruby-on-rails - Apache:无效命令 'RailsEnv' ,可能拼写错误或由服务器配置中未包含的模块定义,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18362178/