Hiển thị các bài đăng có nhãn Cpanel. Hiển thị tất cả bài đăng
Hiển thị các bài đăng có nhãn Cpanel. Hiển thị tất cả bài đăng

Thứ Hai, 3 tháng 8, 2015

How to list all cron entries on a WHM/cPanel based servers

How to list all cron entries on a WHM/cPanel based servers


Here is the small piece of code that helps

 for user in $(cut -f1 -d: /etc/passwd); do crontab -u $user -l; done 

And Cpanel Crontab Location

/var/spool/cron/
Read More

Thứ Hai, 2 tháng 3, 2015

Cpanel disable cron jobs

Cpanel disable cron jobs

Q: Is there any way to disable cron jobs which are getting executed from individual website's php scripts?
A: You may login to the server via SSH and add the username to /etc/cron.deny.
Also restart the crontab

Read More

Thứ Hai, 19 tháng 5, 2014

Exim Commands

Exim Commands

Debug a mail delivery:
 /usr/sbin/exim -bt -d email@address.com
Retry message delivery:
 /usr/sbin/exim -M messageID
Force delivery of all message:
 /usr/sbin/exim -qf
Force delivery of all message and delete of frozen ones:
 /usr/sbin/exim -qff
Shows log delivery for a message:
 /usr/sbin/exim -Mvl messageID
Display message body:
 /usr/sbin/exim -Mvb messageID
Display message header:
 /usr/sbin/exim -Mvh messageID
Delete a message without warning:
 /usr/sbin/exim -Mrm messageID
Count messages in queue:
 /usr/sbin/exim -bpr | grep "<" | wc -l or /usr/sbin/exim -bpc
Display all messages from queue:
 /usr/sbin/exim -bp
Count frozen messages:
 /usr/sbin/exim -bpr | grep frozen | wc -l
Delete frozen messages:
 /usr/sbin/exim -bpr | grep frozen | awk '{print $3}' | xargs /usr/sbin/exim -Mrm

Read More

Thứ Sáu, 16 tháng 5, 2014

Disable exim email on single cPanel Account

Disable exim email on single cPanel Account 

A week ago one of our clients account been compromised and the attacker used the server to blast emails.
as a system administrator my task was to prevent any outgoing email from the account before I start to investigate the attack and remove any kind of scripts from the hosting account.

Studying cPanel files made me to come around following solution.
To disable email for one account we can change the permission of /etc directory for that particular user, using our root power simply use following commands:
chmod 0 /home/username/etc
chattr +ia /home/username/etc
You need to replace username with your user username. Once this is done the user will not be able to send anymore emails from local server. To undo this you should run the chattr once more:
chattr -ia /home/username/etc
chmod 750 /home/username/etc
Read More

Thứ Sáu, 14 tháng 3, 2014

Fix Cpanel Email Disk Space Usage show incorrectly

 Fix Cpanel Email Disk Space Usage show incorrectly


By default , In Cpanel Email Disk space usage is recalculated every four hours.
To update Email Disk space usage, try running /scripts/generate_maildirsize on the affected account. The syntax would be:

# /scripts/generate_maildirsize --confirm --allaccounts --verbose $USER
 Replace $USER with the actual cPanel account username (the cPanel user, not the domain).
Read More

Thứ Năm, 6 tháng 3, 2014

How to change Mysql data directory location?

How to change Mysql data directory location?

Mysql is most famous open source RDBMS (Relational database management system) software used by millions of websites.
Most of website with very large Mysql database experience storage problem because /var partition is to small which holds Mysql data files and folder by default.
If you are experiencing such a problem then you have to move your Mysql data directory to other linux partition (eg: /home).
To change your directory without affecting Mysql configuration. Follow these steps.

Note: before changing Mysql data directory please backup all your database

mysqldump --all-databases | gzip > /home/alldatabases.sql.gz

  • First stop Mysql service
/etc/init.d/mysqld stop
  • create a folder 'mysql' in /home partition
  • copy whole Mysql data directory to 'mysql' in preserve mode
cp –pr /var/lib/mysql/ /home/mysql

-p means preserve the specified attributes (default: mode, ownership, timestamps)

-r means copy each directory sub-directory and files

  • then create a symbolic link from new data directory to old data directory
ln -s /home/mysql/ /var/lib/mysql/

  • Now start Mysql service
/etc/init.d/mysqld start
  • If its working properly then delete each file and folder from old data directory
cd /var/lib/mysql rm –rf  *
Read More

Chủ Nhật, 23 tháng 2, 2014

Cpanel Restart Services

Cpanel Restart Services

 By default, you may restart the following services via WHM:
  •     DNS nameserver (named/BIND or NSD)
  •     FTP Server (ProFTPd or Pure-FTPd)
  •     HTTP web server (Apache/httpd)
  •     POP3/IMAP email server (Courier or Dovecot)
  •     POP3 server (cPPOP)
  •     Mail server (Exim)
  •     SQL server (MySQL)
  •     SSH server (openSSH)
Restarting a service will not work if the service is stopped. If you wish to start or stop a service, refer to the Service Manager feature in WHM.

To restart a service:
  •     On the main Restart Services screen, select the service you wish to restart.
  •     When asked whether you wish to restart the service, click Yes. 

Restart from the command line 

Important: If you use IPv6, the service network restart command will remove the IPv6 addresses from the network device. To restart your IPv6 configuration, you must run the /etc/init.d/cpipv6 restart command after you restart the network service.

exim mail transfer agent (mta). /usr/local/cpanel/scripts/restartsrv exim
bind nameserver daemon. /usr/local/cpanel/scripts/restartsrv named
proftp ftp server daemon. /usr/local/cpanel/scripts/restartsrv proftpd
pure-ftp ftp server daemon. /usr/local/cpanel/scripts/restartsrv pureftpd
apache web server daemon. /usr/local/cpanel/scripts/restartsrv httpd
courier mail server daemon. /usr/local/cpanel/scripts/restartsrv courier
dovecot mail server daemon. /usr/local/cpanel/scripts/restartsrv dovecot
system logs daemon. /usr/local/cpanel/scripts/restartsrv syslogd
clam antivirus software daemon. /usr/local/cpanel/scripts/restartsrv clamd
secure shell (ssh) daemon /usr/local/cpanel/scripts/restartsrv sshd
common unix superserver daemon responsible for managing internet services. /usr/local/cpanel/scripts/restartsrv inetd
cpanel’s version of pop3 mail downloading service. similar to imap. /usr/local/cpanel/scripts/restartsrv cppop
imap mail downloading service. similar to pop3. /usr/local/cpanel/scripts/restartsrv imapd
mysql database server. /usr/local/cpanel/scripts/restartsrv mysql
postgresql database server. /usr/local/cpanel/scripts/restartsrv postgresql
interchange e-commerce server. /usr/local/cpanel/scripts/restartsrv interchange
java servlet container and http server. /usr/local/cpanel/scripts/restartsrv tomcat
chat service. /usr/local/cpanel/scripts/restartsrv entropychat

Restart directly from the command line
 If this does not work, you can attempt to restart the service directly. The location of the service depends upon your operating system; however, for many distributions, services are located in the /etc/init.d/ directory.

 

Read More

Thứ Năm, 24 tháng 10, 2013

What are Core Dumps?

What are Core Dumps?

Core dumps are files the system creates when a process running in memory does not finish. The portion of memory that the process was using is then dumped to a file. This can be quite helpful when debugging your scripts. Core dumps typically have a file name like: core.5876
Reviewing Core Dump Files on VPS or Dedicated Servers

For most users, getting usable information from a core dump file can be difficult. If you are a VPS or Dedicated customer with command line (shell) access, most of the information in the core dump can be found by running either one of these two commands:

gbd -c core.####

strings core.####
Reviewing Core Dump Files on Shared Servers

If you are on a shared hosting package, for security reasons you do not have access to the command line. For our shared customers, we've created a basic PHP script that uses the commands above to allow you to find any core dump files in your account. The script can be found here:

http://inmotionhosting.com/support/files/scripts/coredumpcheck.txt

    Upload the coredumpcheck.txt file to the folder where you want to view core dumps.
    Rename the file to coredumpcheck.php
    Access coredumpcheck.php file in your browser. For example, if you have core dumps in your public_html folder then you would go to http://yourdomain.com/coredumpcheck.php
    The script will list all the core dumps in the current directory. Click any of the file names to view more details about the core dump.
    Look under the "RUNNING: gdb -c core.30387" heading to find the script that is causing the problem. It will look something like:

    Core was generated by '/usr/bin/php /home/training/public_html/t2c_escalation/escalatet2s.php'.


Resolving Core Dumps

Core dumps are advanced in nature. It's best practice to contact your web developer with the information that you have using the coredumpcheck.php script. If you are using a CMS such as WordPress, Joomla, or Drupal and the core dump is being caused by a plugin or module, your can disable or remove that module to resolve the issue.
Read More

Thứ Hai, 1 tháng 7, 2013

Locations of Common Log Files on cPanel Servers

Locations of Common Log Files on cPanel Servers


service (daemon) name error log location notes
apache web server (httpd) /usr/local/apache/logs/error_log details errors encountered during apache requests.
bind nameserver (named) /var/log/messages
proftp server (proftpd) /var/log/messages
pure-ftp server (pureftpd) /var/log/messages
exim mail transfer agent (exim) /var/log/exim_mainlog details all exim transactions.
exim mail transfer agent (exim) /var/log/exim_rejectlog details rejected messages and reasons.
exim mail transfer agent (exim) /var/log/exim_paniclog details configuration and similar errors.






courier pop3/imap service (imapd) /var/log/maillog
dovecot pop3/imap service (imapd) /var/log/maillog
mysql database server (mysqld) /var/lib/mysql/hostname.err substitute hostname with your server's hostname.

(in freebsd: /var/db/mysql/hostname.err )
openssh secure shell service (sshd) /var/log/messages, log location depends on the configuration of the syslog service.

/var/log/secure, or

/var/log/auth

Apache

Apache is the web server that is typically utilized by cPanel.  On cPanel servers Apache does write to a rather high number of logs as each site has its own traffic log.

    /usr/local/apache/logs/access_log

The access_log is used to log all http requests to ether the hostname of the server, requests directed at the servers IPs, or sites that resolve to the server but are no longer hosted on it.

    /usr/local/apache/logs/error_log

On cPanel servers all Apache errors, regardless of site, are logged in the error_log.

    /usr/local/apache/domlogs

Within the domlogs folder each site on the server will have its own log file.  These files will be the fully qualified domain name for the domain, ie domain.com, liquidweb.com.  All http traffic to a site will be logged in this log file.

Exim

Exim is the MTA(Mail Transfer Agent) that cPanel utilizes.  Exim has three primary logs, but only two of these logs contain useful information

    /var/log/exim_mainlog

The exim_mainlog contains ALL interactions that exim handles, so both incoming and outgoing mail transactions.

    /var/log/exim_rejectlog

The exim_rejectlog contains all connection attempts that were denied.  This information is also logged in the exim_mainlog.

For more information on Exim’s logs try a Google search for “Exim Cheat Sheet”.

cPanel

Cpanel does log all http traffic to WHM, webmail, and cPanel access.  All cPanel logs are located in the /usr/local/cpanel/logs directory.

    /usr/local/cpanel/logs/access_log

This access_log contains all traffic to WHM, cPanel, and webmail over http.

    /usr/local/cpanel/logs/error_log

This error_log contains all errors that occur when accessing a cPanel related site over http or https.
FTP

Regardless of FTP deamon in use, cPanel does log connections, uploads, and downloads.  However, FTP does not have its own log file it is instead threaded into the systemside messages log file.

    /var/log/messages

All FTP transactions are recorded in messages.  They are however interwoven with all over system messages that are logged in this file.

===
Read More

Chủ Nhật, 19 tháng 5, 2013

How to install Linux Malware Detect (LMD)

How to install Linux Malware Detect (LMD)


Maldet also known as Linux Malware Detect virus scanner for Linux.

Download the tar file using the below link:

    wget http://www.rfxn.com/downloads/maldetect-current.tar.gz

Extract the file using the below command

    tar -xzf maldetect-current.tar.gz

go to the maldet folder

    cd maldetect-*

Now, run the below command to install maldet.

    sh ./install.sh or sudo sh ./install.sh

It will give below output

    Linux Malware Detect v1.3.4
    (C) 1999-2010, R-fx Networks <proj@r-fx.org>
    (C) 2010, Ryan MacDonald <ryan@r-fx.org>
    inotifywait (C) 2007, Rohan McGovern <rohan@mcgovern.id.au>
    This program may be freely redistributed under the terms of the GNU GPL

    installation completed to /usr/local/maldetect
    config file: /usr/local/maldetect/conf.maldet
    exec file: /usr/local/maldetect/maldet
    exec link: /usr/local/sbin/maldet
    cron.daily: /etc/cron.daily/maldet

    maldet(32517): {sigup} performing signature update check…
    maldet(32517): {sigup} local signature set is version 2010051510029
    maldet(32517): {sigup} latest signature set already installed

    

To update the maldet use the below commands.

    maldet –update-ver

    maldet –update[/i]

To scan the files.

    maldet -a /home/username/

It will scan all the files and provide you the output.



To scan all user uder public_html paths under /home*/ this can be done with:

    root@server[~]# maldet –scan-all /home?/?/public_html

To scan the same path but the content that has been created/modified in the last 5 days:

    root@server[~]# maldet –scan-recent /home?/?/public_html 5

To scan but forget to turn on the quarantine option, you could quarantine all malware results from a previous scan with:

    root@server[~]# maldet –quarantine SCANID

If you wanted to attempt a clean on all malware results from a previous scan that did not have the feature enabled, you would do with.

    root@server[~]# maldet –clean SCANID

If you had a file that was quarantined from a false positive or that you simply want to restore (i.e: you manually cleaned it), you can use the following:

    root@server[~]# maldet –restore config.php.2384
    root@server[~]# maldet –restore /usr/local/maldetect/quarantine/config.php.2384

 
Read More

Thứ Ba, 14 tháng 5, 2013

How to enable Custom php.ini for PHP FCGI

If you want to enable custom php.ini settings for PHP FCGI on your server then follow the below steps : 

1 > Create a .htaccess file under the directory : /home/username/public_html
root@server[#] cd /home/username/public_html
root@server[/home/username/public_html]# vi .htaccess

And the below two lines at the top :
AddHandler php5-fastcgi .php
Action php5-fastcgi /cgi-bin/php.fcgi

save and quit.
2 > go to the cgi-bin directory : /home/username/public_html/cgi-bin
root@server[#] cd /home/username/public-html/cgi-bin
and then copy the default php.ini here
root@server[#] cp /usr/local/lib/php.ini /home/username/public_html/cgi-bin/
3 > Create php.fcgi file to load custom php.ini
Please note that you should still be in /home/username/public_html/cgi-bin location.
root@server[/home/username/public_html/cgi-bin] # vi php.fcgi
and then add the below code :
#!/bin/sh
export PHP_FCGI_CHILDREN=1
export PHP_FCGI_MAX_REQUESTS=10
exec /usr/local/cpanel/cgi-sys/php5

save and quit.
Now make the file php.cgi executable:
root@server[/home/username/public_html/cgi-bin] # chmod + x php.fcgi
4 > Change ownership of files to correct user:
root@server[/home/username/public_html/cgi-bin] chown username.username * -R
And if it still does not work for you then follow the below steps as well :
5 > Add paths to php.conf file
root@server[#] vi /usr/local/apache/conf/php.conf
and add the below lines :
Action php5-fastcgi /cgi-bin/php.fcgi
AddType application/x-httpd-php .php

save and quit.
and after adding the above two lines the php.conf file should look like this :
root@server[/usr/local/apache/conf] # cat php.conf
# Fastcgi configuration for PHP5
LoadModule fcgid_module modules/mod_fcgid.so
MaxRequestsPerProcess 500
AddHandler fcgid-script .php5 .php4 .php .php3 .php2 .phtml
Action php5-fastcgi /cgi-bin/php.fcgi
AddType application/x-httpd-php .php
FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php5
FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php4
FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php
FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php3
FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php2
FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .phtml

# End of autogenerated PHP configuration.
6 > Distill and rebuild Apache, then restart Apache
root@server[#] /usr/local/cpanel/bin/apache_conf_distiller –update
root@server[#] /scripts/rebuildhttpdconf
root@server[#] /etc/init.d/httpd restart
And finally to test if the custom php.ini is working follow the steps :

root@server[#] cd /home/username/public_html
root@server[/home/username/public_html]# vi info.php
Add the below lines :
< ?php
phpinfo();
?>

save and quit.
Change the ownership of info.php file to user:user
root@server[/home/username/public_html]# chown username:username info.php
Now browse the URL : http://domain.com/info.php
And search for the line : Loaded Configuration File
Loaded Configuration File /home/username/public_html/cgi-bin/php.ini

Or
Here's a simpler solution:

Edit the file called /usr/local/cpanel/cgi-sys/php5 -- insert the line above exec /usr/bin/php as follows:


Code:
#!/bin/sh

# If you customize the contents of this wrapper script, place
# a copy at /var/cpanel/conf/apache/wrappers/php5
# so that it will be reinstalled when Apache is updated or the
# PHP handler configuration is changed

[ -f ~/php.ini ] && exec /usr/bin/php -c ~/
exec /usr/bin/php 

Copy the file over to /var/cpanel/conf/apache/wrappers/php5 as indicated at the top of the file.

Now, if any account has a php.ini file in their home directory (not public_html) then it will be used instead of the system-provided one.
Read More

Chủ Nhật, 5 tháng 5, 2013

Change the collation on a MySQL database via PhpMyAdmin

 Change the collation on a MySQL database via PhpMyAdmin

MySQL supports different types of collation and characters sets. The following article will walk you through how to change the collation for one table or the entire database. 




Change collation for the entire database
  1. Connect to the database using phpMyAdmin
  2. Select your database and click on Operations from the top menu 
  3. On the drop down menu under collation select the character or collation that you intend to use for the database. 
  4. Click on Go and the change is effected for the entire database
Change the collation for one table
  1. Connect to the database using phpMyAdmin
  2. Select your database
  3. Select your table and click on operations from the top menu.
  4. Under the Table options menu select the collation/character for the table
  5. Click on Go to make the change for the table


Read More

Custom php.ini settings for PHP FCGI



custom php.ini settings for PHP FCGI


If you want to enable custom php.ini settings for PHP FCGI on your server then follow the below steps :

1. Create a .htaccess file under the directory : /home/username/public_html

cd /home/username/public_html
vi .htaccess
Add the below two lines at the top :
AddHandler php5-fastcgi .php
Action php5-fastcgi /cgi-bin/php.fcgi
save and quit.

2. Go to the cgi-bin directory : /home/username/public_html/cgi-bin

cd /home/username/public-html/cgi-bin
and then copy the default php.ini here
cp /usr/local/lib/php.ini /home/username/public_html/cgi-bin/

3. Create php.fcgi file to load custom php.ini

Please note that you should still be in /home/username/public_html/cgi-bin location.
vi php.fcgi
and then add the below code :
#!/bin/sh
export PHP_FCGI_CHILDREN=1
export PHP_FCGI_MAX_REQUESTS=0
exec /usr/local/cpanel/cgi-sys/php5
save and quit.
Now make the file php.cgi executable:
chmod + x php.fcgi


4. Change ownership of files to correct user:

chown username.username * -R
And if it still does not work for you then follow the below steps as well :

5. Add paths to php.conf file

vi /usr/local/apache/conf/php.conf
and add the below lines :
Action php5-fastcgi /cgi-bin/php.fcgi
AddType application/x-httpd-php .php
save and quit.
and after adding the above two lines the php.conf file should look like this :
root@server[/usr/local/apache/conf] # cat php.conf
# Fastcgi configuration for PHP5
LoadModule fcgid_module modules/mod_fcgid.so
MaxRequestsPerProcess 500
AddHandler fcgid-script .php5 .php4 .php .php3 .php2 .phtml
Action php5-fastcgi /cgi-bin/php.fcgi
AddType application/x-httpd-php .php
FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php5
FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php4
FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php
FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php3
FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php2
FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .phtml
# End of autogenerated PHP configuration.

6. Distill and rebuild Apache, then restart Apache

/usr/local/cpanel/bin/apache_conf_distiller –update
/scripts/rebuildhttpdconf
/etc/init.d/httpd restart
Read More

Thứ Hai, 15 tháng 4, 2013

Exim Remove All messages From the Mail Queue

Question:

 I'm using Exim mail server under CentOS Linux. How do I remove all messages from the Exim mail queue using a shell prompt?

Answer:
Exim is a mail transfer agent (MTA) used on Unix-like operating systems. It aims to be a general and flexible mailer with extensive facilities for checking incoming e-mail.

To print a list of the messages in the queue, enter:

# exim -bp

To remove a message from the queue, enter:

# exim -Mrm {message-id}

To remove all messages from the queue, enter:

# exim -bp | awk '/^ *[0-9]+[mhd]/{print "exim -Mrm " $3}' | bash
Dallas Marlow, suggested following clean command:
# exim -bp | exiqgrep -i | xargs exim -Mrm
DELETE FROZEN MAILS
/usr/sbin/exim -bp | awk '$6~"frozen" { print $3 }' | xargs /usr/sbin/exim -Mrm
REMOVE MAILS FROM SENDER
/usr/sbin/exiqgrep -i -f (MAIL ADDRESS HERE) | xargs /usr/sbin/exim -Mrm 
OR 
/usr/sbin/exim -bp | awk '$4~"info@domain.com" { print $3 }' | xargs /usr/sbin/exim -Mrm


Read More

How to block emails from a specific address using Exim

Issue :
How to block emails from a specific address on a cPanel/WHM server using Exim ?
Solution :
This is fairly easy to achieve with Exim.
First you’ll need to find the system filter file for Exim. This can be found out through WHM >> Main >> Service Configuration >> Exim Configuration Editor.
Towards the middle of the page, under the section ‘Filters’ , you ‘ll find the path to the file.
Open that file via SSH using your favorite editor and add the following to it :
if first_delivery
and ( (“$h_from:” contains “emailtoblock@domainname.com”)
)
then fail
endif
Read More

Install ConfigServer Apps On A cPanel/WHM Server





ConfigServer provide a range of paid and free applications, including a significantly more advanced firewall, that plug directly into WHM on your cPanel server. These applications are highly recommended for anyone who is serious about the security of their cPanel Server, as they not only provide enhanced security functionality, but also allow you to easily manage a number of other basic cPanel functions, such as mail settings, mail queues, and a more advanced ModSecurity tool.
Below is a list of the free applications that we will be providing the simple installation instructions for:
  1. CSF - this is an advanced firewall system utilising Linux ip tables
  2. Mail Manage – allows you to adjust mail settings, such as hourly limits and email forwarders, on a per account basis
  3. Mail Queues – easily manage your email queues with the ability to force run the queue and delete stuck messages
  4. ModSecurity Control – if you have installed ModSecurity on your cPanel Server, this provide an advanced management interface
  5. Explorer – This is a file system explorer web interface which allows you to also run basic shell commands within folders – WARNING: While this utility can be very useful it is also very dangerous indeed. You can easily render your server inoperable and unrecoverable by performing ill advised actions. No warranty or guarantee is provided with the product that protects against system damage.
NOTE: All of the installations below require you to be logged into SSH as root.
Install ConfigServer Security & Firewall
rm -fv csf.tgz
wget http://www.configserver.com/free/csf.tgz
tar -xzf csf.tgz
cd csf
sh install.sh
Remove installation files:
cd ..
rm -Rfv csf/ csf.tgz
Install ConfigServer Mail Manage
rm -fv cmm.tgz
wget http://www.configserver.com/free/cmm.tgz
tar -xzf cmm.tgz
cd cmm
sh install.sh
Remove installation files:
cd ..
rm -Rfv cmm/ cmm.tgz
To uninstall:
rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/addon_cmm.cgi
rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/cmmversion.txt
rm -Rfv /usr/local/cpanel/whostmgr/docroot/cgi/cmm/
Install ConfigServer Mail Queues
rm -fv cmq.tgz
wget http://www.configserver.com/free/cmq.tgz
tar -xzf cmq.tgz
cd cmq
sh install.sh
Remove installation files:
cd ..
rm -Rfv cmq/ cmq.tgz
To uninstall:
rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/addon_cmq.cgi
rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/cmqversion.txt
rm -Rfv /usr/local/cpanel/whostmgr/docroot/cgi/cmq/
Install ConfigServer ModSecurity Control
rm -fv cmc.tgz
wget http://www.configserver.com/free/cmc.tgz
tar -xzf cmc.tgz
cd cmc
sh install.sh
Remove installation files:
cd ..
rm -Rfv cmc/ cmc.tgz
To uninstall:
rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/addon_cmc.cgi
rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/cmcversion.txt
rm -Rfv /usr/local/cpanel/whostmgr/docroot/cgi/cmc/
Install ConfigServer Explorer
rm -fv cse.tgz
wget http://www.configserver.com/free/cse.tgz
tar -xzf cse.tgz
cd cse
sh install.sh
Remove installation files:
cd ..
rm -Rfv cse/ cse.tgz
To uninstall:
rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/addon_cse.cgi
rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/cseversion.txt
If you run into any issue with the install, just head over to the ConfigServer forums and you’ll find plenty of people who can assist you.

Read More