I'd cd into your app dir and run
ruby script/server
then try to hit your app on port 3000, if that works, rails is set up ok
and it's your apache/passenger setup that is wrong
On Sun, 28 Feb 2010 14:20:51 +0800, rezilient <rezili...@gmail.com> wrote:
Oh, yes it is colon in the actual httpd.conf, I typo'd when I was
removing my actual IP address. The website is accessible without
problems, except Ruby is not loading up.
Is there any way I can test if Ruby is indeed installed correctly?
What could I be missing?
Thanks.
On Feb 27, 7:02 am, "Simon Macneall" <macne...@gmail.com> wrote:
Shouldn't the virtual host be
<VirtualHost 69.69.69.169:80>
Note the colon?
Cheers
Simon
On Sat, 27 Feb 2010 16:22:20 +0800, rezilient <rezili...@gmail.com>
wrote:
> Any ideas? Thanks for any advice.
> On Feb 25, 9:09 pm, rezilient <rezili...@gmail.com> wrote:
>> Hello.
>> I finally got Ruby, Gem and Passenger installed without any glaring
>> errors.
>> ruby 1.8.6 (2010-02-05 patchlevel 399) [x86_64-linux]
>> gem 1.3.5
>> I added the following lines to my httpd.conf:
>> LoadModule passenger_module /usr/local/lib/ruby/gems/1.8/gems/
>> passenger-2.2.10/ext/apache2/mod_passenger.so
>> PassengerRoot /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.10
>> PassengerRuby /usr/local/bin/ruby
>> (confirmed the files/folders are present)
>> and for the virtual host we have:
>> <VirtualHost 69.69.69.169.80>
>> SuexecUserGroup "#528" "#529"
>> ServerName clockingit.mywebsite.com
>> ServerAliaswww.clockingit.mywebsite.com
>> ServerAlias webmail.clockingit.mywebsite.com
>> ServerAlias admin.clockingit.mywebsite.com
>> DocumentRoot /home/mywebsite/domains/clockingit.mywebsite.com/
>> clockingit/public
>> ErrorLog /var/log/virtualmin/clockingit.mywebsite.com_error_log
>> CustomLog /var/log/virtualmin/clockingit.mywebsite.com_access_log
>> combined
>> #ScriptAlias /cgi-bin/ /home/mywebsite/domains/
>> clockingit.mywebsite.com/cgi-bin/
>> #ScriptAlias /awstats
/home/mywebsite/domains/clockingit.mywebsite.com/
>> cgi-bin
>> #DirectoryIndex index.html index.htm index.php index.php4 index.php5
>> <Directory
/home/mywebsite/domains/clockingit.mywebsite.com/clockingit/
>> public>
>> Options -Indexes FollowSymLinks -MultiViews
>> allow from all
>> AllowOverride All
>> RailsEnv production
>> PassengerHighPerformance on
>> </Directory>
>> #<Directory /home/mywebsite/domains/clockingit.mywebsite.com/cgi-bin>
>> #allow from all
>> #</Directory>
>> #RewriteEngine on
>> #RewriteCond %{HTTP_HOST} =webmail.clockingit.mywebsite.com
>> #RewriteRule ^(.*)https://clockingit.mywebsite.com:20000/[R]
>> #RewriteCond %{HTTP_HOST} =admin.clockingit.mywebsite.com
>> #RewriteRule ^(.*)https://clockingit.mywebsite.com:10000/[R]
>> #<Files awstats.pl>
>> #AuthName "clockingit.mywebsite.com statistics"
>> #AuthType Basic
>> #AuthUserFile /home/mywebsite/domains/
>> clockingit.mywebsite.com/.awstats-htpasswd
>> #require valid-user
>> #</Files>
>> #Alias /dav /home/mywebsite/domains/clockingit.mywebsite.com/
>> clockingit/public
>> #<Location /dav>
>> #DAV On
>> #AuthType Basic
>> #AuthName clockingit.mywebsite.com
>> #AuthUserFile /home/mywebsite/domains/clockingit.mywebsite.com/etc/
>> dav.digest.passwd
>> #Require valid-user
>> #ForceType text/plain
>> #Satisfy All
>> #</Location>
>> </VirtualHost>
>> A lot of the stuff I commented out above came from Virtualmin so I
cut
>> it down to the basics that Passenger guide suggested.
>> When I hit the site I am getting the default "Apache 2 Test Page".
>> When I put a test index.html in "public" for this app (the app is
>> called clockingIT) the index.html is loading as expected, as if Ruby
>> doesn't exist.
>> So I'm guessing something is missing.. How can I check if Passenger
is
>> loaded correctly? I don't get any errors when I start Apache, so...
>> Thanks for any help!!
--
You received this message because you are subscribed to the Google Groups "Ruby on
Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.