Empty a File Using Linux Command

Today i received an e-mail notification from cpanel that a partition in my server is almost full. First i checked largest directories / files using this command : du -h –max-depth=1 /some/path Then i noticed that they were some log files which took space in my partition 🙂

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”

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 https://download.configserver.com/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”. 🙂

How to Install Litespeed in WHM

Here i will explain how to install Litespeed webserver in WHM. According to the Litespeed wiki : Open & login to your SSH terminal Execute this command to download the installer : wget http://www.litespeedtech.com/packages/cpanel/lsws_whm_autoinstaller.sh Next we will make the file executable : chmod a+x lsws_whm_autoinstaller.sh Last step we can execute this command : (please check… Continue reading How to Install Litespeed in WHM