Setting Nginx, PHP Fastcgi and XCache on a new Ubuntu

Posted 6 CommentsPosted in Web Development
Recently, because of a mandatory VPS move I had an opportunity to migrate all my sites from apache to nginx. My old box was in a messy state and setting up a new box from scratch was always going to be fun. Here in this post, I will walk you through all the steps that helped me migrate seamlessly. Specially, how did I setup the new box ensuring zero downtime on the sites. Ensuring zero downtime while migration: By the time I will pin up various pieces on my new vps box, I didn't want my site visitors to see...

Setting up ejabberd 2.1.x development environment on Ubuntu

Posted 13 CommentsPosted in XMPP
apt-get provide a convenient way of installing ejabberd on Ubuntu distributions. However, if you are an erlang developer and looking to write custom ejabberd modules, you might want to install ejabberd from the source code. Checkout ejabberd source To start with lets grab the ejabberd 2.1.x branch source code: sudo apt-get install git-core git clone git://git.process-one.net/ejabberd/mainline.git ejabberd cd ejabberd git checkout -b 2.1.x origin/2.1.x cd src Installing pre-requisites Lets setup necessary pre-requisites before compiling ejabberd source code: sudo apt-get install build-essential sudo apt-get install automake autoconf sudo apt-get install erlang erlang-manpages sudo apt-get install libexpat1-dev zlib1g-dev libssl-dev Compiling ejabberd source...

Memcached and “N” things you can do with it – Part 1

Posted 19 CommentsPosted in PHP, Scalability
In my last post, MySQL Query Cache, WP-Cache, APC, Memcache - What to choose, I discussed in brief about 4 caching technologies which you might have used knowingly or unknowingly. Towards the end, we came to the conclusion that Memcached is the best caching solution when you are looking for speed and number of hits per second. By my experience, Memcached is capable of handling more than 100 Million PV's per month without any problem. However, towards the end, I did also discuss why memcached is unreliable and insecure. In this post, I will dig a level deeper into memcached....

How to get started with web development?

Posted 9 CommentsPosted in Web Development
Many of my friends have asked me on how to start with web development. I am not expert but here in this post I would like to describe a few steps that might help one climb the ladder of web development fast. Kindly feel free to add to this blog post if you think some other methodology might be better off. Where do I start web development? Well the first and best place to start web development is your own system. Yes your very own personal computer. You don't need a server on internet to start with. Infact I worked...

How to configure Ubuntu and LAMP on Windows

Posted 4 CommentsPosted in Web Development
Hello all Linux freaks, Having already looked upon how to configure Apache-PHP-MySQL on Windows, now here I will try to explain in short how to do the same on Linux OS. I personally don't have a seperate machine for linux. I run Ubuntu on my Windows machine using VM Ware. So before we go on to see how to configure LAMP on Ubuntu, lets see how can we have Ubuntu running on Windows. For this tutorial I have used VMware-player-2.0.2-59824.exe for VM Ware installation and Ubuntu-7.04-desktop-i386.zip for Ubuntu. You will need to download the same from http://www.vmware.com/download/player/ and http://www.ubuntu.com/GetUbuntu/download Install...