// archives

Linux/Unix

This category contains 47 posts

Transfer backup files from server to server in command line!

i have been struggling to find some way or another to transfer my file from one linux server to another using commandline. Before this i was just using cpanel to do backups.
Here is an easy way to accomplish transferring backup files from one server to another in linux. Just simple command using SCP (secure file […]

Colocation vs Dedicated Hosting - Whats the difference?

I have been long time confused about this simple two types of hosting and atlast i understood the difference between colocation and dedicated hosting.
Colocation
You have to buy server equipment and the co-location service provider gives you all internet facilities in their location like internet connection, safety of your equipment, surveillence and more.. Further the […]

Sample DNS Zone File for BIND

Sample Zone file for a domain with 2 nameservers ns1.example.com and ns2.example.com for BIND9. You can use this template to define your own nameservers. Just do changes on the domain name and IP addresses.
Be sure to include the below statement in your named.conf
I am assuming that you are running Bind9 or later version in your […]

Fast Website Loading with OpenDNS - Alternative to ISPs DNS Servers

When you type a website name in the browser where often the sites dont load fast. You will see in the status bar of the browser “looking up website.com”, which often means the DNS server (resolves hostnames to IP address) is slow causing such a long time to connect to website in your home […]

how to create new user for phpmyadmin login

PHPMyAdmin and MySQL server complement each other very well. In most situations you have installed mysql server and phpmyadmin.
By default the mysql root password is blank and this is a big security issue and you have change the mysql password as soon as possible. If that is not done anybody could login with phpmyadmin […]

How to Fix: PHPMyAdmin 403 Forbidden Error

If you have installed phpMyAdmin in your linux server (centos/RHEL/debian), and tried to access phpMyAdmin in most cases you will get this 403 forbidden error. I have seen this issue very often if you are installing phpmyadmin using yum or by apt-get. By default phpmyadmin installed path is /usr/share/phpmyadmin and the apache configuration file is […]

Disable anonymous FTP login in cPanel

I have been looking at server logs and there have been a number of connections from different IPs logging in my server. By default anonymous FTP is enabled in cpanel.
Sep 22 19:47:08 server pure-ftpd: (?@x.x.x.x) [INFO] New connection from x.x.x.x
Sep 22 19:47:11 server pure-ftpd: (?@x.x.x.x) [INFO] Anonymous user logged in the virtual FTP: xx.xx.xx.xx
Sep 22 […]

Install Apache Mod_Substitute

I came across interesting module for apache which does automatic search and replacement operations using regular expressions and decided to experiment on it. For information about this module documented in apache website
NOTE: This module is only available in Apache 2.2.7 and later
I was running Centos 5 and unable to load this module in httpd. […]

Capturing a Screenshot of a Website

How to Capture a Website Screenshot in Linux
You might be wondering how to capture a website screenshot (as thumbnail) but
you dont know how to do it. Although PHP GD library is available, it is just
not possible to do the task with php. You will need a linux server running xwindow
[…]

how to install a new .deb package in debian/ubuntu

If you have downloaded a new .deb package file and you dont know how to install it. here is an easy way to install it.
dpkg -i mypackage.deb
You cannot install by apt-get instead you need to use dpkg.
Hope this helps!