Categories
JavaScript Programming

How to Install PhantomJS in cPanel / WHM Server

Here is what i did to install PhantomJS in cPanel / WHM 🙂

Categories
Server

Use DKIM Key With WHM, cPanel, Cloudflare

DKIM is one of useful thing to make email which is sent by your domain to be avoided marked as spam.

When you use cloudflare for that domain, there is some change that you need to do on the DKIM key.

For example on your WHM (Edit DNS Zone) or cPanel (Email > Authentication), you will get DKIM key with format like this :

"v=DKIM1; k=rsa; p=XXXX" YYY\;
Categories
Server

How to Install PECL Memcache in WHM / CentOS

You can run these commands to install PECL memcache (not memcached).
However, this memcache will work with memcached.

wget http://pecl.php.net/get/memcache-3.0.8.tgz
tar xvfz memcache-3.0.8.tgz
cd memcache-3.0.8
phpize
./configure
make
make install

Take note of the php extensions directory that memcache is installed in.
Mine is: /usr/local/lib/php/extensions/no-debug-non-zts-20020429/

Then add this line to your php.ini

extension="/usr/local/lib/php/extensions/no-debug-non-zts-20020429/memcache.so"
Categories
Server

How to Change SSH Port with WHM & CSF

If you are using WHM & CSF, under CentOS, you may follow this steps to change SSH port from 22 (default) to something else 🙂

Categories
Server

How to Install ConfigServer Security & Firewall (CSF) in WHM

To install ConfigServer Security & Firewall (CSF) in WHM, please run this commands in your SSH terminal one by one.

wget http://www.configserver.com/free/csf.tgz
tar -xzf csf.tgz
cd csf
sh install.sh

After it completes, there is a new menu in WHM which is under “Plugins” category, named “ConfigServer Security & Firewall”. 🙂