Category: Linux

Apache logs empty

| November 1, 2011 | 0 Comments

Empty Apache Logs: One morning you find that your apache logs files are empty. These are be many reasons for that like: No permission to write logs Ready only file system. Directory path is not write. But all these are fine and everything starts working again, you see entries in apache logs, once you restart [...]

Continue Reading

SSL received a record that exceeded the maximum permissible length

| October 14, 2011 | 0 Comments

Getting the error while trying to access secure page from apache. This is how the Error looks like Check apache error logs This happens due to misconfiguration in virtual host for ssl. This error is due to a misconfiguration of VirtualHost with SSL. The server is trying to respond to a request on port 443 [...]

Continue Reading

How to recover mysql root password

| September 27, 2011 | 0 Comments

Its very common to forgot the root password for mysql server. Here are simple steps to reset mysql root password. Step # 1: Stop the MySQL server process. Step # 2: Start the MySQL (mysqld) server/daemon process with the .skip-grant-tables option so that it will not prompt for password Step # 3: Connect to mysql [...]

Continue Reading

Convert files from uppercase to lowercase in linux

| June 8, 2011 | 1 Comment

unlike windows Linux handles uppercase and lowercase differently. This is common problem for web sites, developer links the images/files in lowercase and someone uploads the files in uppercase and links break. Here is quick and dirty script to convert all the files in a directory to lowercase. First list find all the file with uppercase. [...]

Continue Reading

Most frequently used linux commands

| June 5, 2011 | 0 Comments

SSH Login without password How to use IPTABLES? How to use iostat? How to use grep? How to check fre memory in linux? What is xinted? How to use wget? How to use wget? How to use uptime? How to use traceroute? How to use tcpdump? How to use sudo? How ti use awk command? [...]

Continue Reading

Files in linux that every sysadmin must know

| June 5, 2011 | 0 Comments

/etc/ssh /etc/skel/ /etc/profile /etc/modprobe /etc/inittab /etc/fstab /etc/exportfs /etc/bashrc /etc/X11 /etc/updatedb.conf /etc/securetty /etc/ntp /etc/grou.conf /etc/anacron /etc/syslog.conf /etc/sysctl.conf /etc/sysconfig/network /etc/security /etc/rc.d/ /etc/nssswitch /etc/ld.so /etc/passwd, /etc/Shadow, /etc/group /etc/logrorate.conf /etc/logrorate.conf /etc/hosts.allow, /etc/hosts.deny /etc/hosts /etc/crontab /etc/resolve.conf /etc/sysconfig

Continue Reading

What are /etc/ssh/ files

| May 26, 2011 | 2 Comments

/etc/ssh Once upon a time we used the to login to system and servers by passing the login credentials in plain text format. But now this is not possible due to rise in number of crackers, who are always on a look out for your passwords. SSH which stands for Secure Shell is the de-facto [...]

Continue Reading

What is /etc/skel used for

| May 26, 2011 | 1 Comment

/etc/skel Skel stands for Skeleton. It is named as such since we can prepare a outline of a user’s home directory here. That is whatever files we create in /etc/skel is automatically copied to the user’s home directory which has been created. A home directory is a directory which is created when a user is [...]

Continue Reading

What are /etc/profile file

| May 26, 2011 | 0 Comments

/etc/profile There are two kind of shells in linux. One is interactive and another one non-interactive. Interactive ones are when we login to a system. It then reads /etc/passwd, verifies our password and gives us our home directory. Non-interactive ones are which are created when we run shell scripts. When a shell is initialized for [...]

Continue Reading

What is /etc/modprobe.conf

| May 26, 2011 | 0 Comments

/etc/modprobe.conf /etc/modprobe.d Modprobe command is used to insert and delete module from the linux kernel on a fly. Insmod and rmmod commands do the same thing but the dependencies have to satisfied before we install the modules. Modprobe checks the modules.dep file to see which modules depend on what and satisfies the dependencies automatically. The [...]

Continue Reading