Home » Posts taggedcpanel

Changing MySQL memory allocator to TCMalloc

For those of you who don’t know TCMalloc is short for Thread-Caching Malloc. It’s docs can be found here which show a more in depth view. TCMalloc can also be used with other applications via LD_PRELOAD, or by recompiling with the -ltcmalloc linker flag. If you plan on using...
Continue reading

mod_rpaf and mod_remoteip

As most of us continue to expand our web footprints, we tend to use load balancers and reverse caching proxies to better handle and spread server loads. When doing so however, we still want to see the originating client IP, and not the IP used by HAProxy, Nginx,...
Continue reading

Limit MySQL usage for a specific user

Feel the need to limit the usage of a specific user consuming too many resources without modifying global max_user_connections or max_updates etc? Luckily MySQL is smart enough to handle your needs 🙂 The following will limit max connections, updates and questions to 1 after which additional queries will...
Continue reading

Out of network gateway IP on CentOS

I recently noticed that CentOS will refuse to assign an out of network gateway IP. Even though your network scripts syntax may be correct, it will still refuse to work no matter how many times you restart your network 🙂 Assuming your configuration is: IP: 1.2.3.4 Device: eth0...
Continue reading

CentOS + cPanel + Mod Pagespeed

Tired of applications with poor or no caching options? Don’t wish to change your PHP Handler for OPCode? Need a boost? Give Mod_Pagespeed a try! Mod_Pagespeed was developed by Google and it acts as an internal proxy which combines your CSS/Javascript/Images then serves them inline and much more....
Continue reading

Upgrading to MySQL 5.5 Percona (cPanel/WHM)

Looking to better track and limit MySQL usage by user, CPU time and other statistics along with a performance improvement? This guide will show you how to upgrade from MySQL 5.0.x to MySQL 5.5 Percona on a cPanel/WHM server with backups of the current configuration. The following script...
Continue reading

Importing a mbox export as a cPanel maildir

Have an mbox export that’s too big to use Horde import/fetchmail options? No worries, mb2md was successfully tested with MacMail and Thunderbird mbox exports. Please note, the script requires the TimeDate Perl library to function. Now for some output 🙂 root@devcp [/home/tooltest]# perl -MCPAN -e 'install Date::Parse' root@devcp...
Continue reading