Hi.
Please point me to right direction.
Everything goes fine.
Main config have:
nginx.conf:
passenger_root /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini;
passenger_ruby /usr/bin/passenger_free_ruby;
Config of our app:
kb.conf:
server {
server_name wiki;
root /var/www/railsapps/knowledge_base/public;
passenger_enabled on;
passenger_app_env development;
autoindex on;
}
After nginx stating we have in logs:
2016/04/21 14:26:26 [info] 2916#0: Using 32768KiB of shared memory for push module in /etc/nginx/nginx.conf:72
[ 2016-04-21 14:26:27.6904 2921/b6db1700 age/Wat/WatchdogMain.cpp:1301 ]: Starting Passenger watchdog...
[ 2016-04-21 14:26:27.7044 2924/b6dbc700 age/Cor/CoreMain.cpp:982 ]: Starting Passenger core...
[ 2016-04-21 14:26:27.7048 2924/b6dbc700 age/Cor/CoreMain.cpp:235 ]: Passenger core running in multi-application mode.
[ 2016-04-21 14:26:27.7101 2924/b6dbc700 age/Cor/CoreMain.cpp:732 ]: Passenger core online, PID 2924
[ 2016-04-21 14:26:27.7238 2930/b6e18700 age/Ust/UstRouterMain.cpp:529 ]: Starting Passenger UstRouter...
[ 2016-04-21 14:26:27.7256 2930/b6e18700 age/Ust/UstRouterMain.cpp:342 ]: Passenger UstRouter online, PID 2930
Looks like it starts.
passenger-memory-stats:
Version: 5.0.27
Date : 2016-04-21 14:31:24 +0300
------------- Apache processes -------------
*** WARNING: The Apache executable cannot be found.
Please set the APXS2 environment variable to your 'apxs2' executable's filename, or set the HTTPD environment variable to your 'httpd' or 'apache2' executable's filename.
--------- Nginx processes ---------
PID PPID VMSize Private Name
-----------------------------------
2951 1 46.5 MB 0.2 MB nginx: master process /usr/sbin/nginx
2952 2951 46.7 MB 0.4 MB nginx: worker process
2953 2951 46.7 MB 0.3 MB nginx: worker process
2955 2951 46.7 MB 0.3 MB nginx: worker process
2956 2951 46.7 MB 0.3 MB nginx: worker process
### Processes: 5
### Total private dirty RSS: 1.46 MB
---- Passenger processes ----
PID VMSize Private Name
-----------------------------
2921 23.2 MB 0.6 MB Passenger watchdog
2924 75.3 MB 1.4 MB Passenger core
2930 32.3 MB 0.7 MB Passenger ust-router
### Processes: 3
### Total private dirty RSS: 2.70 MB
Now we take folder structure of application knowledge_base from old server and copy to this new server setup.
It looks like passenger not seeing that there was ruby app.