HostOnNet Blog

Category Archives: Linux

MySQL Database size shows 0 MB in cPanel

When checked in MySQL database I see the size as 0 mb. So made some changes and it worked. 1) SSH to your server as root and edit the cpanel.config file root@server[~]# nano /var/cpanel/cpanel.config Search for disk_usage_include_sqldbs=0 and change to


How to Upgrade WordPress through SSH

First Take backup of all your files and database Then go to the exact directory where you have your wordpress installed and move the directories wp-admin and wp-includes root@server# mv wp-admin wp-admin-bk root@server# mv wp-includes wp-includes-bk Download the latest wordpress


What is limitipconn ? and How to Install it ?

Limitipconn :- limitipconn is a tool which is used to limit the number of connections per IP on our server. This tool can help in lowering the load on your server if someone connecting too many times from the same


How to Install and Configure maldet (Linux Malware Detect – LMD)

Linux Malware Detect (LMD) is a malware scanner for Linux released under the GNU GPLv2 license, that is designed around the threats faced in shared hosted environments. It uses threat data from network edge intrusion detection systems to extract malware


HOW TO: Installing RPM Packages

To install RPM Package use rpm -ivh packagename.rpm To uninstall RPM Package rpm -e packagename


Installing Git on CentOS

Git is a distributed version control created by Linus torvalds for managing Linux kernal. Now many large projects use git for version control. You can download latest version of git from http://git-scm.com/download To install version 1.7.5.2, run cd /usr/local/src wget


Change ls color in bash CentOS/RHEL/Fedora

By default CentOS/RHEL show directorys in ls listing in dark green. With dark color, i found it difficult to read directory names. To change directory color, do cp /etc/DIR_COLORS ~/.dir_colors Edit ~/.dir_colors vi ~/.dir_colors Find DIR 01;34 # directory Replace


Install software with RPM

To install rpm file, run Here -i = install -v = verify -h = show progress with # To upgrade an existing rpm package, run -U = Upgrade already installed package.


How to find out which program is using a port

You can use netstat or fuser commands to find out which program is using a port. You can find used ports with command nmap [root@server52 ~]# nmap localhost Starting Nmap 4.20 ( http://insecure.org ) at 2010-03-24 07:14 EDT Interesting ports


ffmpeg-php undefined symbol php_gd_gdImageSetPixel

When i install ffmpeg-php on a plesk server, i got following error PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php/modules/ffmpeg.so’ – /usr/lib/php/modules/ffmpeg.so: undefined symbol: php_gd_gdImageSetPixel in Unknown on line 0 This is caused by loading ffmpeg.so before gd.so