CAll Us: +92-3338901062 Submit Ticket   Login
Install CXS ( ConfigServer eXploit Scanner ) on Centos WebPanel (CWP) Server

Install CXS ( ConfigServer eXploit Scanner ) on Centos WebPanel (CWP) Server

ConfigServer eXploit Scanner (cxs) is a tool from configserver that performs active scanning of files as they are uploaded to the server along with the files already exist on the server.

This is one of the best security tool for your server and thus you should install it on your CWP (Control WebPanel) server to prevent the dangerous scripts to be uploaded on your server.

In this tutorial, I will show you how to install and configure CXS software on your CWP server.


  • Control WebPanel (formerly known as Centtos WebPanel) Installed on Server
  • root server login
  • Active CXS license for your server IP

Step 1 - Downloading and Installation of CXS from official site

Login to your server SSH using any SSH client e.g. Putty as a root user and perform following commands

cd /usr/src
rm -f cxs*
tar -xzf cxsinstaller.tgz
chattr -i -R /usr/local/cwpsrv/htdocs/admin/
perl ipv4 
rm -fv cxsinstaller.*

Don’t forget to replace “ipv4” with your licensed server IP.

Step 2 - Adding clamd socket to cxs config for the scanner

sed -i '$ a clamdsock=/var/run/clamd.amavisd/clamd.sock' /etc/cxs/cxs.defaults

You may get following issue while performing the above command

sed: can’t read /etc/cxs/cxs.defaults: No such file or directory

It means that you don’t have file /etc/cxs/cxs.defaults. Actually, this exists but disabled as /etc/cxs/cxs.defaults
So, use following command to fix this issue

cd /etc/cxs
mv cxs.defaults.sample cxs.defaults

Once this has been done, then try to perform above command again.

After installation of CXS, go to CWP-admin > Configserver Scripts >> ConfigServer Exploit Scanner and go through onscreen instructions and complete the installation (Default Settings are recommended)

Known Issues

If CXS gui ask for clamd scanner socket, run the `Step 2` command again and restart cxswatch service with the command given below

service cxswatch restart

If you encounter any issue during this process, leave the comment below or send an email at

Configure SSL and Green Padlock on Centos Webpanel Hostname

If you want to get the fully secured hostname with green padlock on Centos Webpanel, just follow the simple two steps.

1. Change the hostname through Change Hostname option in admin panel so that you get autoSSL installed

2. Reload cwpsrv service from console/ssh
service cwpsrv reload

3. and that’s it. Enjoy green padlock on hostname login panes in Centos Web Panel.

How to create wildcard Subdomains in Centos Webpanel (CWP)?

How to create wildcard Subdomains in Centos Webpanel (CWP)?

Currently, we can’t create wildcard subdomains in Free control Panel Centos Webpanel. Through this tutorial, you will be able to create wildcard subdomain in CWP.

Copy and Paste this code at the end of /usr/local/apache/conf.d/vhosts.conf file through SSH or file manager

# vhost_start *
ServerAlias *
DocumentRoot “/home/yourdoma/public_html”
ErrorLog “/home/yourdoma/public_html/error.log”
ScriptAlias /cgi-bin/ /home/yourdoma/public_html/cgi-bin/
# Custom settings are loaded below this line (if any exist)
# Include “/usr/local/apache/conf/userdata/yourdoma/**.conf
SuexecUserGroup yourdoma yourdoma
suPHP_UserGroup yourdoma yourdoma
<Directory “/home/yourdoma/public_html”>
AllowOverride All
# vhost_end *

Don’t forget to replace with your own domain name and yourdoma with the user name of the account.

Save the file and start using wildcard subdomains on your account.