cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,608
77
308
cPanel Access Level
Root Administrator
Hi,

Everything from step 1 through step 9 need performed as the cPanel user. Only the Pre-Install and step 10 are performed as the root user.
 

THWSLLC

Registered
Aug 2, 2015
2
0
1
St. Louis
cPanel Access Level
Root Administrator
Here is my gems environment when I am the user:

RubyGems Environment:
- RUBYGEMS VERSION: 2.6.13
- RUBY VERSION: 2.4.2 (2017-09-14 patchlevel 198) [x86_64-linux]
- INSTALLATION DIRECTORY: /home/thwsllc/ruby/gems
- USER INSTALLATION DIRECTORY: /home/thwsllc/.gem/ruby
- RUBY EXECUTABLE: /opt/cpanel/ea-ruby24/root/usr/bin/ruby
- EXECUTABLE DIRECTORY: /home/thwsllc/ruby/gems/bin
- SPEC CACHE DIRECTORY: /home/thwsllc/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /opt/cpanel/ea-ruby24/root/etc
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
- /home/thwsllc/ruby/gems
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- "gem" => "--remote --gen-rdoc --run-tests"
- "gemhome" => "/home/thwsllc/ruby/gems"
- "gempath" => []
- "rdoc" => "--inline-source --line-numbers"
- REMOTE SOURCES:
- RubyGems.org | your community gem host
- SHELL PATH:
- /opt/cpanel/ea-ruby24/root/usr/bin
- /opt/cpanel/ea-ruby24/root/usr/sbin
- /usr/local/cpanel/3rdparty/lib/path-bin
- /usr/local/jdk/bin
- /usr/local/cpanel/3rdparty/lib/path-bin
- /usr/local/jdk/bin
- /usr/local/cpanel/3rdparty/lib/path-bin
- /usr/local/cpanel/3rdparty/lib/path-bin
- /usr/local/sbin
- /usr/local/bin
- /usr/sbin
- /usr/bin
- /opt/cpanel/composer/bin
- /usr/local/bin
- /usr/X11R6/bin
- /root/bin
- /usr/local/bin
- /usr/X11R6/bin
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,608
77
308
cPanel Access Level
Root Administrator
When you su to the user, make certain you are doing it like this:

su - user

The inclusion of - instructs su to create an environment as if the user logged in directly. I find that solves a number of problems that stem from use of su.

If you are using the - then I am out of suggestions at the moment.