I am trying to find what happened probably was a cPanel Update or a Security Breach
First I found this very weird doing a print_r($_SERVER); I got this
[PATH] => /usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/courier-imap/sbin:/usr/lib/courier-imap/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin:/opt/bin
This started to happen around Fri, 22 Jan 2016 10:45:41 GMT
Before the PATH was
"PATH":"sbin:/usr/sbin:/bin:/usr/bin"
Sun, 17 Jan 2016 14:40:27 GMT
2) The error 500 have something to do with a Ruby problem when running php cli / bash from command line, many scripts are showing this error, the problem was that fcgid is detecting the error and close the connection by FcgidErrorScanInterval 3 . I changed to a higher value and now the scripts end properly but all the time showing this error at the end
/usr/lib/ruby/1.8/thread.rb:5:in `require': no such file to load -- thread.so (LoadError)
from /usr/lib/ruby/1.8/thread.rb:5
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:11:in `require'
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:11
from /usr/bin/gem:8:in `require'
from /usr/bin/gem:8
/usr/lib/ruby/1.8/thread.rb:5:in `require': no such file to load -- thread.so (LoadError)
from /usr/lib/ruby/1.8/thread.rb:5
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:11:in `require'
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:11
from /usr/bin/gem:8:in `require'
from /usr/bin/gem:8
3) I was using the cPanel API v1 also around the same date stopped to work and also give random error messages, I updated the scripts to use the cPanel API v2 (related to database, user creation) and that fixed the issue but I am thinking everything is related.
Linux Centos 6.7
cPanel 54 build 14 updated from 11.52 weeks ago
modsecurity disabled
apache 2.2 php 5.5.x fcgid
Also notice that I have a new reseller (someone that I trust from years ago) and I gave access to the transfer tool too
What could be the main problem or the next steps to fix or prevent this issues
First I found this very weird doing a print_r($_SERVER); I got this
[PATH] => /usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/courier-imap/sbin:/usr/lib/courier-imap/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin:/opt/bin
This started to happen around Fri, 22 Jan 2016 10:45:41 GMT
Before the PATH was
"PATH":"sbin:/usr/sbin:/bin:/usr/bin"
Sun, 17 Jan 2016 14:40:27 GMT
2) The error 500 have something to do with a Ruby problem when running php cli / bash from command line, many scripts are showing this error, the problem was that fcgid is detecting the error and close the connection by FcgidErrorScanInterval 3 . I changed to a higher value and now the scripts end properly but all the time showing this error at the end
/usr/lib/ruby/1.8/thread.rb:5:in `require': no such file to load -- thread.so (LoadError)
from /usr/lib/ruby/1.8/thread.rb:5
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:11:in `require'
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:11
from /usr/bin/gem:8:in `require'
from /usr/bin/gem:8
/usr/lib/ruby/1.8/thread.rb:5:in `require': no such file to load -- thread.so (LoadError)
from /usr/lib/ruby/1.8/thread.rb:5
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:11:in `require'
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:11
from /usr/bin/gem:8:in `require'
from /usr/bin/gem:8
3) I was using the cPanel API v1 also around the same date stopped to work and also give random error messages, I updated the scripts to use the cPanel API v2 (related to database, user creation) and that fixed the issue but I am thinking everything is related.
Linux Centos 6.7
cPanel 54 build 14 updated from 11.52 weeks ago
modsecurity disabled
apache 2.2 php 5.5.x fcgid
Also notice that I have a new reseller (someone that I trust from years ago) and I gave access to the transfer tool too
What could be the main problem or the next steps to fix or prevent this issues