There are several ways. But the most user friendly manner is to use the Synaptic Package manager. To start up the Synaptic Package Manager, just click System | Administration | Synaptic Package Manager on your Ubuntu setup. Navigate to Edit | Mark Packages by Task. Select the Task Group labeled LAMP server which will install Apache, MySQL and PHP. To know the process in detail just visit this link.