Вы находитесь на странице: 1из 2

LoadModule passenger_module /usr/local/lib/ruby/gems/2.0/gems/passenger-5.0.

14/b
uildout/apache2/mod_passenger.so
PassengerRoot /usr/local/lib/ruby/gems/2.0/gems/passenger-5.0.14
PassengerRuby /usr/local/bin/ruby20
LoadModule passenger_module /usr/local/rvm/gems/ruby-2.2.0/gems/passenger-5.0.14
/buildout/apache2/mod_passenger.so
<IfModule mod_passenger.c>
PassengerRoot /usr/local/rvm/gems/ruby-2.2.0/gems/passenger-5.0.14
PassengerDefaultRuby /usr/local/rvm/gems/ruby-2.2.0/wrappers/ruby
</IfModule>
qwwwwwwww--LoadModule passenger_module /usr/local/rvm/gems/ruby-2.2.0/gems/passenger-5.0.14
/buildout/apache2/mod_passenger.so
<IfModule mod_passenger.c>
PassengerRoot /usr/local/rvm/gems/ruby-2.2.0/gems/passenger-5.0.14
PassengerDefaultRuby /usr/local/rvm/gems/ruby-2.2.0/wrappers/ruby
</IfModule>
* Checking whether this Passenger install is in PATH...
* Checking whether there are no other Passenger installations... (!)
You are currently validating against Phusion Passenger 5.0.14, located in:
/usr/local/rvm/gems/ruby-2.2.0/gems/passenger-5.0.14/bin/passenger
Besides this Passenger installation, the following other
Passenger installations have also been detected:
/usr/local/bin/passenger
Please uninstall these other Passenger installations to avoid
confusion or conflicts.
* Checking whether Apache is installed...
* Checking whether the Passenger module is correctly configured in Apache...
Incorrect Passenger module path detected
Phusion Passenger for Apache requires a 'LoadModule passenger_module'
directive inside an Apache configuration file. This directive has been
detected in the following config file:
/usr/local/etc/apache24/httpd.conf
However, the directive refers to the following Apache module, which is wrong:
/usr/local/lib/ruby/gems/2.1/gems/passenger-5.0.14/buildout/apache2/mod_pa
ssenger.so
Please edit the config file and change the directive to this instead:
LoadModule passenger_module /usr/local/rvm/gems/ruby-2.2.0/gems/passenger5.0.14/buildout/apache2/mod_passenger.so
Detected 1 error(s), 1 warning(s).

Please solve the above issues, then press ENTER to continue.


-------------------------------------------Deploying a web application: an example
Suppose you have a web application in /somewhere. Add a virtual host to your
Apache configuration file and set its DocumentRoot to /somewhere/public:
<VirtualHost *:80>
ServerName www.yourhost.com
# !!! Be sure to point DocumentRoot to 'public'!
DocumentRoot /somewhere/public
<Directory /somewhere/public>
# This relaxes Apache security settings.
AllowOverride all
# MultiViews must be turned off.
Options -MultiViews
# Uncomment this if you're on Apache >= 2.4:
#Require all granted
</Directory>
</VirtualHost>
And that's it! You may also want to check the Users Guide for security and
optimization tips, troubleshooting and other useful information:
/usr/local/rvm/gems/ruby-2.2.0/gems/passenger-5.0.14/doc/Users guide Apache.ht
ml
https://www.phusionpassenger.com/documentation/Users%20guide%20Apache.html
Enjoy Phusion Passenger, a product of Phusion (www.phusion.nl) :-)
https://www.phusionpassenger.com
Phusion Passenger is a trademark of Hongli Lai & Ninh Bui.