I use Centos & WHM. Here is how to install memcached (not memcache) using command line. First, installing memcached wget http://memcached.org/latest tar -zxvf memcached-1.x.x.tar.gz cd memcached-1.x.x ./configure && make && make test && sudo make install
Category: 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 🙂
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
Exporting MySQL Databases Command Line in Linux
To export a mysql database by linux command line, for example your database name is my_database, your mysql username is my_username, and your mysql password is my_password, you can use this command : mysqldump –opt –single-transaction -umy_username -pmy_password my_database > /your/path/here/export.sql Note: after “-u” and “-p”, there is NO space. 🙂
MySQL Table “In Use” Repair
Recently when i optimized some mysql tables from phpmyadmin, some of the tables were “locked” and showed as “in use” on phpmyadmin. The tables could not be used, read, etc. So the script was stopped working. I have tried to repair / check / analyze from phpmyadmin but i couldn’t repair it. So i tried… Continue reading MySQL Table “In Use” Repair