Useful Linux commands

Check Installing CentOS 6.2 on VMware post.

– getting full memory info

more /proc/meminfo

– display memory usage in MB

free -m

Server Load for android 2.1

Server load is open source widgets for android that retrieve your current server average load and display it on a widget on your android home screen, you can add more widgets for each server. The widget will update every 30 min to display your server’s current average load. Check the php example for extracting your servers’ current load.

Program test on Galaxy s2

Source Code

Get from Android Market

Dynamic Content Caching using Lighty + mod_magnet + lua

*Updated 11 Jan 2007 to include luazlib, fix lighty config file and add zlib decoding to cache.lua for older browsers
Since I read the documentations for mod_cml, I was very excited to use this module since caching using PHP running as FastCGI is not helping much during server peak load. However, mod_cml was replaced by mod_magnet which is more flexible and gives more control over request handling in Lighttpd. This Article will focus on caching your PHP scripts using Lua and mod_magnet under Lighttpd,

install / compile MYSQL 5 on RHEL / CentOS 4

There not much performance difference between MYSQL 4 and 5 as far as you’re not using mysqli ext for your PHP scripts, but it nice to find rpms ready on which makes the job much easier.

Get average server load

This function should work on Unix as on windows