Category: Uncategorized

How to compile GD graphics library with CPanel server

GD is an open source code library for the dynamic creation of images by programmers. GD is written in C, and “wrappers” are available for Perl, PHP and other languages. GD creates PNG, JPEG and GIF images, among other formats. GD is commonly used to generate charts, graphics, thumbnails, and most anything else, on the fly. While not restricted to…

Read More »

How to split a big tar files?

How to split a big tar files? Easy 😉 split -b 100000000 thisfile.tar.gz thisfile.tar.gz This will split your file into 100 MB parts with the thisfile name and suffix of gzaa, gzab, gzac, etc… Then how to join them? Easy too 😉 cat thisfile.tar.gz?? > thisfile.tar.gz Until next time 🙂

Read More »

Exim Tricks

Server owner, did you ever hit by tons of spam then bring your server down to it knees? Well, I have a few exim tricks that you can use to quickly remove them from Exim queue. I’m assuming that you already have the knowledge of what is SMTP, MTAs, and can use UNIX shell prompt. Start with Message-ID Exim Message-IDs…

Read More »

Redirect visitor to PR URL

How to redirect visitor to domain which have more PR? Requirement: – Apache – htaccess enabled. Case 1, PR is on domain.com Code: RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^www\.domain\.com$ [NC] RewriteRule .* http://domain.com/ [L,R=301] Case 2, PR is on www.domain.com Code: RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^domain\.com$ [NC] RewriteRule .* http://www.domain.com/ [L,R=301] How to use: – Choose one…

Read More »