On Thu, Jul 7, 2011 at 4:04 PM, Varuna Seneviratna <vswebservers@xxxxxxxxx> wrote: > Hello > I am using Ubuntu 11.04 as my OS.The available versions of > Apache2 for Ubuntu are listed below > apache2-mpm-prefork - Apache HTTP Server - traditional non-threaded model > apache2-mpm-worker - Apache HTTP Server - high speed threaded model > > 1 Can you please explain to me the difference between the two types > 2 What version shall I use for learning PHP > prefork uses separate processes to handle each request. Each process handles multiple requests sequentially. worker uses a pool of processes which maintain a pool of worker threads. Each worker thread handles multiple requests sequentially. The differences are more to do with performance/scalability than functionality. Note that with worker, any code you embed into the webserver (like mod_php) must be thread safe or Weird Things Can Happen. For that reason alone, use prefork to learn PHP. I have no knowledge of whether PHP (or its extensions) are MT-safe, ask on a PHP list. Cheers Tom --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx