So i ran NPM in my centos server. But accidentally i upgraded NPM from old version to the latest version (i forgot what command that i ran).
(more…)
Tag: WHM
-
NPM Error in WHM, Saved by Installing NVM
-
cPanel Can Not Add MySQL User to Database
Recently i could not add MySQL user to MySQL Database in cPanel. There was no error message displayed on screen. The operation just failed.
Then i tried to use cPanel MySQL Database Wizard to create a new database, new user, and add that new user to the new database. Then i saw the error message in my browser.
(more…) -
Does CSF Firewall Make Your WHM / Server Slow ?
There are various reasons why CSF firewall may make your WHM / server slow.
Here are some personal tips from me. -
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\; -
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 installTake 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 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 🙂
(more…) -
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.shAfter 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 the litespeed wiki for parameter explanation)./lsws_whm_autoinstaller.sh TRIAL 2 1000 admin a1234567 root@localhost 1 0If you have litespeed license, replace “TRIAL” with your serial number.
You can replace “admin” with another litespeed admin username.
You can replace “a1234567 ” with another litespeed admin password.
You can replace “root@localhost” with another litespeed admin e-mail. - Wait until it completes.
- A new sub menu named “Litespeed Web Server” will appear on your WHM.
- You must activate litespeed from that sub menu.