Quick Command to check CentOS version

By | April 30, 2023

If you are running a centos server for example then you might need to check the version number and kernel version. This is important to know if you are running the latest version or not and what updates are available for your version. This is an absolutely basic task for a sys admin to find… Read More »

How to Install Htop on centos 6.4

By | April 30, 2023

Htop on centos When it comes to monitoring the cpu and ram usage on your linux machine, htop is the best tool to use. It is an ncurses based commandline too that does not require any gui like desktop, but still provides a very interactive and featureful interface to monitor processes running on the system… Read More »

Redirect non-www url to www in nginx

By | June 17, 2013

Nginx Recently I was setting up nginx on my new server where this blog is being hosted. Nginx is very different from the more popular apache web server in many ways. It has an event driven architecture which makes it much faster and high traffic tolerant compared to apache. In apache the redirects used to… Read More »

Output buffering in php and apache

By | June 18, 2013

Output Buffering Output buffering is processing mechanism where the output being generated by a program is held in a place till its size reaches a limit or the generation is complete. Only after, will the output be send to its destination. In php for example, doing and echo generates some output. Now this output might… Read More »

Php – Do not rely on set_time_limit too much

By | April 23, 2019

Php set_time_limit Php has a function called set_time_limit which can be used to dynamically adjust the maximum execution time permitted to a script. It allows specifying the time in seconds and limits the script execution time to that many seconds. The set_time_limit function whenever called, effectively extends the script execution time by that many seconds…. Read More »

Generate ssh keys on windows 8

By | March 10, 2018

SSH If you are using an ssh client on windows to control a remote webserver and want to setup passwordless logins then you need to create ssh keys. The puttygen command from the putty suite can be used to generate keys in both putty and openssh formats. Download the puttygen program from the following url… Read More »