完整newb to rails &乘客。 我在Linux Mint上运行乘客3.0.19。我的应用程序运行良好与WEBrick(轨服务器)和独立乘客。当我尝试使用mod_passenger我得到“FATAL:对等身份验证失败,用户‘me_user’(PG ::错误)”:apache2中的乘客工程独立失败
#Phusion Passenger config info
LoadModule passenger_module /var/lib/gems/1.9.1/gems/passenger-3.0.19/ext/apache2/mod_passenger.so
PassengerRoot /var/lib/gems/1.9.1/gems/passenger-3.0.19
PassengerRuby /usr/bin/ruby1.9.1
#Suppose you have a Rails application in /somewhere. Add a virtual host to your
#Apache configuration file and set its DocumentRoot to /somewhere/public:
<VirtualHost *:80>
ServerName localhost
# !!! Be sure to point DocumentRoot to 'public'!
DocumentRoot /var/www/myapp/public
<Directory /var/www/myapp/public>
# This relaxes Apache security settings.
AllowOverride all
# MultiViews must be turned off.
Options -MultiViews
</Directory>
</VirtualHost>
我应该注意:它通过命令行的数据库帐户的运作和数据库配置.yml。我见过ppl表明这是pg_hba.conf的一个问题......但如果这是我的问题,那么应用程序将无法独立运行......但它确实如此。 在此先感谢。
难道你不需要在Directory标签中指定Passenger's Rails环境吗?像'RailsEnv生产' –