Web Development

Setting Nginx, PHP Fastcgi and XCache on a new Ubuntu

Posted on

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 […]

XMPP

Setting up ejabberd 2.1.x development environment on Ubuntu

Posted on

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 […]

Scalability

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

Posted on

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 a 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 a 100 Million PV’s per month without any problem. However, towards the end I did also discussed why memcached is unreliable and unsecure. In this post I will dig a level deeper into […]

Web Development

How to get started with web development?

Posted on

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 […]

Web Development

How to configure Ubuntu and LAMP on Windows

Posted on

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 […]