HostOnNet Blog

Author Archives: Tom

How to find Network Card’s Mac Address in CentOS

Open SSH and type the following and press Enter: /sbin/ifconfig | grep -i hwaddr The sequence of hexadecimal digits that appears to the right of eth0 HWAddr (e.g. 08:00:27:ED:DA:8b) is your network card’s MAC Address


How to Change the SSH port on cPanel Servers

To change the SSH port login as root, and edit /etc/ssh/sshd_config Find the line that says Port 22 and change 22 to any number between 1024->65535 (above 30000 is best) and save the file. Once done, run: /etc/init.d/sshd restart Now


How to Change Hostname and IP on a CentOS Server

UPDATE 2017-03-21 CentOS 7 come with hostnamectl command, that allow you to easily set server hostname with out manually editing any of these files. RedHat based system use the file /etc/sysconfig/network to read the saved hostname at system boot. This


How to Install Mod_Gzip with Apache

mod_gzip is an Internet Content Acceleration module for the popular Apache Web Server. It compresses the contents delivered to the client. There is no need to install any additional software on the client! If you are having difficulties with getting


How to Disable Direct Root Logins

Allowing the root user to login directly is a major security issue, we’ll show you how to disable it so you can still login as root but just not directly, reducing the security issue. This will force a hacker to


How to Disable Telnet

Telnet sends clear text passwords and usernames through logins and should be disabled on all web servers and replaced with SSH. Some hosting providers are not disabling telnet by default but you should ensure that it has been turned off


How to Install, Configure and Securing a new cPanel Server

First Install cPanel on the new server after this give screen command If it works then OK ,but if did’nt work use now give screen command after that give ‘ll’ or ls and you will see the file as ‘latest’


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