Welcome Guest Login Register Member List
ExpressionEngine Forums
Advanced Search
Username: Password:
Remember Me? forgot password?
You are here: Forum Home  >  Installation  >  Tracks on a web host  >  Thread
   
 
Assistance Needed installing Tracks on Hostgator
 
tedpenner
Posted: 03 June 2009 02:56 PM   [ Ignore ]  
Newbie
Rank
Total Posts:  19
Joined  2009-04-28

I need someone on the phone with me while I do this.  If someone is willing to help, please write me at tedpenner on g mail

Profile
 
Reinier Balt
Posted: 04 June 2009 06:55 AM   [ Ignore ]   [ # 1 ]  
Sr. Member
RankRankRankRank
Total Posts:  580
Joined  2006-10-05

you could try to pm aexl. He contributed the wiki entry for hostgator:

http://www.getontracks.org/wiki/Hostgator/

Profile
 
kikontrack
Posted: 24 June 2009 07:01 AM   [ Ignore ]   [ # 2 ]  
Newbie
Rank
Total Posts:  7
Joined  2009-06-24

I am trying to install on hostgator as well. According to the post on hostgator forum, they just enabled the fastcgi support on June 20th. So I am trying to install Tracks 1.7 on a fastcgi setup.

Here is the step I’ve followed:

* unzip Tracks in /home/kik/rails/ (so will be located in /home/kik/rails/tracks/)
* in my cpanel, create mysql database and user for Tracks
* in /home/kik/rails/tracks/config/database.yml, I setup the proper adapter for mysql
* then in /home/kik/rails/tracks/ I run rake db:migrate RAILS_ENV=development
* I created the entry in public_html with a symlink ln -s /home/kik/rails/tracks/public/ /home/kik/public_html/tracks
* I added a .htaccess file in /home/kik/rails/tracks/public/ which contains the following

AddHandler fcgid-script .fcgi
Options 
+FollowSymLinks +ExecCGI
RewriteEngine On
RewriteRule 
^$ index.html [QSA]
RewriteRule 
^([^.]+)$ $1.html [QSA]
RewriteCond 
%{REQUEST_FILENAME} !-f
RewriteRule 
^(.*)$ dispatch.fcgi [QSA,L]
ErrorDocument 500 
"<h2>Application error</h2>Rails application failed to start properly" 

* in environment.rb I added 2 lines:

ENV['RAILS_RELATIVE_URL_ROOT']="/tracks"
  
and 
config.load_paths += %W( #{RAILS_ROOT}/vendor/plugins ) 

Then, when I open my browser at http://mydomain/tracks/, I get my error 500 message “Rails application failed to start properly”

The log/development.log shows the following:

[Wed Jun 24 01:47:07 2009] [notice] mod_fcgid: process /home/kik/public_html/tracks/dispatch.fcgi(15792) exit(communication error), terminated by calling exit(), return code: 1
    from 
/home/kik/rails/tracks/vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in `require'
    from /home/kik/rails/tracks/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in 
`new_constants_in'
    from /home/kik/rails/tracks/vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in `require'
    
from /home/kik/rails/tracks/vendor/rails/railties/lib/fcgi_handler.rb:1
    from 
/home/kik/rails/tracks/vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in `require'
    from /home/kik/rails/tracks/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in 
`new_constants_in'
    from /home/kik/rails/tracks/vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in `require' 

Rails version on the server is 2.3.2

Can anyone help me figure this out? Thank you!

Profile
 
kikontrack
Posted: 24 June 2009 07:13 AM   [ Ignore ]   [ # 3 ]  
Newbie
Rank
Total Posts:  7
Joined  2009-06-24

Also, here is the log I got when I try to run dispatch fcgi from command line

~/rails/tracks $ ruby public/dispatch.fcgi 

/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- fcgi (MissingSourceFile)
    from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in 
`require'
    from /home/kik/rails/tracks/vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in `require'
    
from /home/kik/rails/tracks/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
    from /home/kik/rails/tracks/vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in 
`require'
    from /home/kik/rails/tracks/vendor/rails/railties/lib/fcgi_handler.rb:1
    from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    from /home/kik/rails/tracks/vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in 
`require'
    from /home/kik/rails/tracks/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
    
from /home/kik/rails/tracks/vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in `require'
    from public/dispatch.fcgi:22 

I guess I need to figure out how to satisfy the gem_original_require dependency

Profile
 
kikontrack
Posted: 24 June 2009 07:36 AM   [ Ignore ]   [ # 4 ]  
Newbie
Rank
Total Posts:  7
Joined  2009-06-24

So I figured out I need to install the gem fcgi

But now, I get an error trying to install the gem :(

$ gem install fcgi -r -- --with-fcgi-include=/opt/fastgcgi/include/ --with-fcgi-lib=/opt/fastgcgi/lib/
Building native extensions.  This could take a while...
ERROR:  Error installing fcgi:
    
ERROR: Failed to build gem native extension.

/
usr/local/bin/ruby extconf.rb --with-fcgi-include=/opt/fastgcgi/include/ --with-fcgi-lib=/opt/fastgcgi/lib/
checking for fcgiapp.h... no
checking 
for fastcgi/fcgiapp.h... no
*** extconf.rb failed *** 

It can not find the include file that are present on the filesystem

Profile
 
Reinier Balt
Posted: 24 June 2009 08:51 AM   [ Ignore ]   [ # 5 ]  
Sr. Member
RankRankRankRank
Total Posts:  580
Joined  2006-10-05

did you try just gem install fcgi without all the options?

Profile
 
kikontrack
Posted: 24 June 2009 04:13 PM   [ Ignore ]   [ # 6 ]  
Newbie
Rank
Total Posts:  7
Joined  2009-06-24

Yes

I contacted the support yesterday and they installed the fcgi gem on the server

I can now open Tracks on my server

I will post the instruction on the wiki

Profile
 
kikontrack
Posted: 24 June 2009 04:33 PM   [ Ignore ]   [ # 7 ]  
Newbie
Rank
Total Posts:  7
Joined  2009-06-24

I have now another issue with routing.

So the basic install works, I can go to http://domain/tracks/signup and I see the signup page.

Now, I am trying to use SSL. Usually, I open my browser to https://server/~kik/tracks/signup

I added the proper rewriting in my .htaccess to rewrite .* to /~kik/tracks/dispatch.fcgi

However I get a routing error that I can not solve:

No route matches "/~kik/tracks/signup" with {:method=>:get} 

In my environment.rb I tried this:

ENV['RAILS_RELATIVE_URL_ROOT']="/~kik/tracks/" 

And I also added that line in site.yml

subdir: "/~kik/tracks/" 

I can not figure out how to make it work? Do I need to change the routes.rb?

Profile
 
kikontrack
Posted: 25 June 2009 05:42 AM   [ Ignore ]   [ # 8 ]  
Newbie
Rank
Total Posts:  7
Joined  2009-06-24

For some reason, it stopped working

Now, fcgi process terminate with an error code 114

It was working earlier today (not in SSL but still it was working)

Profile
 
kikontrack
Posted: 26 June 2009 05:53 AM   [ Ignore ]   [ # 9 ]  
Newbie
Rank
Total Posts:  7
Joined  2009-06-24

Thanks to hostgator support, Tracks now work

I wrote down the instructions on the wiki

Profile
 
deadgoon
Posted: 17 July 2009 12:51 AM   [ Ignore ]   [ # 10 ]  
Newbie
Rank
Total Posts:  1
Joined  2009-07-17

kik,

I noticed that in your instructions on the wiki that your curly braces in the .htaccess listing had been converted to HTML entities.  Specifically, line 6 of .htaccess should read:

RewriteCond %{REQUEST_FILENAME} !-f 

Also, your quote marks on the following line come out as “curly” quotes when you copy and paste them.  I have no idea how to edit the wiki to make that stuff display correctly.

Add the line ENV['RAILS_RELATIVE_URL_ROOT']="/tracks" 

Once I fixed that your instructions were spot on.  Thanks!

PS - Also of note, apparently hostgator uses port 2222 for ssh instead of the default 22, or at least that is the case for me.  Use the following to login:

ssh -p 2222 -l user_name yourdomain.com 
Profile
 
jschwartz
Posted: 17 July 2009 04:38 AM   [ Ignore ]   [ # 11 ]  
Newbie
Rank
Total Posts:  2
Joined  2009-07-09

Thanks to your directions kikontrack and your corrections deadgoon, I have a successful install on Hostgator!

I will add that all I did was change my browser to https:// and had no issue running it behind SSL. (I do have a private cert on the server, but I do not beleive that makes a difference.)

On my server too, the techs had to fix some gems, but they had fixed it and responded inside 15 minutes.

Profile
 
RD
Posted: 24 October 2009 07:56 AM   [ Ignore ]   [ # 12 ]  
Newbie
Rank
Total Posts:  1
Joined  2009-10-24

Hi Guys,

I could really use some help. I have followed kik’s directions on the wiki to the letter and I have no go. When I try anautix.com/tracks I get application failed to start properly.

Would really appreciate your help. You also might have figured I m complete ruby on rails newb, my apologies if i asked any dumb questions.

Thanks

Profile
 
   
 
 
‹‹ actionpack version error?      Need Tracks 1.7 DB Schema ››

Powered By ExpressionEngine
Template Design By Sonnenvogel.com
Select a theme:

ExpressionEngine Discussion Forum - Version 2.1.2 (20091002)
Script Executed in 0.1439 seconds

Atom Feed
RSS 2.0