In your apache2.conf file you should include "public" in your
DocumentRoot specification (as you did), but that typically
corresponds to either the root directory of the server (http://localhost/myvideosite) or
a subdomain (http://localhost/myvideosite/videocollection/)
if you configured a subdomain using the RailsBaseURI option in your
conf file. So you should not include the public part when entering
the url of the site.
Thanks for your reply,but still i am not able to get the home page
of ovdlt application
I have installed ovdlt application using command :
sudo ruby init.rb ovdlt-2010-06-21.tgz videosite root
password.(Deploying To a Root URL)
in my apache2.conf file i have added :
Support Staff4 Posted by ggeisler on 08 Dec, 2011 09:57 PM
I think the problem might be more with getting your general
environment set up correctly than with OVDLT specifically. Have you
successfully installed and run another Rails app with MySQL on this
If not, I suggest you try to create a separate, very simple
Rails project on your server (since you said you were at a basic
level with Rails, I'd suggest following the instructions in the
Rails Guides here: http://guides.rubyonrails.org/v2.3.11/getting_started.html
). Basically, I'm suggesting we make sure the issue is not with
something other than OVDLT, because I really can't help you
troubleshoot your local server configuration.
I have created and deployed basic rails application on my
I was successful in deploying and getting the home page.
But while deploying ovldt application i am getting error messages
undefined method `name' for "actionmailer":String
# File Line Location
0 /etc/apache2/videosite/vendor/rails/railties/lib/rails/gem_dependency.rb 268 in `=='
1 /home/akki/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby/1.8/rubygems/dependency.rb 217 in `==='
2 /home/akki/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby/1.8/rubygems/dependency.rb 217 in `matching_specs'
3 /home/akki/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb 36 in `find_all'
4 /home/akki/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby/1.8/rubygems/specification.rb 410 in `each'
5 /home/akki/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby/1.8/rubygems/specification.rb 409 in `each'
6 /home/akki/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby/1.8/rubygems/dependency.rb 216 in `find_all'
7 /home/akki/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby/1.8/rubygems/dependency.rb 216 in `matching_specs'
8 /home/akki/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby/1.8/rubygems/dependency.rb 238 in `to_specs'
9 /home/akki/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby/1.8/rubygems/dependency.rb 256 in `to_spec'
10 /home/akki/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby/1.8/rubygems.rb 1210 in `gem'
11 /etc/apache2/videosite/vendor/rails/railties/lib/rails/gem_dependency.rb 73 in `add_load_paths'
12 /etc/apache2/videosite/vendor/rails/railties/lib/initializer.rb 301 in `add_gem_load_paths'
13 /etc/apache2/videosite/vendor/rails/railties/lib/initializer.rb 301 in `each'
14 /etc/apache2/videosite/vendor/rails/railties/lib/initializer.rb 301 in `add_gem_load_paths'
Support Staff8 Posted by ggeisler on 12 Dec, 2011 05:39 PM
Okay, it looks like you're working in a Rails 3 environment. OVDLT is still only a Rails 2 application and won't work if you try to use version 3 of the Rails components (actionmailer, activesupport, etc.).
If you don't have experience with setting up multiple environments on your machine, you can take a look at RVM:
You can use a newer version of rubygems-update, but I would stick to 1.6.0 or below to be sure it'll work, since I recall having some gem compatibility issues with Rails 2 and newer versions of rubygems-update.
Support Staff10 Posted by ggeisler on 14 Dec, 2011 04:23 PM
I see two potential problems. One is that activemodel is showing a version 3; I'm not sure this is a problem, but the other Rails components are at 2.3.5 and I'd expect activemodel to also be at 2.3.5.
The other is the version of rubygems. This is the one I've had the most problem with in the past, in terms of version compatibility. I'd really recommend uninstalling the 1.8 version and going with 1.6.0. (See my previous reply with my gem list.) I'm not positive about all of the details, but I believe there are issues with versions newer than 1.6.0 and Rails 2.
Also, your gem list includes a lot of other Rails 3-related gems. They probably aren't an issue, but to me the safest thing to do is use RVM (mentioned in previous reply) to create a new gemset, and only include in that gemset the gems required by Rails 2 and OVDLT. That makes it easier to eliminate potential problems that are keeping you from getting OVDLT started in your environment.
11 Posted by aqueel liveheart on 16 Dec, 2011 04:29 PM
On Wed, Dec 14, 2011 at 9:53 PM, ggeisler <
[email blocked]> wrote:
Thanks a lot for your valuable help,I had successfully deployed ovldt
application on my maching,issue was with version of rubygems.Now i have
1.4.2 on my system.
I have some question's regarding the application.
Question 1)Ovldt will be used in our college,so we have to stop user to
User can only view it online on the website.
Question 2)After deploying the application in the right corner there are 4
tabs under browse
1. Genre 2.Language 3.Geographic region 4.Color
Consider that there are 4 users (A,B,C,D) if we want that user A should
only be able to access (view) 1.Genre other's should be hidden, user B can
acces(view) 2.Language and other's hidden, user C can access (view)1.Genre
and 3.Geographic region other's hidden.
Question 3) How to disable register functionality.We had thought that we
will register and then provide username and password to the user on their
mail,No one apart from administrator should be able to create users.
Support Staff12 Posted by ggeisler on 22 Dec, 2011 12:04 AM
Glad to hear that you have successfully deployed the
application. Below I try to address your questions, but please
understand that OVDLT has not been developed to provide a lot of
ways to customize the sort of things you are interested in doing. I
also don't have a lot of time to help with customization issues
like yours, unfortunately. It is assumed that someone wanting to do
significant customization would have Ruby on Rails experience and
could experiment with the code themselves to achieve whatever
customization they want to do.
Question 1: I don't know that there is a way to truly prevent a
user from downloading video on the web without using a streaming
server (which OVDLT is not set up to do). This is not an OVDLT
specific issue; you could do some web searching and see what
strategies there are for protecting video from being downloaded,
and then update the OVDLT code to implement whichever strategy you
think will work for your situation. The relevant OVDLT files are
app/models/video.rb. Setting up a streaming server and
updating those files to support it is probably the most secure way
to prevent downloads; I can't really help with actually doing that,
Question 2: This is a rather complex scenario and support for it
is not something built into OVDLT. Customizing OVDLT to do this
would require some significant effort by someone with Rails
experience who took some time to get familiar with the OVDLT code,
Question 3: One way to disable registration would be to 1)
remove or comment out the view code that shows the registration
fields, which is at the bottom of
app/views/layouts/application.html.haml starting with
the line ".popup-reg" and the entire page at
app/views/users/new.html.haml, and 2) remove or
comment out the "map.register" and "map.signup" lines in the
But you will still need to register your users yourself. To do
this, you can create new users from the Rails console. See below
for an example of creating a new user manually:
You might also want to comment out the
UserMailer.deliver... lines in
app/models/user_observer.rb so no emails are sent when
you do your user registrations manually. You could just send emails
to the new users yourself and not have to worry about getting the
mailer working with your manual registration setup.
Sorry I can't provide exact solutions to your questions, but
hope these answers help a bit.