Description
This howto will give you quick ways to determine the system you’re using, authentic Centos, or a data center clone.
Explanation of requirements
- Access to a system you suspect has authentic Centos installed
- A desire to face the truth
Doing the Work
Basic description of what will be done and what is expected.
- Make sure redhat-lsb and its dependencies are installed
- A quick command sequence to determine if you’re using authentic Centos, anyone with a normal account on the system should be able to run these commands without trouble or special access:
- Your output should look nearly identical to this with, perhaps, a few minor differences:
- If your command output does not look anything like the above, if you are missing any of the above output, or you know for a fact you have a custom kernel, cPanel or some other control panel installed YOU ARE NOT RUNNING AUTHENTIC CENTOS no matter what your hosting company or data center says to you. Therefore, you cannot get official support for this for obvious reasons. No matter how sound you think your argument is, if you meet one of the above requirements official help via centos.org or the IRC channel is nullified:
yum install redhat-lsb
lsb_release -a; uname -a; yum repolist all; ls -alsh /etc/yum.repos.d; cat /etc/redhat-release
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch Distributor ID: CentOS Description: CentOS Linux release 7.1.1503 (Core) Release: 7.1.1503 Codename: Core Linux webhost5.example.co.uk 3.10.0-229.20.1.el7.x86_64 #1 SMP Tue Nov 3 19:10:07 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.clouvider.net * epel: mirrors.coreix.net * extras: mirrors.clouvider.net * ius: lon.mirror.rackspace.com * updates: mirror.cov.ukservers.com repo id repo name status C7.0.1406-base/x86_64 CentOS-7.0.1406 - Base disabled C7.0.1406-centosplus/x86_64 CentOS-7.0.1406 - CentOSPlus disabled C7.0.1406-extras/x86_64 CentOS-7.0.1406 - Extras disabled C7.0.1406-fasttrack/x86_64 CentOS-7.0.1406 - CentOSPlus disabled C7.0.1406-updates/x86_64 CentOS-7.0.1406 - Updates disabled base/7/x86_64 CentOS-7 - Base enabled: 8,652 base-debuginfo/x86_64 CentOS-7 - Debuginfo disabled base-source/7 CentOS-7 - Base Sources disabled centosplus/7/x86_64 CentOS-7 - Plus disabled centosplus-source/7 CentOS-7 - Plus Sources disabled cr/7/x86_64 CentOS-7 - cr disabled epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 enabled: 8,918 epel-debuginfo/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 - Debug disabled epel-source/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 - Source disabled epel-testing/x86_64 Extra Packages for Enterprise Linux 7 - Testing - x86_64 disabled epel-testing-debuginfo/x86_64 Extra Packages for Enterprise Linux 7 - Testing - x86_64 - Debug disabled epel-testing-source/x86_64 Extra Packages for Enterprise Linux 7 - Testing - x86_64 - Source disabled extras/7/x86_64 CentOS-7 - Extras enabled: 281 extras-source/7 CentOS-7 - Extras Sources disabled fasttrack/7/x86_64 CentOS-7 - fasttrack disabled ius/x86_64 IUS Community Packages for Enterprise Linux 7 - x86_64 enabled: 133 ius-archive/x86_64 IUS Community Packages for Enterprise Linux 7 - x86_64 - Archive disabled ius-archive-debuginfo/x86_64 IUS Community Packages for Enterprise Linux 7 - x86_64 - Archive Debug disabled ius-archive-source IUS Community Packages for Enterprise Linux 7 - x86_64 - Archive Source disabled ius-debuginfo/x86_64 IUS Community Packages for Enterprise Linux 7 - x86_64 - Debug disabled ius-dev/x86_64 IUS Community Packages for Enterprise Linux 7 - x86_64 - Dev disabled ius-dev-debuginfo/x86_64 IUS Community Packages for Enterprise Linux 7 - x86_64 - Dev Debug Info disabled ius-dev-source IUS Community Packages for Enterprise Linux 7 - x86_64 - Dev Source disabled ius-source IUS Community Packages for Enterprise Linux 7 - x86_64 - Source disabled ius-testing/x86_64 IUS Community Packages for Enterprise Linux 7 - x86_64 - Testing disabled ius-testing-debuginfo/x86_64 IUS Community Packages for Enterprise Linux 7 - x86_64 - Testing Debug disabled ius-testing-source IUS Community Packages for Enterprise Linux 7 - x86_64 - Testing Source disabled updates/7/x86_64 CentOS-7 - Updates enabled: 1,726 updates-source/7 CentOS-7 - Updates Sources disabled repolist: 19,710 total 64K 4.0K drwxr-xr-x. 2 root root 4.0K Dec 4 22:20 . 12K drwxr-xr-x. 85 root root 8.0K Dec 8 19:33 .. 4.0K -rw-r--r--. 1 root root 1.7K Mar 31 2015 CentOS-Base.repo 4.0K -rw-r--r--. 1 root root 1.3K Mar 31 2015 CentOS-CR.repo 4.0K -rw-r--r--. 1 root root 649 Mar 31 2015 CentOS-Debuginfo.repo 4.0K -rw-r--r--. 1 root root 290 Mar 31 2015 CentOS-fasttrack.repo 4.0K -rw-r--r--. 1 root root 1.3K Mar 31 2015 CentOS-Sources.repo 4.0K -rw-r--r--. 1 root root 1002 Mar 31 2015 CentOS-Vault.repo 4.0K -rw-r--r--. 1 root root 957 Nov 25 2014 epel.repo 4.0K -rw-r--r--. 1 root root 1.1K Nov 25 2014 epel-testing.repo 4.0K -rw-r--r--. 1 root root 1.2K Apr 16 2015 ius-archive.repo 4.0K -rw-r--r--. 1 root root 1.2K Apr 16 2015 ius-dev.repo 4.0K -rw-r--r--. 1 root root 1.1K Apr 16 2015 ius.repo 4.0K -rw-r--r--. 1 root root 1.2K Apr 16 2015 ius-testing.repo CentOS Linux release 7.1.1503 (Core) |
Q: How did this happen?
A: You were lied to or misled by the service provider or you did not correctly check your facts before buying.
Q: What can I do, I need to fix this problem ASAP?!
A: Call or email your provider for their support options or reinstall your system with a known-good copy of Centos from any official Centos mirror.
Q: It’s close enough, why can’t I get some help?
A: Too many unknown changes have been made to the system. It’s impossible to tell what has been altered and to what extent. Therefore, it is not responsible to try and offer advice on something with unknown variables or possible negative ramifications to your system.
Troubleshooting
How to test
Explanation troubleshooting basics and expectations.
- Hosting companies or cPanel will often alter or completely replace packages available in official default Centos software repositories:
- Paths or binary file names may be moved, altered or replaced entirely:
Some of these packages include: php, mysql, custom kernels, custom scripts, etc.
Standard locations for normal system configuration files (such as: /etc/httpd/conf/httpd.conf) may be changed, binary files could have been removed, have their default paths altered, or been renamed.
It is improbable to determine each and every such alteration to the system. Once you notice too many things out of line, it’s best to just work with the system you have with the intended tools provided by your hosting company, or if you want an official Centos release, reinstall the system locally (if you have access) or remotely using VNC or another method.
Detailed information and further confirmation:
- http://wiki.centos.org
- http://wiki.centos.org/TipsAndTricks/BrokenVserver
- http://wiki.centos.org/SpoonFeed
More Information
Disclaimer
We test this stuff on our own machines, really we do. But you may run into problems, if you do, come to #centos on irc.freenode.net