Here's the procedure to set up a Ubuntu server and install required software like Apache2, MySQL, etc.
Note: The steps I mentioned here are tested with the Ubuntu server on Virtual Box. So, be careful and verify it if you're following these procedures on live servers.