May i recommend you take a look at this:
How to install lamp stack on ubuntu
or the updated version for Ubuntu 14.04:
How to install lamp stack on ubuntu 14-04
for the rest it is reading up on security matters and what applies for your situation.
here are two links related to securing your environment:
Apache security tips
and:
Secure your apache server from ddos slowloris and DNS-injection attacks
These two links should get you sorted for the largest part in terms of securing your barebone
Hope this helps you out a little.