Author Archive

Create an SSH banner.

Adding a banner to your Dedicated Server is extremely easy to do. It is comprised of 2 steps. 1.) Edit your sshd_config file located at /etc/ssh/sshd_config and add the folowing line: Banner /etc/banner 2.) Now you need to create this file. Using your favorite editor, just create the new file and put whatever you would […]

How to install LAMP (Apache, MySQL and PHP in Linux) using Yum

There are many ways to install Lamp in Linux server but following is the easiest way to install using yum First Go in http://www.centos.org/ and download latest copy of centos Once you installed CentOS on server from shell type following commands yum install httpd Above command will install apache server then install php using following […]

how to install geoIP

You just need to fire following command on cpanel server to install geoIP. pecl install GeoIP While installation you may get the following error. checking for re2c version… invalid configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers. checking for gawk… gawk checking for geoip support… yes, shared […]

Disable IPV6 on linux server.

For security reason its always better tio disable IPV6 on Linus server, as IPV6 traffic is not filter by server firewall. Refer following steps to disable IPV6. Login in to server as root user and open networking file. root@server[~]#pico /etc/sysconfig/network Add following two lines in the end of network file. NETWORKING_IPV6=no IPV6INIT=no save network file  […]

How to check server 32 or 64 bit?

Its very common issue, every new techie not sure about server bit at that time simply run following command to get bit information. getconf LONG_BIT  

Three steps to mount remote directory on Linux Server

We can mount the remote directory on the Linux Server by using the following three simple commands only. Login in to the server as a root user and run the commands one by one and make sure that you are using your own remote server ip instead of our test server ip198.168.0.2 yum install fuse-sshfs […]

/scripts/fixquotas gives error “edquota: Quota file not found or has wrong format”?

After running /scripts/fixquotas it gives following error message and showing unlimited disk space in WHM >> Main >> List account. root@server [/]# /scripts/fixquotas –force Installing Default Quota Databases……Done Linux Quota Support Quotas are now on Resetting quota for user23 to 1000 M edquota: Quota file not found or has wrong format. No filesystems with quota […]

How to add nameservers from shell.

Most of the time on cPanel dedicated server we add nameservers from WHM but some time we are not able to access WHM. In that case we can add nameservers from shell by using root login details. Login in to server as root user and run following commands. root@server[~]#/scripts/adddns –domain ns1.your_domain.com –ip=111.222.222.1 root@server[~]#/scripts/adddns –domain ns2.your_domain.com […]

Install GIT on cPanel server.

We can install the GIT on the cPanel server by using the yum. Login in to the server as root user and run the following command. yum –disableexcludes=main install git -y  

Secure Joomla site.

To avoid Joomla site to be hacked follow the following steps. Disable RG_EMULATION for Joomla. When this option is enabled even the latest Joomla is vulnerable to some variable injections. It can be disabled by placing the following line in your configuration.php: if(!defined(‘RG_EMULATION’)) { define( ‘RG_EMULATION’, 0 ); } ————- Secure your administrator’s area. This […]