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 ServerAlias www.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/
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!!