Yesterday I took the time to install everything to run both PHP and Rails applications on a clean build of Ubuntu linux. However when I'm trying to navigate to my rails dummy app,I see an index page of the public folder.
This is the link:
http://rails.kreatude.com/
Whenever I try to run the passenger-status command I receive a:
Code:
ERROR: Phusion Passenger doesn't seem to be running.
My passenger configs are (these are in a separate file called passenger.conf):
Code:
LoadModule passenger_module /repositories/passenger/ext/apache2/mod_passenger.so
PassengerRoot /repositories/passenger
PassengerRuby /usr/local/rvm/wrappers/ruby-1.9.2-p290/ruby
RailsEnv production
I include these settings in the general conf file (apache2.conf)
Code:
...
#
# Define an access log for VirtualHosts that don't define their own logfile
CustomLog /var/log/apache2/other_vhosts_access.log vhost_combined
# Passenger specific configuration:
Include /etc/apache2/passenger.conf
# Include of directories ignores editors' and dpkg's backup files,
# see README.Debian for details.
# Include generic snippets of statements
Include /etc/apache2/conf.d/
# Include the virtual host configurations:
Include /etc/apache2/sites-enabled/
and my application conf file:
Code:
<VirtualHost 178.79.166.172:80>
ServerName rails.kreatude.com
DocumentRoot /srv/www/rails.kreatude.com/current/public
<Directory /src/www/rails.kreatude.com/current/public>
AllowOverride all
Options -MultiViews
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
As an experiment I already tried cd-ing to /srv/www/rails.kreatude.com/current/ and ran rails s. Then I could access my site at:
http://rails.kreatude.com:3000 without problems.
I have the lists of all commands I prompted to setup this machine, if you need these for finding a solution feel free to ask. Any help would be appreciated.
PS: I also posted this question at
serverfault without any luck. Feel free to aswer where you prefer. [/url]