Installing Ruby on Rails along with Passenger on a cPanel server...

nwilkins83

New member
Registered
Joined
Sep 18, 2016
Messages
2
Points
3
Hello,

I have been trying to install Passenger alongside Ruby and Rails on a brand new cPanel server running on VMware.

Code:
[root@cpanel ~]# httpd -v

Server version: Apache/2.4.23 (cPanel)

Server built: Aug 24 2016 19:30:51
The installation of Ruby Version Manager along with Ruby and Rails was very straightforward.

Code:
[root@cpanel ~]# ruby -v

ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux]
Code:
[root@cpanel ~]# rails -v

Rails 5.0.0.1
My issue comes when trying to run the passenger-install-apache2-module. I get errors about the following required software:

* Checking for Apache 2 development headers...

Found: no

* Checking for Apache Portable Runtime (APR) development headers...

Found: no

* Checking for Apache Portable Runtime Utility (APU) development headers...

Found: no

My understanding is these are installed via cPanel but the installer just doesn't know where they are.

Would you be able to assist me with resolving the above errors at all please? This is the last stumbling block.


Many Thanks

Nick,
 

gurupal__s

New member
Registered
Joined
Sep 19, 2016
Messages
1
Points
0

nwilkins83

New member
Registered
Joined
Sep 18, 2016
Messages
2
Points
3
nwilkins83
Hi,

That the steps I was following when I encountered this issue.

I have managed to get Phusion passenger installed by doing the following:

# yum remove httpd-tools
# yum install ea-apache24-devel

I have now uploaded some site code, bundled it okay but get the following error within my apache2 error log:

Code:
[ 2016-09-21 20:43:22.8431 28169/7fba4005c700 age/Cor/App/Implementation.cpp:304 ]: Could not spawn process for application /home/dashboards/public_html/dashboards: An error occurred while starting up the preloader.
Error ID: fa2f979e
Error details saved to: /tmp/passenger-error-Ecl0JS.html
Message from application: cannot load such file -- rack (LoadError)
/usr/local/rvm/gems/ruby-2.3.1/gems/passenger-5.0.30/src/ruby_supportlib/phusion_passenger/loader_shared_helpers.rb:430:in `require'
/usr/local/rvm/gems/ruby-2.3.1/gems/passenger-5.0.30/src/ruby_supportlib/phusion_passenger/loader_shared_helpers.rb:430:in `activate_gem'
/usr/local/rvm/gems/ruby-2.3.1/gems/passenger-5.0.30/src/helper-scripts/rack-preloader.rb:102:in `preload_app'
/usr/local/rvm/gems/ruby-2.3.1/gems/passenger-5.0.30/src/helper-scripts/rack-preloader.rb:156:in `<module:App>'
/usr/local/rvm/gems/ruby-2.3.1/gems/passenger-5.0.30/src/helper-scripts/rack-preloader.rb:30:in `<modulehusionPassenger>'
/usr/local/rvm/gems/ruby-2.3.1/gems/passenger-5.0.30/src/helper-scripts/rack-preloader.rb:29:in `<main>'


[ 2016-09-21 20:43:22.8896 28169/7fba3b7fe700 age/Cor/Con/CheckoutSession.cpp:285 ]: [Client 1-1] Cannot checkout session because a spawning error occurred. The identifier of the error is fa2f979e. Please see earlier logs for details about the error.
Any help appreciated.
Many Thanks
Nick,
 

KevinHV

Member
Registered
Joined
Sep 8, 2016
Messages
57
Points
8
This appears passenger looks in /home/<username>/.gem/ruby as a part of its spawn process. If /home/<username> doesn't exist (like with system users that don't have home directories), you get this error.
 

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top