cldetect – A tool to detect installed software details

What is cldetect?

It is a tool developed by CloudLinux to manage installed software.

It is used to detect installed software, and adjust CloudLinux options accordingly.

As we know, CloudLinux has a lot of options available to manage and tweak Linux servers. We have already covered some interesting topics about Cloud Linux. You can review this category for more articles on CloudLinux.

What is Cloud Linux?

CloudLinux is a Linux based Operating system especially used in a shared environment which isolates each user in its own light weight virtualized environemnts (LVE) which consumes predefined amount of resources allocated for each user. That is, each user will be in a caged environment.

The resource usage of any user won’t affect the stability of another users. Each user will be allocated a specific amount of resources. If a user’s PHP script utilizes the entire resources allocated to it, then it won’t affect other users. Only that particular user will face problems related to this. That particular user will get a “Resource limit reached” error while he access his website. Read more…

Here we go with cldetect options…

Path : /usr/bin/cldetect

You can check the available options by executing the following command:

/usr/bin/cldetect -h


cldetect -h

To check installed control panel version.

cldetect --detect-cp [~]# cldetect --detect-cp

Other related options..

cldetect --detect-cp-full

Prints control panel, version and panel specific data (CP_NAME,CP_VERSION,...)
cldetect --detect-cp-nameonly

Prints control panel name (CP_NAME)

To print Admin email address of installed control panel.

cldetect --get-admin-email

Output [~]# cldetect --get-admin-email
--cxs-installed                     check if CXS is installed. Returns 0 if installed, 1 otherwise
--cpanel-suphp-enabled              check if suPHP is enabled in cPanel. Returns 0 if enabled, 1 otherwise

--detect-litespeed                  check if LiteSpeed is installed. Returns 0 if installed, 1 otherwise

--detect-postgresql                 check if PostGreSQL is installed. Returns 0 if installed, 1 otherwise
--print-apache-gid                  prints current apache gid
--print-da-admin                    prints DirectAdmin admin user
--set-securelinks-gid               changes /etc/sysctl.conf if apache gid != 48 (default)
--set-nagios                        changes /etc/sysctl.conf if nagios is installed
--cl-setup                          check if CloudLinux is installing. Returns 0 if installing, 1 otherwise
--update-license                    updates license
--update-new-key                    updates license with new key
--check-license                 :   check license. Returns OK if license is not older than 3 days, error message otherwise
                              -q:   check license. Returns 0 if license is not older than 3 days, 1 otherwise
--no-valid-license-screen           Returns no valid license found screen.
--license-out-of-date-email         Returns License out of Date Email.
--check-openvz                      Returns enviroment id.

Advantages of CloudLinux – a detailed view!

There are a lot of advantages on CloudLinux OS over the traditional Linux system. Here, I’m explaining some of them.
1. High stability by controlling the resources for a single user

As we know, this technology is based on LVE (Light weight Virtualized Environment). Each user in the server will be in a caged environment.

2. High server security

With CageFS enabled in CloudLinux based servers, the data/information of a user won’t be available to other users. Read more…

Arunlal Ashok

Sr. Linux Server Administrator. I'm managing Linux servers since 2012. I started this blog to share and discuss my ideas. Check My Profile in uPwork (oDesk) and create a job, if you need any administration help. Thanks!!

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *