Category Archives: Linux

How to mount a new Hard Drive on your Linux Server

This is a simple guide on how to mount and parition a new hard drive to be used only for backups. This guide uses fdisk which is a very powerful tool but you should be fine as long as you … Continue reading

Posted in Linux, Server | Tagged , , | Leave a comment

How to Reset Forgotten Linux Root Password

Whenever you can’t remember your Root password, you can do this steps to reset it. You can log in with single-user mode and create a new root password. Reboot your computer. When GRUB is presenting the menu list, follow those … Continue reading

Posted in Linux | Tagged , , | Leave a comment

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

Posted in CentOS | Tagged , | Leave a comment

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 … Continue reading

Posted in Cpanel Server, Linux, security | Tagged , , , | Leave a comment

How to Change Hostname and IP on a CentOS Server

1. RedHat based system use the file /etc/sysconfig/network to read the saved hostname at system boot. This is set using the init script /etc/rc.d/rc.sysinit nano /etc/sysconfig/network NETWORKING=yes HOSTNAME=”plain.domainname.com” GATEWAY=”111.222.333.1″ GATEWAYDEV=”eth0″ FORWARD_IPV4=”yes” 2. TCP/IP Network Configuration Files This configures Linux so … Continue reading

Posted in CentOS, Linux, Server | Tagged , , , | Leave a comment

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 … Continue reading

Posted in Apache, Cpanel Server, dedicated server, Linux | Tagged , , | Leave a comment

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 … Continue reading

Posted in Linux, security | Tagged , , | Leave a comment

How to Install, Configure and Securing a new cPanel Server

First Install cPanel on the new server root@server [~]# mkdir /home/cpins root@server [~]#cd /home/cpins root@server [~]#wget http://layer1.cpanel.net/latest after this give screen command root@server [~]#screen If it works then OK ,but if did’nt work use root@server [~]#yum install screen (Install all … Continue reading

Posted in Cpanel Server, dedicated server, Linux, Server, Web Hosting | Tagged , , , , | Leave a comment

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 … Continue reading

Posted in Cpanel Server, Linux, mysql, Server | Tagged , , , | Leave a comment