If you suddenly need to provision a new web app server for Drupal 6, the main problem you have is that the furthest back you can go, in say Ubuntu releases on Digital Ocean or Linode, is Ubuntu 10.04 LTS (Lucid Lynx).
Attached an example file that demonstrates the same. In the example module the ajax call is using drupal menu callback triggered using event in jquery.