I’m trying to use setup the rails application on apache2 using the virtual server method, which is where I think my problems are coming from. I tried the standalone passenger install (after spending yesterday afternoon trying to make apache work) and that worked just fine, but I’d like to use apache.
Apache error log shows:
[Thu Jan 26 22:36:18 2012] [notice] caught SIGTERM, shutting down
[Thu Jan 26 22:36:20 2012] [notice] Apache/2.2.20 (Ubuntu) Phusion_Passenger/3.0.11 configured -- resuming normal operations
cache: [GET /videos] miss
The sigterm is me restarting apache. The cache miss is me trying to view the model’s page.
The virtual host setup
<VirtualHost *:80>
DocumentRoot /home/dave/prodspace/river/public
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/dave/prodspace/river/public/>
Options Indexes FollowSymLinks -MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
The folder that contains everything is /home/dave/prodspace/river, I have set group permissions to www-data for the river/public folder. I have enabled the site and restarted apache via
sudo a2ensite river
sudo service apache2 restart
System specs are:
ruby related things installed using rvm
ruby 1.9.2p290
passenger 3.0.11
rails 3.2.0
apache 2.2 (installed through apt-get packages)
ubuntu 11.10 (x86 server edition)
Any help is always appreciated…
The production database wasn’t set up. The fix ended up being running: