Search

topic
author

chkservd

cpanel jack ChkServ.d chkservd is a process within tailwatchd. cPanel uses this to make sure things stay running. Parsing If you want a script to parse chkserv logs, you can use the following. ```perl !/usr/bin/env perl my $timestamp; while (<>) { # grab the current line and throw it in a variable my $line = $_; # if the line starts with a timestamp, store it and strip it if ($line =~ /^(\[20\d\d-\d\d-\d\d \d\d:\d\d:\d\d .\d\d\d\d\])/) { $timestamp=$1; ...

cloudLinux

cloudlinux jack Uninstalling CloudLinux Checking CloudLinux Removal The following shows you all part of CloudLinux you have not removed. bash rpm -qa --qf "[%{VENDOR} %{NAME} %{VERSION}-%{RELEASE}\n]"|sed 's/ Inc\. / /g'|awk '$1 ~/CloudLinux/' CloudLinux Installation If CloudLinux was ordered through us: bash cd /usr/local/src wget http://repo.cloudlinux.com/cloudlinux/sources/cln/cldeploy sh cldeploy -i reboot If CloudLinux was ordered externally, use the key install method: bash ...

configserver modsec control

configserver ConfigServer ModSecurity Control (cmc) About This is a plugin for WHM that allows you to whitelist rules and work with ModSecurity. Installation bash pushd /usr/local/src/ wget http://configserver.com/free/cmc.tgz tar -xzf cmc.tgz cd cmc/ sh install.sh popd

Contributing

jack Contributing If you want to contribute, please contact Jack Hayhurst. He administers the repository behind this. Wiki Rules You may not post anything internal or specific to your employer here.The main admin of this wiki already faces harassment for this wiki.If this wiki is put in jeopardy, we will displine the individual to support the wiki. Editing Guidelines info These editing guidelines may change. Create a branch, make your changes there, then submit a pull ...

disk activity

performance jack Disk Activity Tracking Sometimes a server is writing a lot to the disk, and it's not just swap usage. Often in these cases, iotop is simply too heavy. Run this to gather data for 120 seconds. bash dmesg -c > /dev/null; echo 1 >/proc/sys/vm/block_dump && sleep 120; echo 0 > /proc/sys/vm/block_dump Then, run this to parse the output: bash dmesg | egrep "READ|WRITE|dirtied" |sed 's/\[.*\]//g'| awk -F'[\( :]' '{print $2, $NF}'|sort|uniq -c| sort -rn This processes the writes ...

/home/wiki/pages/easyapache3.md

cpanel ea easyapache 3 jack EasyApache 3 Pre-upgrade Backups Before any EasyApache run, please backup the current running configuration. This can be done with the following line: bash mkdir -p /home/lwtemp; TS=$(date -u +%Y-%m-%d-%H:%M:%S%z); EACH=/usr/local/apache/conf/httpd.conf; [[ -x $EACH ]] && cp $EACH /home/lwtemp/httpd.conf.$TS; EACH=/usr/local/apache/conf/php.conf; [[ -x $EACH ]] && cp $EACH /home/lwtemp/php.conf.$TS; EACH=/usr/local/lib/php.ini; [[ -x $EACH ]] && ...

exim

cpanel exim jack Exim Basics There are three portions to Exim: The outgoing queue, which you can run direct Exim commands againstexiqgrep which makes some parts of querying the outgoing queue easierThe logs - pulled apart with grep, awk, and cut If you want to read a message that has been delivered, you cannot get that from Exim. That already passed Exim. Messages in the outgoing queue are either frozen, or thawed. If they are thawed, the next queue run will attempt to delivery that message. ...

Exim Configuration

cpanel exim jack Exim Configuration Smart Routes This bit will add a default Smart Route (send all email through a third party Spam relay). In /etc/exim.conf.local under the ROUTERSTART section add and adjust the following: smart_route: driver = manualroute domains = !+local_domains transport = remote_smtp route_list = * saferoute.coburnenterprises.com::587 To add a smart route for specific domains, add and adjust the following under the ROUTERSTART. This bit needs to ...

eximstats

mysql jack Eximstats Overview Eximstats parses exim_mainlog and maillog to insert their content into tables in the eximstats databases. This table is then queried to provide the Mail Usage Statistics in WHM. Since we don't use the Mail Usage Statistics, it doesn't much help us. Disable Eximstats We don't use Eximstats. It's a waste of time. So why not disable it? bash /usr/local/cpanel/bin/tailwatchd --disable=Cpanel::TailWatch::Eximstats mysql -Bse 'truncate table defers; truncate ...

infected site

Infected Website Process Notice: Gather information. All of the information you can. Change nothing, delete nothing, suspend nothing. Then, once you have everything - including confirmation - start cleaning/disabling/making changes. You don't want to tip anybody off. Warning: When restoring things, if possible, you want to use a backup from before the comprimise. You did not infect the site, so you do not know what all happened. Notice: You're here because you have some sort ...