Tag: Passenger
sudo yum -y install git sqlite sqlite-devel httpd-devel curl-devel apr-devel apr-util-devel libffi-devel openssh
gem install passenger
passenger-install-apache2-module
RailsBaseURI /foo <Directory /home/www/foo/public> allowoverride all options -multiviews </Directory> RailsBaseURI /bar <Directory /home/www/bar/public> allowoverride all options -multiviews </Directory>
cd /var/www/html ln -s /home/www/foo/public foo
bundle exec rake assets:precompile RAILS_ENV=production RAILS_RELATIVE_URL_ROOT=/hoge
$ gem install passenger $ passenger-install-apache2-module
LoadModule passenger_module /Users/sora/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/passenger-4.\ 0.59/buildout/apache2/mod_passenger.so <IfModule mod_passenger.c> PassengerRoot /Users/sora/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/passenger-4.0.59 PassengerDefaultRuby /Users/sora/.rbenv/versions/2.2.1/bin/ruby </IfModule>
<VirtualHost *> PassengerRuby /Users/sora/.rbenv/versions/2.2.3/bin/ruby ServerName is.home.jp ServerAdmin webmaster@is.home.jp DocumentRoot /Users/sora/work/idea-stocker/public <Directory "/Users/sora/work/idea-stocker/public"> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> ErrorLog logs/is_error.log LogLevel warn CustomLog logs/is_acces.log combined </VirtualHost> <VirtualHost *> PassengerRuby /Users/sora/.rbenv/versions/2.2.2/bin/ruby ServerName milk.home.jp ServerAdmin webmaster@is.home.jp DocumentRoot /opt/home/milkode/public PassengerHighPerformance on SetEnv MILKODE_DEFAULT_DIR /opt/home/milkode/data <Directory "/opt/home/milkode/public"> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> ErrorLog logs/milk_error.log LogLevel warn CustomLog logs/milk_acces.log combined </VirtualHost>
Listen 8081 <VirtualHost *:8081> PassengerUserSwitching off PassengerDefaultUser エラーに出てたユーザ </VirtualHost>
[ 2017-04-25 22:08:25.6092 70194/0x7fffa8de03c0 apa/Hooks.cpp:690 ]: Unexpected error in mod_passenger: Cannot connect to Unix socket '/var/folders/c_/51lw7zp97vv4yvbn4wb_3bv40000gq/T/passenger.NaI6sJ6/agents.s/core': Permission denied (errno=13)