Content
Can OpenProject 4.0 be installed without sudo access?
Added by alex r almost 10 years ago
Hi all,
I’ve been struggling during the past 2 days to install OpenProject - the latest stable - on my shared hosting account on BlueHost.
I followed the steps described here - https://www.openproject.org/download/manual-installation/ + I also installed python 2.7.8 in my home folder to add nodejs.
Everything seemed to be working fine during the installation, but now when I access my instance of OP I get
/home3/my_account/rails_apps/openproject/config/application.rb:128: syntax error, unexpected tLPAREN_ARG, expecting keyword_do_LAMBDA or tLAMBEG config.assets.precompile.unshift -> (path) { ^ /home3/my_account/rails_apps/openproject/config/application.rb:128: syntax error, unexpected tLAMBEG, expecting keyword_end /home3/my_account/rails_apps/openproject/config/application.rb:130: syntax error, unexpected ‘}’, expecting keyword_end /home3/my_account/rails_apps/openproject/config/application.rb:168: syntax error, unexpected keyword_do_block, expecting keyword_end /home3/my_account/rails_apps/openproject/config/application.rb:183: syntax error, unexpected keyword_end, expecting $end
I googled a lot about what might be the cause for this error, and apparently this is caused by the fact that Bluehost uses Passenger 3, which points to the default ruby version 1.9. Apparently Passenger 4.0 is able to recognize several ruby versions - I installed ruby 2.1.4 in my home directory because Bluehost comes with ruby 1.9. I installed Passenger 4.0.53 in my local folder, and I have the same error.
As I am new to rails applications, I am kinda stuck now… Do I have any chance of running OpenProject 4.0 in this environment? If yes, what do you recommend that I should do next?
Here’s what rvm info returns:
ruby-2.1.4:
system:
uname: “Linux box853.bluehost.com 3.12.32.1415814620 #1 SMP Wed Nov 12 11:53:28 CST 2014 x86_64 x86_64 x86_64 GNU/Linux”
system: “unknown/libc-2.12/x86_64”
bash: “/ramdisk/bin/bash => GNU bash, version 4.1.2(1)-release (x86_64-redhat-linux-gnu)”
zsh: “/usr/bin/zsh => zsh 4.3.10 (x86_64-redhat-linux-gnu)”
rvm:
version: “rvm 1.26.3 (latest) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]”
updated: “5 hours 54 minutes 56 seconds ago”
path: “/home3/my_account/.rvm”
ruby:
interpreter: “ruby”
version: “2.1.4p265”
date: “2014-10-27”
platform: “x86_64-linux”
patchlevel: “2014-10-27 revision 48166”
full_version: “ruby 2.1.4p265 (2014-10-27 revision 48166) [x86_64-linux]”
homes:
gem: “/home3/my_account/.rvm/gems/ruby-2.1.4”
ruby: “/home3/my_account/.rvm/rubies/ruby-2.1.4”
binaries:
ruby: “/home3/my_account/.rvm/rubies/ruby-2.1.4/bin/ruby”
irb: “/home3/my_account/.rvm/rubies/ruby-2.1.4/bin/irb”
gem: “/home3/my_account/.rvm/rubies/ruby-2.1.4/bin/gem”
rake: “/home3/my_account/.rvm/gems/ruby-2.1.4/bin/rake”
environment:
PATH: “/home3/my_account/.rvm/gems/ruby-2.1.4/bin:/home3/my_account/.rvm/gems/ruby-2.1.4@global/bin:/home3/my_account/.rvm/rubies/ruby-2.1.4/bin:/home3/my_account/.local/lib:/home3/my_account/.local/bin:/home3/my_account/.local:/home3/my_account/lib:/home3/my_account/bin:/usr/local/jdk/bin:/usr/lib64/qt-3.3/bin:/home3/my_account/perl5/bin:/ramdisk/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11R6/bin:/home3/my_account/.rvm/bin”
GEM_HOME: “/home3/my_account/.rvm/gems/ruby-2.1.4”
GEM_PATH: “/home3/my_account/.rvm/gems/ruby-2.1.4:/home3/my_account/.rvm/gems/ruby-2.1.4@global”
MY_RUBY_HOME: “/home3/my_account/.rvm/rubies/ruby-2.1.4”
IRBRC: “/home3/my_account/.rvm/rubies/ruby-2.1.4/.irbrc”
RUBYOPT: “”
gemset: “”
Thanks a lot!
Alex
Replies (2)
Hi Alex,
seems to me that passenger does not use your installed ruby. If you get the passenger running your ruby everything should be fine. Unfortunately I have no idea of how blue-host is set up to host your site. Do you have some kind of control panel or dash board to define the stack which is used to serve your site. How do you inform the web server where your code for your site is located and that it should use passenger to serve it?
Cheers
Karsten
Hi Karsten,
Thanks a lot for replying. I’m on the same page with you - passenger is not using my locally installed version of Ruby.
I have access to the CPanel and I have ssh access to my account. I thought that if I set the following in my .bashrc
it should be enough, but it isn’t…
Other than this, I don’t know how to tell Passenger which version of ruby to use…
Another idea that I have was that maybe it’s important for Bluehost where I install my local Ruby - when I access my CPanel > RubyGems Section, it does an environment check and creates the following folder $HOME/ruby/gems -> it seems that this is where it expects the local ruby versions to be…
Any ideas that you’re heaving, are more than welcomed :).
Alex
P.S. in the meanwhile I installed a local OP on an Ubuntu VM, so I can try it out.