Cpanel / Exim email attachment fix

In future Cpanel updates, /etc/cpanel_exim_system_filter may get overwritten if you edit it.
Solution:

  1. cp /etc/cpanel_exim_system_filter /etc/cpanel_exim_system_filter_custom
  2. Then edit /etc/cpanel_exim_system_filter_custom and remove the eml| from the four non-commented lines that reference it. You can also do this for URL, and LNK
  3. Then log into WHM, click on Exim Configuration Editor, and change the system filter at the bottom from /etc/cpanel_exim_system_filter to /etc/cpanel_exim_system_filter_custom
  4. Save the changes

Now Cpanel will use /etc/cpanel_exim_system_filter_custom, which if properly edited to remove the ’eml|’ references in the particular lines will allow EML attachments to go through in the future

CPanel Log file locations.

I often have to look over CPanel log files, and sometimes it just slips my mind on where they are located and what is contained in each one of them. I thought I would put together a listing of the files/locations and what is contained in them. Hope others find this useful.
CPanel stores it’s log files in the /usr/local/cpanel/logs directory. Below is a list of the common log files that are located in a cPanel server along with a short description.

access_log — cPanel access log for both cPanel and WHM
error_log — cPanel error log
license_log — cPanel license log
login_log — cPanel user login log
melange.log — cPanel chat server log
melange_msg.log — cPanel chat server message log
stats_log — cPanel web stats log

Also, cPanel keeps other system logs in the /var/log/ directory.

bandwidth — cPanel total bandwidth logs for the entire server
chkservd.log — chkservd service log
clamav — clamav log directory
cpupdate.log — cPanel update log
exim_mainlog — Exim email transaction log
exim_paniclog — Exim error log
exim_rejectlog — Exim rejected email log
maillog — Transaction and login log for all mail services
pgsql — PostgreSQL log file

cPanel keeps the domain weblogs in the /usr/local/cpanel/domlogs directory for each domain name that is hosted on the server. This includes FTP transfer logs for each account.

We all know CPanel sucks but…

I was really unaware of the “level of FAIL” that it was capable of demonstrating… until now.

TO REPRODUCE:
1) frontend/x3/diskusage/index.html , go to a folder with lots of files in it.
2) Click “Size (MB)” column header to sort.
3) Watch cPanel sort a numeric column alphabetically, but don’t blink because
it also auto-refreshes the page a second later with the original by-name sort
order.
4) Be amazed at the level of FAIL exhibited by a product claiming to be in its
11th iteration.

While the guy does an excellent job in describing what the issue is, the wording is somewhat humorous.

CPanel phpMyadmin MySQL Fix

If you end up getting this error

#2002 – The server is not responding (or the local MySQL server’s socket is not correctly configured)

Then you need to do the following.

vi /usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php

find
$cfg[‘Servers’][$i][‘socket’] = ”;
change to
$cfg[‘Servers’][$i][‘socket’] = ‘/var/lib/mysql/mysql.sock’;

next line
$cfg[‘Servers’][$i][‘connect_type’] = ‘tcp’;

change to

$cfg[‘Servers’][$i][‘connect_type’] = ‘socket’;

You should be all set after that…