I am getting the following error while running update.php on the drupal site
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 1 bytes) in /var/www/includes/database.inc on line 102
How to increase php memory size?

Planning to create my own development environment on my ubuntu desktop 9.10. How to install apache web server, php and it's plugins for apache and mysql database?
